diff options
Diffstat (limited to 'addons/library.xbmc.addon/libXBMC_addon.h')
-rw-r--r-- | addons/library.xbmc.addon/libXBMC_addon.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/addons/library.xbmc.addon/libXBMC_addon.h b/addons/library.xbmc.addon/libXBMC_addon.h index 342f804704..42fcee2a4e 100644 --- a/addons/library.xbmc.addon/libXBMC_addon.h +++ b/addons/library.xbmc.addon/libXBMC_addon.h @@ -158,15 +158,15 @@ namespace ADDON dlsym(m_libXBMC_addon, "XBMC_queue_notification"); if (XBMC_queue_notification == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } - XBMC_unknown_to_utf8 = (const char* (*)(void* HANDLE, void* CB, const char* str)) + XBMC_unknown_to_utf8 = (char* (*)(void* HANDLE, void* CB, const char* str)) dlsym(m_libXBMC_addon, "XBMC_unknown_to_utf8"); if (XBMC_unknown_to_utf8 == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } - XBMC_get_localized_string = (const char* (*)(void* HANDLE, void* CB, int dwCode)) + XBMC_get_localized_string = (char* (*)(void* HANDLE, void* CB, int dwCode)) dlsym(m_libXBMC_addon, "XBMC_get_localized_string"); if (XBMC_get_localized_string == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } - XBMC_get_dvd_menu_language = (const char* (*)(void* HANDLE, void* CB)) + XBMC_get_dvd_menu_language = (char* (*)(void* HANDLE, void* CB)) dlsym(m_libXBMC_addon, "XBMC_get_dvd_menu_language"); if (XBMC_get_dvd_menu_language == NULL) { fprintf(stderr, "Unable to assign function %s\n", dlerror()); return false; } @@ -296,7 +296,7 @@ namespace ADDON * @param str The string to translate. * @return The string translated to UTF8. Must be freed when done. */ - const char* UnknownToUTF8(const char* str) + char* UnknownToUTF8(const char* str) { return XBMC_unknown_to_utf8(m_Handle, m_Callbacks, str); } @@ -306,7 +306,7 @@ namespace ADDON * @param dwCode The code of the message to get. * @return The message. Needs to be freed when done. */ - const char* GetLocalizedString(int dwCode) + char* GetLocalizedString(int dwCode) { return XBMC_get_localized_string(m_Handle, m_Callbacks, dwCode); } @@ -316,7 +316,7 @@ namespace ADDON * @brief Get the DVD menu language. * @return The language. Needs to be freed when done. */ - const char* GetDVDMenuLanguage() + char* GetDVDMenuLanguage() { return XBMC_get_dvd_menu_language(m_Handle, m_Callbacks); } @@ -528,9 +528,9 @@ namespace ADDON void (*XBMC_log)(void *HANDLE, void* CB, const addon_log_t loglevel, const char *msg); bool (*XBMC_get_setting)(void *HANDLE, void* CB, const char* settingName, void *settingValue); void (*XBMC_queue_notification)(void *HANDLE, void* CB, const queue_msg_t type, const char *msg); - const char* (*XBMC_unknown_to_utf8)(void *HANDLE, void* CB, const char* str); - const char* (*XBMC_get_localized_string)(void *HANDLE, void* CB, int dwCode); - const char* (*XBMC_get_dvd_menu_language)(void *HANDLE, void* CB); + char* (*XBMC_unknown_to_utf8)(void *HANDLE, void* CB, const char* str); + char* (*XBMC_get_localized_string)(void *HANDLE, void* CB, int dwCode); + char* (*XBMC_get_dvd_menu_language)(void *HANDLE, void* CB); void* (*XBMC_open_file)(void *HANDLE, void* CB, const char* strFileName, unsigned int flags); void* (*XBMC_open_file_for_write)(void *HANDLE, void* CB, const char* strFileName, bool bOverWrite); unsigned int (*XBMC_read_file)(void *HANDLE, void* CB, void* file, void* lpBuf, int64_t uiBufSize); |