VLC  4.0.0-dev
Data Structures | Macros | Functions | Variables
actions.c File Reference

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

Include dependency graph for actions.c:

Data Structures

struct  key_descriptor
 
struct  name2action
 
struct  mapping
 
struct  vlc_actions_t
 

Macros

#define MAXACTION   26
 

Functions

static int keystrcmp (const void *key, const void *elem)
 
static char * utf8_cp (uint_fast32_t cp, char *buf)
 
uint_fast32_t vlc_str2keycode (const char *name)
 Parse a human-readable string representation of a VLC key code. More...
 
static const char * nooptext (const char *txt)
 
char * vlc_keycode2str (uint_fast32_t code, bool locale)
 Format a human-readable and unique representation of a VLC key code (including modifiers). More...
 
static int keycmp (const void *a, const void *b)
 
static int vlc_key_to_action (vlc_object_t *obj, const char *varname, vlc_value_t prevkey, vlc_value_t curkey, void *d)
 
static int add_mapping (void **map, uint32_t keycode, vlc_action_id_t action)
 Adds a mapping from a certain key code to a certain action. More...
 
static void add_wheel_mapping (void **map, uint32_t kmore, uint32_t kless, int mode)
 
static void init_action (vlc_object_t *obj, void **map, const char *confname, vlc_action_id_t action)
 Sets up all key mappings for a given action. More...
 
int libvlc_InternalActionsInit (libvlc_int_t *libvlc)
 Initializes the key map from configuration. More...
 
void libvlc_InternalActionsClean (libvlc_int_t *libvlc)
 Destroys the key map. More...
 
static int actcmp (const void *key, const void *ent)
 
vlc_action_id_t vlc_actions_get_id (const char *name)
 Get the action ID from the action name in the configuration subsystem. More...
 
size_t vlc_actions_get_keycodes (vlc_object_t *p_obj, const char *psz_key_name, bool b_global, uint_fast32_t **pp_keycodes)
 Get keycodes from a action key name and vlc configuration. More...
 
const char *const * vlc_actions_get_key_names (vlc_object_t *p_obj)
 Get a list a key names. More...