]> git.sesse.net Git - vlc/blobdiff - src/libvlc.h
Thread-safe and more compact hotkeys initialization
[vlc] / src / libvlc.h
index 20c0ff1412634c006f5fa62448ed5a5195f6bcdc..6ebecb13180e6564f4a3d8c5e2eaf29f4a7e68a5 100644 (file)
@@ -29,9 +29,14 @@ typedef struct variable_t variable_t;
 
 extern const char vlc_usage[];
 
-/* Hotkey stuff */
-extern const struct hotkey libvlc_hotkeys[];
-extern const size_t libvlc_hotkeys_size;
+/* Actions (hot keys) */
+typedef struct action
+{
+    char name[24];
+    int  value;
+} action_t;
+extern const struct action libvlc_actions[];
+extern const size_t libvlc_actions_count;
 extern int vlc_key_to_action (vlc_object_t *, const char *,
                               vlc_value_t, vlc_value_t, void *);