aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLars Op den Kamp <lars@opdenkamp.eu>2012-11-09 01:06:23 +0100
committerLars Op den Kamp <lars@opdenkamp.eu>2012-11-10 01:15:00 +0100
commit42f6b3e6a4f9d2321afbc47209a88d1455a27820 (patch)
tree49d360ca528a8a99853b9d9c0dcc7b7db17c8d46 /lib
parent3d9633d90bd4e1f9e4b992ea09883888c29aaf20 (diff)
[pvr] return char* instead of const char* from UnknownToUTF8, GetLocalizedString and GetDVDMenuLanguage. use strdup to dupe the strings
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 2dd9b0a65c..243abb0691 100644
--- a/lib/addons/library.xbmc.addon/libXBMC_addon.cpp
+++ b/lib/addons/library.xbmc.addon/libXBMC_addon.cpp
@@ -84,7 +84,7 @@ DLLEXPORT void XBMC_queue_notification(void *hdl, void* cb, const queue_msg_t ty
((CB_AddOnLib*)cb)->QueueNotification(((AddonCB*)hdl)->addonData, type, msg);
}
-DLLEXPORT const char* XBMC_unknown_to_utf8(void *hdl, void* cb, const char* str)
+DLLEXPORT char* XBMC_unknown_to_utf8(void *hdl, void* cb, const char* str)
{
if (cb == NULL)
return NULL;
@@ -92,7 +92,7 @@ DLLEXPORT const char* XBMC_unknown_to_utf8(void *hdl, void* cb, const char* str)
return ((CB_AddOnLib*)cb)->UnknownToUTF8(str);
}
-DLLEXPORT const char* XBMC_get_localized_string(void *hdl, void* cb, int dwCode)
+DLLEXPORT char* XBMC_get_localized_string(void *hdl, void* cb, int dwCode)
{
if (cb == NULL)
return "";
@@ -100,7 +100,7 @@ DLLEXPORT const char* XBMC_get_localized_string(void *hdl, void* cb, int dwCode)
return ((CB_AddOnLib*)cb)->GetLocalizedString(((AddonCB*)hdl)->addonData, dwCode);
}
-DLLEXPORT const char* XBMC_get_dvd_menu_language(void *hdl, void* cb)
+DLLEXPORT char* XBMC_get_dvd_menu_language(void *hdl, void* cb)
{
if (cb == NULL)
return "";