This file defines functions and structures for hotkey handling in vlc. More...

Data Structures | |
| struct | key_descriptor_s |
Typedefs | |
| typedef struct key_descriptor_s | key_descriptor_t |
Enumerations | |
| enum | { vlc_num_modifiers } |
| enum | { vlc_num_keys = sizeof(vlc_keys)/sizeof(struct key_descriptor_s) } |
Functions | |
| static int | cmpkey (const void *key, const void *elem) |
| static char * | utf8_cp (uint_fast32_t cp, char *buf) |
| static uint_fast32_t | cp_utf8 (const char *utf8) |
| char * | KeyToString (uint_fast32_t sym) |
| uint_fast32_t | StringToKey (char *name) |
| uint_fast32_t | ConfigStringToKey (const char *name) |
| char * | ConfigKeyToString (uint_fast32_t i_key) |
Variables | |
| static struct key_descriptor_s | vlc_modifiers [] |
| static struct key_descriptor_s | vlc_keys [] |
This file defines functions and structures for hotkey handling in vlc.
| typedef struct key_descriptor_s key_descriptor_t |
| static int cmpkey | ( | const void * | key, | |
| const void * | elem | |||
| ) | [static] |
Referenced by ConfigKeyToString(), and KeyToString().
| char* ConfigKeyToString | ( | uint_fast32_t | i_key | ) |
References cmpkey(), key_descriptor_s::i_key_code, key_descriptor_s::psz_key_string, utf8_cp(), and vlc_num_keys.
Referenced by SaveConfigFile().
| uint_fast32_t ConfigStringToKey | ( | const char * | name | ) |
References cp_utf8(), key_descriptor_s::i_key_code, key_descriptor_s::psz_key_string, strcasecmp(), and strncasecmp().
Referenced by config_LoadCmdLine(), and config_LoadConfigFile().
| static uint_fast32_t cp_utf8 | ( | const char * | utf8 | ) | [static] |
Referenced by ConfigStringToKey(), and StringToKey().
| char* KeyToString | ( | uint_fast32_t | sym | ) |
References cmpkey(), key_descriptor_s::psz_key_string, strdup(), utf8_cp(), and vlc_num_keys.
| uint_fast32_t StringToKey | ( | char * | name | ) |
References cp_utf8(), key_descriptor_s::i_key_code, and key_descriptor_s::psz_key_string.
| static char* utf8_cp | ( | uint_fast32_t | cp, | |
| char * | buf | |||
| ) | [static] |
Referenced by ConfigKeyToString(), and KeyToString().
struct key_descriptor_s vlc_keys[] [static] |
Referenced by main().
struct key_descriptor_s vlc_modifiers[] [static] |
{
{ "Alt", 0x01000000 },
{ "Shift", 0x02000000 },
{ "Ctrl", 0x04000000 },
{ "Meta", 0x08000000 },
{ "Command", 0x10000000 }
}
1.7.1