]> git.sesse.net Git - vlc/commitdiff
Fix struct hotkey
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 3 Jan 2010 14:06:55 +0000 (16:06 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 3 Jan 2010 14:32:56 +0000 (16:32 +0200)
include/vlc_keys.h
include/vlc_main.h
src/libvlc.c

index b630e48ef65a68567cd4cdc05e676e210e8a87fe..46df01f92d6143270899ff9ebd4ec18981bc50ee 100644 (file)
@@ -209,4 +209,11 @@ typedef enum vlc_key {
 
 VLC_EXPORT( vlc_key_t, vlc_GetActionId, (const char *psz_key) ) LIBVLC_USED;
 
+struct hotkey
+{
+    const char *psz_action;
+    vlc_key_t i_action;
+    uint_fast32_t i_key;
+};
+
 #endif
index 44299df77333ff09640560ad8919d8645b61f383..841d15dc0ae1600ac7c779cf6ab7d5038f29b3a7 100644 (file)
@@ -28,6 +28,8 @@
 
 TYPEDEF_ARRAY(input_item_t*, input_item_array_t);
 
+struct hotkey;
+
 /*****************************************************************************
  * libvlc_internal_instance_t
  *****************************************************************************
@@ -38,11 +40,6 @@ struct libvlc_int_t
     VLC_COMMON_MEMBERS
 
     /* Structure storing the action name / key associations */
-    const struct hotkey
-    {
-        const char *psz_action;
-        int i_action;
-        int i_key;
-    } *p_hotkeys;
+    const struct hotkey *p_hotkeys;
 };
 
index 2a54c70a61450e38fc06d00f01d4cc6a1708bb07..b04af7a618b3fc4cdaf9f31e9895e12170f00a73 100644 (file)
@@ -84,6 +84,7 @@
 #include <vlc_charset.h>
 #include <vlc_cpu.h>
 #include <vlc_url.h>
+#include <vlc_keys.h>
 
 #include "libvlc.h"