]> git.sesse.net Git - vlc/blobdiff - include/vlc_plugin.h
shortcuts are strings
[vlc] / include / vlc_plugin.h
index 6b6ccae55254eeb7112d8a2a3987a947704ae787..134dfe213fad274636f8a694b2218f9921e2b066 100644 (file)
@@ -122,7 +122,8 @@ E_(vlc_entry) ( module_t *p_module );
         goto error
 
 #define add_shortcut( shortcut ) \
-    if (vlc_module_set (p_submodule, VLC_MODULE_SHORTCUT, (int)(shortcut))) \
+    if (vlc_module_set (p_submodule, VLC_MODULE_SHORTCUT, \
+        (const char *)(shortcut))) \
         goto error
 
 #define set_shortname( shortname ) \
@@ -140,7 +141,8 @@ E_(vlc_entry) ( module_t *p_module );
         goto error
 
 #define set_capability( cap, score ) \
-    if (vlc_module_set (p_submodule, VLC_MODULE_CAPABILITY, (int)(cap)) \
+    if (vlc_module_set (p_submodule, VLC_MODULE_CAPABILITY, \
+                        (const char *)(cap)) \
      || vlc_module_set (p_submodule, VLC_MODULE_SCORE, (int)(score))) \
         goto error