From: RĂ©mi Denis-Courmont Date: Sun, 3 Jan 2010 14:06:55 +0000 (+0200) Subject: Fix struct hotkey X-Git-Tag: 1.1.0-ff~1505 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e973801d968cf13a84e2aa74db0cada3fab74db0;p=vlc Fix struct hotkey --- diff --git a/include/vlc_keys.h b/include/vlc_keys.h index b630e48ef6..46df01f92d 100644 --- a/include/vlc_keys.h +++ b/include/vlc_keys.h @@ -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 diff --git a/include/vlc_main.h b/include/vlc_main.h index 44299df773..841d15dc0a 100644 --- a/include/vlc_main.h +++ b/include/vlc_main.h @@ -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; }; diff --git a/src/libvlc.c b/src/libvlc.c index 2a54c70a61..b04af7a618 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -84,6 +84,7 @@ #include #include #include +#include #include "libvlc.h"