| VLC
    3.0.18
    | 

| Data Structures | |
| struct | callback_entry_t | 
| struct | variable_ops_t | 
| struct | callback_table_t | 
| struct | variable_t | 
| The structure describing a variable.  More... | |
| Typedefs | |
| typedef struct callback_entry_t | callback_entry_t | 
| typedef struct variable_ops_t | variable_ops_t | 
| typedef struct callback_table_t | callback_table_t | 
| Enumerations | |
| enum | vlc_callback_type_t { vlc_value_callback, vlc_list_callback } | 
| Functions | |
| static int | CmpBool (vlc_value_t v, vlc_value_t w) | 
| static int | CmpInt (vlc_value_t v, vlc_value_t w) | 
| static int | CmpString (vlc_value_t v, vlc_value_t w) | 
| static int | CmpFloat (vlc_value_t v, vlc_value_t w) | 
| static int | CmpAddress (vlc_value_t v, vlc_value_t w) | 
| static void | DupDummy (vlc_value_t *p_val) | 
| static void | DupString (vlc_value_t *p_val) | 
| static void | FreeDummy (vlc_value_t *p_val) | 
| static void | FreeString (vlc_value_t *p_val) | 
| static int | varcmp (const void *a, const void *b) | 
| static variable_t * | Lookup (vlc_object_t *obj, const char *psz_name) | 
| static void | Destroy (variable_t *p_var) | 
| static void | CheckValue (variable_t *var, vlc_value_t *val) | 
| Adjusts a value to fit the constraints for a certain variable:  More... | |
| static void | WaitUnused (vlc_object_t *obj, variable_t *var) | 
| Waits until the variable is inactive (i.e.  More... | |
| static void | TriggerCallback (vlc_object_t *obj, variable_t *var, const char *name, vlc_value_t prev) | 
| static void | TriggerListCallback (vlc_object_t *obj, variable_t *var, const char *name, int action, vlc_value_t *val) | 
| int | var_Create (vlc_object_t *p_this, const char *psz_name, int i_type) | 
| Initialize a vlc variable.  More... | |
| void() | var_Destroy (vlc_object_t *p_this, const char *psz_name) | 
| Destroy a vlc variable.  More... | |
| static void | CleanupVar (void *var) | 
| void | var_DestroyAll (vlc_object_t *obj) | 
| int | var_Change (vlc_object_t *p_this, const char *psz_name, int i_action, vlc_value_t *p_val, vlc_value_t *p_val2) | 
| Perform an action on a variable.  More... | |
| int | var_GetAndSet (vlc_object_t *p_this, const char *psz_name, int i_action, vlc_value_t *p_val) | 
| Perform a Get and Set on a variable.  More... | |
| int | var_Type (vlc_object_t *p_this, const char *psz_name) | 
| Request a variable's type.  More... | |
| int | var_SetChecked (vlc_object_t *p_this, const char *psz_name, int expected_type, vlc_value_t val) | 
| int | var_Set (vlc_object_t *p_this, const char *psz_name, vlc_value_t val) | 
| Set a variable's value.  More... | |
| int | var_GetChecked (vlc_object_t *p_this, const char *psz_name, int expected_type, vlc_value_t *p_val) | 
| int | var_Get (vlc_object_t *p_this, const char *psz_name, vlc_value_t *p_val) | 
| Get a variable's value.  More... | |
| static void | AddCallback (vlc_object_t *p_this, const char *psz_name, callback_entry_t entry, vlc_callback_type_t i_type) | 
| void | var_AddCallback (vlc_object_t *p_this, const char *psz_name, vlc_callback_t pf_callback, void *p_data) | 
| Register a callback in a variable.  More... | |
| static void | DelCallback (vlc_object_t *p_this, const char *psz_name, callback_entry_t entry, vlc_callback_type_t i_type) | 
| void | var_DelCallback (vlc_object_t *p_this, const char *psz_name, vlc_callback_t pf_callback, void *p_data) | 
| Remove a callback from a variable.  More... | |
| void | var_TriggerCallback (vlc_object_t *p_this, const char *psz_name) | 
| Trigger callback on a variable.  More... | |
| void | var_AddListCallback (vlc_object_t *p_this, const char *psz_name, vlc_list_callback_t pf_callback, void *p_data) | 
| Register a callback for a list variable.  More... | |
| void | var_DelListCallback (vlc_object_t *p_this, const char *psz_name, vlc_list_callback_t pf_callback, void *p_data) | 
| Remove a callback from a list variable.  More... | |
| void | var_OptionParse (vlc_object_t *p_obj, const char *psz_option, bool trusted) | 
| Parse a stringified option This function parse a string option and create the associated object variable The option must be of the form "[no[-]]foo[=bar]" where foo is the option name and bar is the value of the option.  More... | |
| int | var_LocationParse (vlc_object_t *obj, const char *mrl, const char *pref) | 
| Parses a set of colon-separated or semicolon-separated name=valuepairs.  More... | |
| int | var_Inherit (vlc_object_t *p_this, const char *psz_name, int i_type, vlc_value_t *p_val) | 
| Finds the value of a variable.  More... | |
| int() | var_InheritURational (vlc_object_t *object, unsigned *num, unsigned *den, const char *var) | 
| It inherits a string as an unsigned rational number (it also accepts basic float number).  More... | |
| void | var_FreeList (vlc_value_t *p_val, vlc_value_t *p_val2) | 
| Free a list and the associated strings.  More... | |
| static void | DumpVariable (const void *data, const VISIT which, const int depth) | 
| void | DumpVariables (vlc_object_t *obj) | 
| static void | TwalkGetNames (const void *data, const VISIT which, const int depth) | 
| char ** | var_GetAllNames (vlc_object_t *obj) | 
| Return a list of all variable names.  More... | |
| Variables | |
| static const struct variable_ops_t | void_ops = { NULL, DupDummy, FreeDummy, } | 
| static const struct variable_ops_t | addr_ops = { CmpAddress, DupDummy, FreeDummy, } | 
| static const struct variable_ops_t | bool_ops = { CmpBool, DupDummy, FreeDummy, } | 
| static const struct variable_ops_t | float_ops = { CmpFloat, DupDummy, FreeDummy, } | 
| static const struct variable_ops_t | int_ops = { CmpInt, DupDummy, FreeDummy, } | 
| static const struct variable_ops_t | string_ops = { CmpString, DupString, FreeString, } | 
| static const struct variable_ops_t | coords_ops = { NULL, DupDummy, FreeDummy, } | 
| static thread_local void * | twalk_ctx | 
| typedef struct callback_entry_t callback_entry_t | 
| typedef struct callback_table_t callback_table_t | 
| typedef struct variable_ops_t variable_ops_t | 
| enum vlc_callback_type_t | 
| 
 | static | 
Referenced by var_AddCallback(), and var_AddListCallback().
| 
 | static | 
Adjusts a value to fit the constraints for a certain variable:
References vlc_value_t::f_float, vlc_value_t::i_int, variable_t::i_type, variable_t::max, variable_t::min, variable_t::step, VLC_VAR_FLOAT, VLC_VAR_INTEGER, and VLC_VAR_TYPE.
Referenced by var_Change(), var_GetAndSet(), and var_SetChecked().
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
Referenced by var_DelCallback(), and var_DelListCallback().
| 
 | static | 
Referenced by var_Create(), and var_Destroy().
| 
 | static | 
| void DumpVariables | ( | vlc_object_t * | obj | ) | 
| 
 | static | 
References vlc_value_t::p_address.
Referenced by varcmp().
| 
 | static | 
| 
 | static | 
Referenced by var_Change(), and varcmp().
| 
 | static | 
| 
 | static | 
Referenced by var_Change(), var_Destroy(), var_GetAndSet(), var_GetChecked(), var_SetChecked(), var_TriggerCallback(), and var_Type().
| 
 | static | 
Referenced by var_GetAndSet(), var_SetChecked(), and var_TriggerCallback().
| 
 | static | 
Referenced by var_Change().
| 
 | static | 
References ARRAY_APPEND, DECL_ARRAY, leaf, postorder, variable_t::psz_name, strdup(), and twalk_ctx.
| void() var_Destroy | ( | vlc_object_t * | p_this, | 
| const char * | psz_name | ||
| ) | 
Destroy a vlc variable.
Look for the variable and destroy it if it is found. As in var_Create we do a call to memmove() but we have performance counterparts elsewhere.
| p_this | The object that holds the variable | 
| psz_name | The name of the variable | 
References variable_t::b_incallback, Destroy(), variable_t::i_usage, Lookup(), msg_Dbg, psz_name, tdelete(), vlc_object_internals::var_lock, vlc_object_internals::var_root, varcmp(), vlc_internals, and vlc_mutex_unlock().
| void var_DestroyAll | ( | vlc_object_t * | obj | ) | 
Referenced by vlc_object_destroy().
| char** var_GetAllNames | ( | vlc_object_t * | ) | 
Return a list of all variable names.
There is no warranty that the returned variables will be still alive after the return of this function.
Referenced by filter_AddProxyCallbacks(), and filter_DelProxyCallbacks().
| int() var_InheritURational | ( | vlc_object_t * | object, | 
| unsigned * | num, | ||
| unsigned * | den, | ||
| const char * | var | ||
| ) | 
It inherits a string as an unsigned rational number (it also accepts basic float number).
It returns an error if the rational number cannot be parsed (0/0 is valid). The rational is already reduced.
< No error
< Unspecified error
References var_InheritString, VLC_EGENERIC, VLC_SUCCESS, and vlc_ureduce().
| void var_OptionParse | ( | vlc_object_t * | p_obj, | 
| const char * | psz_option, | ||
| bool | trusted | ||
| ) | 
Parse a stringified option This function parse a string option and create the associated object variable The option must be of the form "[no[-]]foo[=bar]" where foo is the option name and bar is the value of the option.
| p_obj | the object in which the variable must be created | 
| psz_option | the option to parse | 
| trusted | whether the option is set by a trusted input or not | 
References vlc_value_t::b_bool, config_GetType(), config_IsSafe(), vlc_value_t::f_float, vlc_value_t::i_int, i_type, msg_Err, psz_name, vlc_value_t::psz_string, psz_value, strdup(), strtoll(), us_atof(), var_Create(), var_Set(), VLC_VAR_BOOL, VLC_VAR_FLOAT, VLC_VAR_INTEGER, and VLC_VAR_STRING.
Referenced by input_item_ApplyOptions(), and var_LocationParse().
| 
 | static | 
References DupDummy(), and FreeDummy().
Referenced by var_Create(), and var_Destroy().
| 
 | static | 
Waits until the variable is inactive (i.e.
not executing a callback)
References variable_t::b_incallback, mutex_cleanup_push, vlc_object_internals::var_lock, vlc_object_internals::var_wait, vlc_cleanup_pop, vlc_cond_wait(), and vlc_internals.
Referenced by var_GetAndSet(), var_SetChecked(), and var_TriggerCallback().
| 
 | static | 
Referenced by var_Create().
| 
 | static | 
Referenced by var_Create().
| 
 | static | 
Referenced by var_Create().
| 
 | static | 
Referenced by var_Create().
| 
 | static | 
Referenced by var_Create().
| 
 | static | 
Referenced by var_Create().
| 
 | static | 
Referenced by TwalkGetNames().
| 
 | static | 
Referenced by var_Create().
 1.8.16
 1.8.16