Commit 325436b1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Export vlc_str2keycode()

This is needed for global hotkeys. In the best of worlds, I think the
global hotkey plugins would directly get the list of keycodes to grab
using a dedicated plugin type. This would avoid the need to replicate
hotkey configuration parsing. But it would need some more work.
parent e55de111
......@@ -87,6 +87,7 @@
#define KEY_MOUSEWHEELRIGHT 0x00F30000
VLC_EXPORT( char *, vlc_keycode2str, (uint_fast32_t i_key) ) LIBVLC_USED;
VLC_EXPORT( uint_fast32_t, vlc_str2keycode, (const char *str) ) LIBVLC_USED;
typedef enum vlc_key {
ACTIONID_NONE = 0,
......
......@@ -150,7 +150,6 @@ static char *utf8_cp (uint_fast32_t cp, char *buf)
* Parse a human-readable string representation of a VLC key code.
* @return a VLC key code, or KEY_UNSET on failure.
*/
static
uint_fast32_t vlc_str2keycode (const char *name)
{
uint_fast32_t mods = 0;
......
......@@ -681,3 +681,4 @@ xml_ReaderCreate
xml_ReaderDelete
xml_ReaderReset
vlc_keycode2str
vlc_str2keycode
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment