diff options
| author | manuel <manuel@mausz.at> | 2015-03-10 00:33:13 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2015-03-10 00:33:13 +0100 |
| commit | 96fb8d016fe50ba67d830ce6a965b988b8fea942 (patch) | |
| tree | 75e78ecda6b0f071e015f7add65f7cc677797450 /addons | |
| parent | 01db5526106f75599d84dbe61e419fb9cc3d1298 (diff) | |
| download | kodi-pvr-build-96fb8d016fe50ba67d830ce6a965b988b8fea942.tar.gz kodi-pvr-build-96fb8d016fe50ba67d830ce6a965b988b8fea942.tar.bz2 kodi-pvr-build-96fb8d016fe50ba67d830ce6a965b988b8fea942.zip | |
sync with upstream
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/library.kodi.guilib/libKODI_guilib.h (renamed from addons/library.xbmc.gui/libXBMC_gui.h) | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/addons/library.xbmc.gui/libXBMC_gui.h b/addons/library.kodi.guilib/libKODI_guilib.h index 8dbc38b..26be664 100644 --- a/addons/library.xbmc.gui/libXBMC_gui.h +++ b/addons/library.kodi.guilib/libKODI_guilib.h | |||
| @@ -29,17 +29,17 @@ | |||
| 29 | typedef void* GUIHANDLE; | 29 | typedef void* GUIHANDLE; |
| 30 | 30 | ||
| 31 | #ifdef _WIN32 | 31 | #ifdef _WIN32 |
| 32 | #define GUI_HELPER_DLL "\\library.xbmc.gui\\libXBMC_gui" ADDON_HELPER_EXT | 32 | #define GUI_HELPER_DLL "\\library.kodi.guilib\\libKODI_guilib" ADDON_HELPER_EXT |
| 33 | #else | 33 | #else |
| 34 | #define GUI_HELPER_DLL_NAME "libXBMC_gui-" ADDON_HELPER_ARCH ADDON_HELPER_EXT | 34 | #define GUI_HELPER_DLL_NAME "libKODI_guilib-" ADDON_HELPER_ARCH ADDON_HELPER_EXT |
| 35 | #define GUI_HELPER_DLL "/library.xbmc.gui/" GUI_HELPER_DLL_NAME | 35 | #define GUI_HELPER_DLL "/library.kodi.guilib/" GUI_HELPER_DLL_NAME |
| 36 | #endif | 36 | #endif |
| 37 | 37 | ||
| 38 | /* current ADDONGUI API version */ | 38 | /* current ADDONGUI API version */ |
| 39 | #define XBMC_GUI_API_VERSION "5.8.0" | 39 | #define KODI_GUILIB_API_VERSION "5.8.0" |
| 40 | 40 | ||
| 41 | /* min. ADDONGUI API version */ | 41 | /* min. ADDONGUI API version */ |
| 42 | #define XBMC_GUI_MIN_API_VERSION "5.8.0" | 42 | #define KODI_GUILIB_MIN_API_VERSION "5.8.0" |
| 43 | 43 | ||
| 44 | #define ADDON_ACTION_PREVIOUS_MENU 10 | 44 | #define ADDON_ACTION_PREVIOUS_MENU 10 |
| 45 | #define ADDON_ACTION_CLOSE_DIALOG 51 | 45 | #define ADDON_ACTION_CLOSE_DIALOG 51 |
| @@ -54,21 +54,21 @@ class CAddonGUIRenderingControl; | |||
| 54 | class CAddonGUISliderControl; | 54 | class CAddonGUISliderControl; |
| 55 | class CAddonGUISettingsSliderControl; | 55 | class CAddonGUISettingsSliderControl; |
| 56 | 56 | ||
| 57 | class CHelper_libXBMC_gui | 57 | class CHelper_libKODI_guilib |
| 58 | { | 58 | { |
| 59 | public: | 59 | public: |
| 60 | CHelper_libXBMC_gui() | 60 | CHelper_libKODI_guilib() |
| 61 | { | 61 | { |
| 62 | m_libXBMC_gui = NULL; | 62 | m_libKODI_guilib = NULL; |
| 63 | m_Handle = NULL; | 63 | m_Handle = NULL; |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | ~CHelper_libXBMC_gui() | 66 | ~CHelper_libKODI_guilib() |
| 67 | { | 67 | { |
| 68 | if (m_libXBMC_gui) | 68 | if (m_libKODI_guilib) |
| 69 | { | 69 | { |
| 70 | GUI_unregister_me(m_Handle, m_Callbacks); | 70 | GUI_unregister_me(m_Handle, m_Callbacks); |
| 71 | dlclose(m_libXBMC_gui); | 71 | dlclose(m_libKODI_guilib); |
| 72 | } | 72 | } |
| 73 | } | 73 | } |
| 74 | 74 | ||
| @@ -89,207 +89,207 @@ public: | |||
| 89 | } | 89 | } |
| 90 | #endif | 90 | #endif |
| 91 | 91 | ||
| 92 | m_libXBMC_gui = dlopen(libBasePath.c_str(), RTLD_LAZY); | 92 | m_libKODI_guilib = dlopen(libBasePath.c_str(), RTLD_LAZY); |
| 93 | if (m_libXBMC_gui == NULL) | 93 | if (m_libKODI_guilib == NULL) |
| 94 | { | 94 | { |
| 95 | fprintf(stderr, "Unable to load %s\n", dlerror()); | 95 | fprintf(stderr, "Unable to load %s\n", dlerror()); |
| 96 | return false; | 96 | return false; |
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | GUI_register_me = (void* (*)(void *HANDLE)) | 99 | GUI_register_me = (void* (*)(void *HANDLE)) |
| 100 | dlsym(m_libXBMC_gui, "GUI_register_me"); | 100 | dlsym(m_libKODI_guilib, "GUI_register_me"); |
| 101 | if (GUI_register_me == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 101 | if (GUI_register_me == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 102 | 102 | ||
| 103 | GUI_unregister_me = (void (*)(void *HANDLE, void *CB)) | 103 | GUI_unregister_me = (void (*)(void *HANDLE, void *CB)) |
| 104 | dlsym(m_libXBMC_gui, "GUI_unregister_me"); | 104 | dlsym(m_libKODI_guilib, "GUI_unregister_me"); |
| 105 | if (GUI_unregister_me == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 105 | if (GUI_unregister_me == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 106 | 106 | ||
| 107 | GUI_lock = (void (*)(void *HANDLE, void *CB)) | 107 | GUI_lock = (void (*)(void *HANDLE, void *CB)) |
| 108 | dlsym(m_libXBMC_gui, "GUI_lock"); | 108 | dlsym(m_libKODI_guilib, "GUI_lock"); |
| 109 | if (GUI_lock == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 109 | if (GUI_lock == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 110 | 110 | ||
| 111 | GUI_unlock = (void (*)(void *HANDLE, void *CB)) | 111 | GUI_unlock = (void (*)(void *HANDLE, void *CB)) |
| 112 | dlsym(m_libXBMC_gui, "GUI_unlock"); | 112 | dlsym(m_libKODI_guilib, "GUI_unlock"); |
| 113 | if (GUI_unlock == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 113 | if (GUI_unlock == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 114 | 114 | ||
| 115 | GUI_get_screen_height = (int (*)(void *HANDLE, void *CB)) | 115 | GUI_get_screen_height = (int (*)(void *HANDLE, void *CB)) |
| 116 | dlsym(m_libXBMC_gui, "GUI_get_screen_height"); | 116 | dlsym(m_libKODI_guilib, "GUI_get_screen_height"); |
| 117 | if (GUI_get_screen_height == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 117 | if (GUI_get_screen_height == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 118 | 118 | ||
| 119 | GUI_get_screen_width = (int (*)(void *HANDLE, void *CB)) | 119 | GUI_get_screen_width = (int (*)(void *HANDLE, void *CB)) |
| 120 | dlsym(m_libXBMC_gui, "GUI_get_screen_width"); | 120 | dlsym(m_libKODI_guilib, "GUI_get_screen_width"); |
| 121 | if (GUI_get_screen_width == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 121 | if (GUI_get_screen_width == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 122 | 122 | ||
| 123 | GUI_get_video_resolution = (int (*)(void *HANDLE, void *CB)) | 123 | GUI_get_video_resolution = (int (*)(void *HANDLE, void *CB)) |
| 124 | dlsym(m_libXBMC_gui, "GUI_get_video_resolution"); | 124 | dlsym(m_libKODI_guilib, "GUI_get_video_resolution"); |
| 125 | if (GUI_get_video_resolution == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 125 | if (GUI_get_video_resolution == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 126 | 126 | ||
| 127 | GUI_Window_create = (CAddonGUIWindow* (*)(void *HANDLE, void *CB, const char *xmlFilename, const char *defaultSkin, bool forceFallback, bool asDialog)) | 127 | GUI_Window_create = (CAddonGUIWindow* (*)(void *HANDLE, void *CB, const char *xmlFilename, const char *defaultSkin, bool forceFallback, bool asDialog)) |
| 128 | dlsym(m_libXBMC_gui, "GUI_Window_create"); | 128 | dlsym(m_libKODI_guilib, "GUI_Window_create"); |
| 129 | if (GUI_Window_create == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 129 | if (GUI_Window_create == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 130 | 130 | ||
| 131 | GUI_Window_destroy = (void (*)(CAddonGUIWindow* p)) | 131 | GUI_Window_destroy = (void (*)(CAddonGUIWindow* p)) |
| 132 | dlsym(m_libXBMC_gui, "GUI_Window_destroy"); | 132 | dlsym(m_libKODI_guilib, "GUI_Window_destroy"); |
| 133 | if (GUI_Window_destroy == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 133 | if (GUI_Window_destroy == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 134 | 134 | ||
| 135 | GUI_control_get_spin = (CAddonGUISpinControl* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) | 135 | GUI_control_get_spin = (CAddonGUISpinControl* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) |
| 136 | dlsym(m_libXBMC_gui, "GUI_control_get_spin"); | 136 | dlsym(m_libKODI_guilib, "GUI_control_get_spin"); |
| 137 | if (GUI_control_get_spin == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 137 | if (GUI_control_get_spin == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 138 | 138 | ||
| 139 | GUI_control_release_spin = (void (*)(CAddonGUISpinControl* p)) | 139 | GUI_control_release_spin = (void (*)(CAddonGUISpinControl* p)) |
| 140 | dlsym(m_libXBMC_gui, "GUI_control_release_spin"); | 140 | dlsym(m_libKODI_guilib, "GUI_control_release_spin"); |
| 141 | if (GUI_control_release_spin == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 141 | if (GUI_control_release_spin == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 142 | 142 | ||
| 143 | GUI_control_get_radiobutton = (CAddonGUIRadioButton* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) | 143 | GUI_control_get_radiobutton = (CAddonGUIRadioButton* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) |
| 144 | dlsym(m_libXBMC_gui, "GUI_control_get_radiobutton"); | 144 | dlsym(m_libKODI_guilib, "GUI_control_get_radiobutton"); |
| 145 | if (GUI_control_get_radiobutton == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 145 | if (GUI_control_get_radiobutton == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 146 | 146 | ||
| 147 | GUI_control_release_radiobutton = (void (*)(CAddonGUIRadioButton* p)) | 147 | GUI_control_release_radiobutton = (void (*)(CAddonGUIRadioButton* p)) |
| 148 | dlsym(m_libXBMC_gui, "GUI_control_release_radiobutton"); | 148 | dlsym(m_libKODI_guilib, "GUI_control_release_radiobutton"); |
| 149 | if (GUI_control_release_radiobutton == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 149 | if (GUI_control_release_radiobutton == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 150 | 150 | ||
| 151 | GUI_control_get_progress = (CAddonGUIProgressControl* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) | 151 | GUI_control_get_progress = (CAddonGUIProgressControl* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) |
| 152 | dlsym(m_libXBMC_gui, "GUI_control_get_progress"); | 152 | dlsym(m_libKODI_guilib, "GUI_control_get_progress"); |
| 153 | if (GUI_control_get_progress == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 153 | if (GUI_control_get_progress == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 154 | 154 | ||
| 155 | GUI_control_release_progress = (void (*)(CAddonGUIProgressControl* p)) | 155 | GUI_control_release_progress = (void (*)(CAddonGUIProgressControl* p)) |
| 156 | dlsym(m_libXBMC_gui, "GUI_control_release_progress"); | 156 | dlsym(m_libKODI_guilib, "GUI_control_release_progress"); |
| 157 | if (GUI_control_release_progress == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 157 | if (GUI_control_release_progress == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 158 | 158 | ||
| 159 | GUI_ListItem_create = (CAddonListItem* (*)(void *HANDLE, void *CB, const char *label, const char *label2, const char *iconImage, const char *thumbnailImage, const char *path)) | 159 | GUI_ListItem_create = (CAddonListItem* (*)(void *HANDLE, void *CB, const char *label, const char *label2, const char *iconImage, const char *thumbnailImage, const char *path)) |
| 160 | dlsym(m_libXBMC_gui, "GUI_ListItem_create"); | 160 | dlsym(m_libKODI_guilib, "GUI_ListItem_create"); |
| 161 | if (GUI_ListItem_create == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 161 | if (GUI_ListItem_create == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 162 | 162 | ||
| 163 | GUI_ListItem_destroy = (void (*)(CAddonListItem* p)) | 163 | GUI_ListItem_destroy = (void (*)(CAddonListItem* p)) |
| 164 | dlsym(m_libXBMC_gui, "GUI_ListItem_destroy"); | 164 | dlsym(m_libKODI_guilib, "GUI_ListItem_destroy"); |
| 165 | if (GUI_ListItem_destroy == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 165 | if (GUI_ListItem_destroy == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 166 | 166 | ||
| 167 | GUI_control_get_rendering = (CAddonGUIRenderingControl* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) | 167 | GUI_control_get_rendering = (CAddonGUIRenderingControl* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) |
| 168 | dlsym(m_libXBMC_gui, "GUI_control_get_rendering"); | 168 | dlsym(m_libKODI_guilib, "GUI_control_get_rendering"); |
| 169 | if (GUI_control_get_rendering == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 169 | if (GUI_control_get_rendering == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 170 | 170 | ||
| 171 | GUI_control_release_rendering = (void (*)(CAddonGUIRenderingControl* p)) | 171 | GUI_control_release_rendering = (void (*)(CAddonGUIRenderingControl* p)) |
| 172 | dlsym(m_libXBMC_gui, "GUI_control_release_rendering"); | 172 | dlsym(m_libKODI_guilib, "GUI_control_release_rendering"); |
| 173 | if (GUI_control_release_rendering == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 173 | if (GUI_control_release_rendering == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 174 | 174 | ||
| 175 | GUI_control_get_slider = (CAddonGUISliderControl* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) | 175 | GUI_control_get_slider = (CAddonGUISliderControl* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) |
| 176 | dlsym(m_libXBMC_gui, "GUI_control_get_slider"); | 176 | dlsym(m_libKODI_guilib, "GUI_control_get_slider"); |
| 177 | if (GUI_control_get_slider == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 177 | if (GUI_control_get_slider == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 178 | 178 | ||
| 179 | GUI_control_release_slider = (void (*)(CAddonGUISliderControl* p)) | 179 | GUI_control_release_slider = (void (*)(CAddonGUISliderControl* p)) |
| 180 | dlsym(m_libXBMC_gui, "GUI_control_release_slider"); | 180 | dlsym(m_libKODI_guilib, "GUI_control_release_slider"); |
| 181 | if (GUI_control_release_slider == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 181 | if (GUI_control_release_slider == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 182 | 182 | ||
| 183 | GUI_control_get_settings_slider = (CAddonGUISettingsSliderControl* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) | 183 | GUI_control_get_settings_slider = (CAddonGUISettingsSliderControl* (*)(void *HANDLE, void *CB, CAddonGUIWindow *window, int controlId)) |
| 184 | dlsym(m_libXBMC_gui, "GUI_control_get_settings_slider"); | 184 | dlsym(m_libKODI_guilib, "GUI_control_get_settings_slider"); |
| 185 | if (GUI_control_get_settings_slider == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 185 | if (GUI_control_get_settings_slider == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 186 | 186 | ||
| 187 | GUI_control_release_settings_slider = (void (*)(CAddonGUISettingsSliderControl* p)) | 187 | GUI_control_release_settings_slider = (void (*)(CAddonGUISettingsSliderControl* p)) |
| 188 | dlsym(m_libXBMC_gui, "GUI_control_release_settings_slider"); | 188 | dlsym(m_libKODI_guilib, "GUI_control_release_settings_slider"); |
| 189 | if (GUI_control_release_settings_slider == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 189 | if (GUI_control_release_settings_slider == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 190 | 190 | ||
| 191 | GUI_dialog_keyboard_show_and_get_input_with_head = (bool (*)(void *HANDLE, void *CB, char &aTextString, unsigned int iMaxStringSize, const char *heading, bool allowEmptyResult, bool hiddenInput, unsigned int autoCloseMs)) | 191 | GUI_dialog_keyboard_show_and_get_input_with_head = (bool (*)(void *HANDLE, void *CB, char &aTextString, unsigned int iMaxStringSize, const char *heading, bool allowEmptyResult, bool hiddenInput, unsigned int autoCloseMs)) |
| 192 | dlsym(m_libXBMC_gui, "GUI_dialog_keyboard_show_and_get_input_with_head"); | 192 | dlsym(m_libKODI_guilib, "GUI_dialog_keyboard_show_and_get_input_with_head"); |
| 193 | if (GUI_dialog_keyboard_show_and_get_input_with_head == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 193 | if (GUI_dialog_keyboard_show_and_get_input_with_head == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 194 | 194 | ||
| 195 | GUI_dialog_keyboard_show_and_get_input = (bool (*)(void *HANDLE, void *CB, char &aTextString, unsigned int iMaxStringSize, bool allowEmptyResult, unsigned int autoCloseMs)) | 195 | GUI_dialog_keyboard_show_and_get_input = (bool (*)(void *HANDLE, void *CB, char &aTextString, unsigned int iMaxStringSize, bool allowEmptyResult, unsigned int autoCloseMs)) |
| 196 | dlsym(m_libXBMC_gui, "GUI_dialog_keyboard_show_and_get_input"); | 196 | dlsym(m_libKODI_guilib, "GUI_dialog_keyboard_show_and_get_input"); |
| 197 | if (GUI_dialog_keyboard_show_and_get_input == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 197 | if (GUI_dialog_keyboard_show_and_get_input == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 198 | 198 | ||
| 199 | GUI_dialog_keyboard_show_and_get_new_password_with_head = (bool (*)(void *HANDLE, void *CB, char &newPassword, unsigned int iMaxStringSize, const char *heading, bool allowEmptyResult, unsigned int autoCloseMs)) | 199 | GUI_dialog_keyboard_show_and_get_new_password_with_head = (bool (*)(void *HANDLE, void *CB, char &newPassword, unsigned int iMaxStringSize, const char *heading, bool allowEmptyResult, unsigned int autoCloseMs)) |
| 200 | dlsym(m_libXBMC_gui, "GUI_dialog_keyboard_show_and_get_new_password_with_head"); | 200 | dlsym(m_libKODI_guilib, "GUI_dialog_keyboard_show_and_get_new_password_with_head"); |
| 201 | if (GUI_dialog_keyboard_show_and_get_new_password_with_head == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 201 | if (GUI_dialog_keyboard_show_and_get_new_password_with_head == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 202 | 202 | ||
| 203 | GUI_dialog_keyboard_show_and_get_new_password = (bool (*)(void *HANDLE, void *CB, char &strNewPassword, unsigned int iMaxStringSize, unsigned int autoCloseMs)) | 203 | GUI_dialog_keyboard_show_and_get_new_password = (bool (*)(void *HANDLE, void *CB, char &strNewPassword, unsigned int iMaxStringSize, unsigned int autoCloseMs)) |
| 204 | dlsym(m_libXBMC_gui, "GUI_dialog_keyboard_show_and_get_new_password"); | 204 | dlsym(m_libKODI_guilib, "GUI_dialog_keyboard_show_and_get_new_password"); |
| 205 | if (GUI_dialog_keyboard_show_and_get_new_password == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 205 | if (GUI_dialog_keyboard_show_and_get_new_password == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 206 | 206 | ||
| 207 | GUI_dialog_keyboard_show_and_verify_new_password_with_head = (bool (*)(void *HANDLE, void *CB, char &strNewPassword, unsigned int iMaxStringSize, const char *heading, bool allowEmptyResult, unsigned int autoCloseMs)) | 207 | GUI_dialog_keyboard_show_and_verify_new_password_with_head = (bool (*)(void *HANDLE, void *CB, char &strNewPassword, unsigned int iMaxStringSize, const char *heading, bool allowEmptyResult, unsigned int autoCloseMs)) |
| 208 | dlsym(m_libXBMC_gui, "GUI_dialog_keyboard_show_and_verify_new_password_with_head"); | 208 | dlsym(m_libKODI_guilib, "GUI_dialog_keyboard_show_and_verify_new_password_with_head"); |
| 209 | if (GUI_dialog_keyboard_show_and_verify_new_password_with_head == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 209 | if (GUI_dialog_keyboard_show_and_verify_new_password_with_head == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 210 | 210 | ||
| 211 | GUI_dialog_keyboard_show_and_verify_new_password = (bool (*)(void *HANDLE, void *CB, char &strNewPassword, unsigned int iMaxStringSize, unsigned int autoCloseMs)) | 211 | GUI_dialog_keyboard_show_and_verify_new_password = (bool (*)(void *HANDLE, void *CB, char &strNewPassword, unsigned int iMaxStringSize, unsigned int autoCloseMs)) |
| 212 | dlsym(m_libXBMC_gui, "GUI_dialog_keyboard_show_and_verify_new_password"); | 212 | dlsym(m_libKODI_guilib, "GUI_dialog_keyboard_show_and_verify_new_password"); |
| 213 | if (GUI_dialog_keyboard_show_and_verify_new_password == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 213 | if (GUI_dialog_keyboard_show_and_verify_new_password == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 214 | 214 | ||
| 215 | GUI_dialog_keyboard_show_and_verify_password = (int (*)(void *HANDLE, void *CB, char &strPassword, unsigned int iMaxStringSize, const char *strHeading, int iRetries, unsigned int autoCloseMs)) | 215 | GUI_dialog_keyboard_show_and_verify_password = (int (*)(void *HANDLE, void *CB, char &strPassword, unsigned int iMaxStringSize, const char *strHeading, int iRetries, unsigned int autoCloseMs)) |
| 216 | dlsym(m_libXBMC_gui, "GUI_dialog_keyboard_show_and_verify_password"); | 216 | dlsym(m_libKODI_guilib, "GUI_dialog_keyboard_show_and_verify_password"); |
| 217 | if (GUI_dialog_keyboard_show_and_verify_password == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 217 | if (GUI_dialog_keyboard_show_and_verify_password == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 218 | 218 | ||
| 219 | GUI_dialog_keyboard_show_and_get_filter = (bool (*)(void *HANDLE, void *CB, char &aTextString, unsigned int iMaxStringSize, bool searching, unsigned int autoCloseMs)) | 219 | GUI_dialog_keyboard_show_and_get_filter = (bool (*)(void *HANDLE, void *CB, char &aTextString, unsigned int iMaxStringSize, bool searching, unsigned int autoCloseMs)) |
| 220 | dlsym(m_libXBMC_gui, "GUI_dialog_keyboard_show_and_get_filter"); | 220 | dlsym(m_libKODI_guilib, "GUI_dialog_keyboard_show_and_get_filter"); |
| 221 | if (GUI_dialog_keyboard_show_and_get_filter == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 221 | if (GUI_dialog_keyboard_show_and_get_filter == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 222 | 222 | ||
| 223 | GUI_dialog_keyboard_send_text_to_active_keyboard = (bool (*)(void *HANDLE, void *CB, const char *aTextString, bool closeKeyboard)) | 223 | GUI_dialog_keyboard_send_text_to_active_keyboard = (bool (*)(void *HANDLE, void *CB, const char *aTextString, bool closeKeyboard)) |
| 224 | dlsym(m_libXBMC_gui, "GUI_dialog_keyboard_send_text_to_active_keyboard"); | 224 | dlsym(m_libKODI_guilib, "GUI_dialog_keyboard_send_text_to_active_keyboard"); |
| 225 | if (GUI_dialog_keyboard_send_text_to_active_keyboard == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 225 | if (GUI_dialog_keyboard_send_text_to_active_keyboard == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 226 | 226 | ||
| 227 | GUI_dialog_keyboard_is_activated = (bool (*)(void *HANDLE, void *CB)) | 227 | GUI_dialog_keyboard_is_activated = (bool (*)(void *HANDLE, void *CB)) |
| 228 | dlsym(m_libXBMC_gui, "GUI_dialog_keyboard_is_activated"); | 228 | dlsym(m_libKODI_guilib, "GUI_dialog_keyboard_is_activated"); |
| 229 | if (GUI_dialog_keyboard_is_activated == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 229 | if (GUI_dialog_keyboard_is_activated == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 230 | 230 | ||
| 231 | GUI_dialog_numeric_show_and_verify_new_password = (bool (*)(void *HANDLE, void *CB, char &strNewPassword, unsigned int iMaxStringSize)) | 231 | GUI_dialog_numeric_show_and_verify_new_password = (bool (*)(void *HANDLE, void *CB, char &strNewPassword, unsigned int iMaxStringSize)) |
| 232 | dlsym(m_libXBMC_gui, "GUI_dialog_numeric_show_and_verify_new_password"); | 232 | dlsym(m_libKODI_guilib, "GUI_dialog_numeric_show_and_verify_new_password"); |
| 233 | if (GUI_dialog_numeric_show_and_verify_new_password == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 233 | if (GUI_dialog_numeric_show_and_verify_new_password == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 234 | 234 | ||
| 235 | GUI_dialog_numeric_show_and_verify_password = (int (*)(void *HANDLE, void *CB, char &strPassword, unsigned int iMaxStringSize, const char *strHeading, int iRetries)) | 235 | GUI_dialog_numeric_show_and_verify_password = (int (*)(void *HANDLE, void *CB, char &strPassword, unsigned int iMaxStringSize, const char *strHeading, int iRetries)) |
| 236 | dlsym(m_libXBMC_gui, "GUI_dialog_numeric_show_and_verify_password"); | 236 | dlsym(m_libKODI_guilib, "GUI_dialog_numeric_show_and_verify_password"); |
| 237 | if (GUI_dialog_numeric_show_and_verify_password == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 237 | if (GUI_dialog_numeric_show_and_verify_password == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 238 | 238 | ||
| 239 | GUI_dialog_numeric_show_and_verify_input = (bool (*)(void *HANDLE, void *CB, char &strPassword, unsigned int iMaxStringSize, const char *strHeading, bool bGetUserInput)) | 239 | GUI_dialog_numeric_show_and_verify_input = (bool (*)(void *HANDLE, void *CB, char &strPassword, unsigned int iMaxStringSize, const char *strHeading, bool bGetUserInput)) |
| 240 | dlsym(m_libXBMC_gui, "GUI_dialog_numeric_show_and_verify_input"); | 240 | dlsym(m_libKODI_guilib, "GUI_dialog_numeric_show_and_verify_input"); |
| 241 | if (GUI_dialog_numeric_show_and_verify_input == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 241 | if (GUI_dialog_numeric_show_and_verify_input == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 242 | 242 | ||
| 243 | GUI_dialog_numeric_show_and_get_time = (bool (*)(void *HANDLE, void *CB, tm &time, const char *strHeading)) | 243 | GUI_dialog_numeric_show_and_get_time = (bool (*)(void *HANDLE, void *CB, tm &time, const char *strHeading)) |
| 244 | dlsym(m_libXBMC_gui, "GUI_dialog_numeric_show_and_get_time"); | 244 | dlsym(m_libKODI_guilib, "GUI_dialog_numeric_show_and_get_time"); |
| 245 | if (GUI_dialog_numeric_show_and_get_time == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 245 | if (GUI_dialog_numeric_show_and_get_time == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 246 | 246 | ||
| 247 | GUI_dialog_numeric_show_and_get_date = (bool (*)(void *HANDLE, void *CB, tm &date, const char *strHeading)) | 247 | GUI_dialog_numeric_show_and_get_date = (bool (*)(void *HANDLE, void *CB, tm &date, const char *strHeading)) |
| 248 | dlsym(m_libXBMC_gui, "GUI_dialog_numeric_show_and_get_date"); | 248 | dlsym(m_libKODI_guilib, "GUI_dialog_numeric_show_and_get_date"); |
| 249 | if (GUI_dialog_numeric_show_and_get_date == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 249 | if (GUI_dialog_numeric_show_and_get_date == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 250 | 250 | ||
| 251 | GUI_dialog_numeric_show_and_get_ipaddress = (bool (*)(void *HANDLE, void *CB, char &IPAddress, unsigned int iMaxStringSize, const char *strHeading)) | 251 | GUI_dialog_numeric_show_and_get_ipaddress = (bool (*)(void *HANDLE, void *CB, char &IPAddress, unsigned int iMaxStringSize, const char *strHeading)) |
| 252 | dlsym(m_libXBMC_gui, "GUI_dialog_numeric_show_and_get_ipaddress"); | 252 | dlsym(m_libKODI_guilib, "GUI_dialog_numeric_show_and_get_ipaddress"); |
| 253 | if (GUI_dialog_numeric_show_and_get_ipaddress == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 253 | if (GUI_dialog_numeric_show_and_get_ipaddress == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 254 | 254 | ||
| 255 | GUI_dialog_numeric_show_and_get_number = (bool (*)(void *HANDLE, void *CB, char &strInput, unsigned int iMaxStringSize, const char *strHeading, unsigned int iAutoCloseTimeoutMs)) | 255 | GUI_dialog_numeric_show_and_get_number = (bool (*)(void *HANDLE, void *CB, char &strInput, unsigned int iMaxStringSize, const char *strHeading, unsigned int iAutoCloseTimeoutMs)) |
| 256 | dlsym(m_libXBMC_gui, "GUI_dialog_numeric_show_and_get_number"); | 256 | dlsym(m_libKODI_guilib, "GUI_dialog_numeric_show_and_get_number"); |
| 257 | if (GUI_dialog_numeric_show_and_get_number == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 257 | if (GUI_dialog_numeric_show_and_get_number == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 258 | 258 | ||
| 259 | GUI_dialog_numeric_show_and_get_seconds = (bool (*)(void *HANDLE, void *CB, char &strTime, unsigned int iMaxStringSize, const char *strHeading)) | 259 | GUI_dialog_numeric_show_and_get_seconds = (bool (*)(void *HANDLE, void *CB, char &strTime, unsigned int iMaxStringSize, const char *strHeading)) |
| 260 | dlsym(m_libXBMC_gui, "GUI_dialog_numeric_show_and_get_seconds"); | 260 | dlsym(m_libKODI_guilib, "GUI_dialog_numeric_show_and_get_seconds"); |
| 261 | if (GUI_dialog_numeric_show_and_get_seconds == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 261 | if (GUI_dialog_numeric_show_and_get_seconds == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 262 | 262 | ||
| 263 | GUI_dialog_filebrowser_show_and_get_file = (bool (*)(void *HANDLE, void *CB, const char *directory, const char *mask, const char *heading, char &path, unsigned int iMaxStringSize, bool useThumbs, bool useFileDirectories, bool singleList)) | 263 | GUI_dialog_filebrowser_show_and_get_file = (bool (*)(void *HANDLE, void *CB, const char *directory, const char *mask, const char *heading, char &path, unsigned int iMaxStringSize, bool useThumbs, bool useFileDirectories, bool singleList)) |
| 264 | dlsym(m_libXBMC_gui, "GUI_dialog_filebrowser_show_and_get_file"); | 264 | dlsym(m_libKODI_guilib, "GUI_dialog_filebrowser_show_and_get_file"); |
| 265 | if (GUI_dialog_filebrowser_show_and_get_file == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 265 | if (GUI_dialog_filebrowser_show_and_get_file == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 266 | 266 | ||
| 267 | GUI_dialog_ok_show_and_get_input_single_text = (void (*)(void *HANDLE, void *CB, const char *heading, const char *text)) | 267 | GUI_dialog_ok_show_and_get_input_single_text = (void (*)(void *HANDLE, void *CB, const char *heading, const char *text)) |
| 268 | dlsym(m_libXBMC_gui, "GUI_dialog_ok_show_and_get_input_single_text"); | 268 | dlsym(m_libKODI_guilib, "GUI_dialog_ok_show_and_get_input_single_text"); |
| 269 | if (GUI_dialog_ok_show_and_get_input_single_text == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 269 | if (GUI_dialog_ok_show_and_get_input_single_text == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 270 | 270 | ||
| 271 | GUI_dialog_ok_show_and_get_input_line_text = (void (*)(void *HANDLE, void *CB, const char *heading, const char *line0, const char *line1, const char *line2)) | 271 | GUI_dialog_ok_show_and_get_input_line_text = (void (*)(void *HANDLE, void *CB, const char *heading, const char *line0, const char *line1, const char *line2)) |
| 272 | dlsym(m_libXBMC_gui, "GUI_dialog_ok_show_and_get_input_line_text"); | 272 | dlsym(m_libKODI_guilib, "GUI_dialog_ok_show_and_get_input_line_text"); |
| 273 | if (GUI_dialog_ok_show_and_get_input_line_text == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 273 | if (GUI_dialog_ok_show_and_get_input_line_text == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 274 | 274 | ||
| 275 | GUI_dialog_yesno_show_and_get_input_singletext = (bool (*)(void *HANDLE, void *CB, const char *heading, const char *text, bool& bCanceled, const char *noLabel, const char *yesLabel)) | 275 | GUI_dialog_yesno_show_and_get_input_singletext = (bool (*)(void *HANDLE, void *CB, const char *heading, const char *text, bool& bCanceled, const char *noLabel, const char *yesLabel)) |
| 276 | dlsym(m_libXBMC_gui, "GUI_dialog_yesno_show_and_get_input_singletext"); | 276 | dlsym(m_libKODI_guilib, "GUI_dialog_yesno_show_and_get_input_singletext"); |
| 277 | if (GUI_dialog_yesno_show_and_get_input_singletext == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 277 | if (GUI_dialog_yesno_show_and_get_input_singletext == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 278 | 278 | ||
| 279 | GUI_dialog_yesno_show_and_get_input_linetext = (bool (*)(void *HANDLE, void *CB, const char *heading, const char *line0, const char *line1, const char *line2, const char *noLabel, const char *yesLabel)) | 279 | GUI_dialog_yesno_show_and_get_input_linetext = (bool (*)(void *HANDLE, void *CB, const char *heading, const char *line0, const char *line1, const char *line2, const char *noLabel, const char *yesLabel)) |
| 280 | dlsym(m_libXBMC_gui, "GUI_dialog_yesno_show_and_get_input_linetext"); | 280 | dlsym(m_libKODI_guilib, "GUI_dialog_yesno_show_and_get_input_linetext"); |
| 281 | if (GUI_dialog_yesno_show_and_get_input_linetext == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 281 | if (GUI_dialog_yesno_show_and_get_input_linetext == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 282 | 282 | ||
| 283 | GUI_dialog_yesno_show_and_get_input_linebuttontext = (bool (*)(void *HANDLE, void *CB, const char *heading, const char *line0, const char *line1, const char *line2, bool &bCanceled, const char *noLabel, const char *yesLabel)) | 283 | GUI_dialog_yesno_show_and_get_input_linebuttontext = (bool (*)(void *HANDLE, void *CB, const char *heading, const char *line0, const char *line1, const char *line2, bool &bCanceled, const char *noLabel, const char *yesLabel)) |
| 284 | dlsym(m_libXBMC_gui, "GUI_dialog_yesno_show_and_get_input_linebuttontext"); | 284 | dlsym(m_libKODI_guilib, "GUI_dialog_yesno_show_and_get_input_linebuttontext"); |
| 285 | if (GUI_dialog_yesno_show_and_get_input_linebuttontext == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 285 | if (GUI_dialog_yesno_show_and_get_input_linebuttontext == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 286 | 286 | ||
| 287 | GUI_dialog_text_viewer = (void (*)(void *hdl, void *cb, const char *heading, const char *text)) | 287 | GUI_dialog_text_viewer = (void (*)(void *hdl, void *cb, const char *heading, const char *text)) |
| 288 | dlsym(m_libXBMC_gui, "GUI_dialog_text_viewer"); | 288 | dlsym(m_libKODI_guilib, "GUI_dialog_text_viewer"); |
| 289 | if (GUI_dialog_text_viewer == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 289 | if (GUI_dialog_text_viewer == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 290 | 290 | ||
| 291 | GUI_dialog_select = (int (*)(void *hdl, void *cb, const char *heading, const char *entries[], unsigned int size, int selected)) | 291 | GUI_dialog_select = (int (*)(void *hdl, void *cb, const char *heading, const char *entries[], unsigned int size, int selected)) |
| 292 | dlsym(m_libXBMC_gui, "GUI_dialog_select"); | 292 | dlsym(m_libKODI_guilib, "GUI_dialog_select"); |
| 293 | if (GUI_dialog_select == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } | 293 | if (GUI_dialog_select == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } |
| 294 | 294 | ||
| 295 | m_Callbacks = GUI_register_me(m_Handle); | 295 | m_Callbacks = GUI_register_me(m_Handle); |
| @@ -604,7 +604,7 @@ protected: | |||
| 604 | int (*GUI_dialog_select)(void *hdl, void *cb, const char *heading, const char *entries[], unsigned int size, int selected); | 604 | int (*GUI_dialog_select)(void *hdl, void *cb, const char *heading, const char *entries[], unsigned int size, int selected); |
| 605 | 605 | ||
| 606 | private: | 606 | private: |
| 607 | void *m_libXBMC_gui; | 607 | void *m_libKODI_guilib; |
| 608 | void *m_Handle; | 608 | void *m_Handle; |
| 609 | void *m_Callbacks; | 609 | void *m_Callbacks; |
| 610 | struct cb_array | 610 | struct cb_array |
