aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlwinEsch <alwin.esch@web.de>2015-02-15 15:15:43 +0100
committerAlwinEsch <alwin.esch@web.de>2015-02-15 16:39:02 +0100
commitdb44ba5faf00cf29ac7a45ef49a933d1ef45366b (patch)
treebecadcb4d809c1a8f22f135bf5e819585c72e828 /lib
parentfdd5d9163f640221620a413bd393923f90e62deb (diff)
[addon] Increase API with change 'char*' return value to 'const char*' to fix compiler warnings (addon relevant part)
Diffstat (limited to 'lib')
-rw-r--r--lib/addons/library.xbmc.addon/libXBMC_addon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/addons/library.xbmc.addon/libXBMC_addon.cpp b/lib/addons/library.xbmc.addon/libXBMC_addon.cpp
index e00bc77584..9355bc39b8 100644
--- a/lib/addons/library.xbmc.addon/libXBMC_addon.cpp
+++ b/lib/addons/library.xbmc.addon/libXBMC_addon.cpp
@@ -92,7 +92,7 @@ DLLEXPORT bool XBMC_wake_on_lan(void* hdl, void* cb, char* mac)
return ((CB_AddOnLib*)cb)->WakeOnLan(mac);
}
-DLLEXPORT char* XBMC_unknown_to_utf8(void *hdl, void* cb, const char* str)
+DLLEXPORT const char* XBMC_unknown_to_utf8(void *hdl, void* cb, const char* str)
{
if (cb == NULL)
return NULL;
@@ -100,7 +100,7 @@ DLLEXPORT char* XBMC_unknown_to_utf8(void *hdl, void* cb, const char* str)
return ((CB_AddOnLib*)cb)->UnknownToUTF8(str);
}
-DLLEXPORT char* XBMC_get_localized_string(void *hdl, void* cb, int dwCode)
+DLLEXPORT const char* XBMC_get_localized_string(void *hdl, void* cb, int dwCode)
{
if (cb == NULL)
return "";
@@ -108,7 +108,7 @@ DLLEXPORT char* XBMC_get_localized_string(void *hdl, void* cb, int dwCode)
return ((CB_AddOnLib*)cb)->GetLocalizedString(((AddonCB*)hdl)->addonData, dwCode);
}
-DLLEXPORT char* XBMC_get_dvd_menu_language(void *hdl, void* cb)
+DLLEXPORT const char* XBMC_get_dvd_menu_language(void *hdl, void* cb)
{
if (cb == NULL)
return "";