Functions for using the object variables in vlc. More...
|
Modules | |
| Variable types | |
These are the different types a vlc variable can have. | |
| Additive flags | |
These flags are added to the type field of the variable. | |
| Variable actions | |
These are the different actions that can be used with var_Change(). | |
Defines | |
| #define | VLC_VAR_TYPE 0x00ff |
| #define | VLC_VAR_CLASS 0x00f0 |
| #define | VLC_VAR_FLAGS 0xff00 |
| #define | var_Create(a, b, c) var_Create( VLC_OBJECT(a), b, c ) |
| #define | var_Destroy(a, b) var_Destroy( VLC_OBJECT(a), b ) |
| #define | var_Change(a, b, c, d, e) var_Change( VLC_OBJECT(a), b, c, d, e ) |
| #define | var_Type(a, b) var_Type( VLC_OBJECT(a), b ) |
| #define | var_Set(a, b, c) var_Set( VLC_OBJECT(a), b, c ) |
| #define | var_Get(a, b, c) var_Get( VLC_OBJECT(a), b, c ) |
| #define | var_SetChecked(o, n, t, v) var_SetChecked(VLC_OBJECT(o),n,t,v) |
| #define | var_GetChecked(o, n, t, v) var_GetChecked(VLC_OBJECT(o),n,t,v) |
| #define | var_Command(a, b, c, d, e) var_Command( VLC_OBJECT( a ), b, c, d, e ) |
| #define | var_AddCallback(a, b, c, d) var_AddCallback( VLC_OBJECT(a), b, c, d ) |
| #define | var_DelCallback(a, b, c, d) var_DelCallback( VLC_OBJECT(a), b, c, d ) |
| #define | var_TriggerCallback(a, b) var_TriggerCallback( VLC_OBJECT(a), b ) |
| #define | var_SetCoords(o, n, x, y) var_SetCoords(VLC_OBJECT(o),n,x,y) |
| #define | var_SetInteger(a, b, c) var_SetInteger( VLC_OBJECT(a),b,c) |
| #define | var_SetBool(a, b, c) var_SetBool( VLC_OBJECT(a),b,c) |
| #define | var_SetTime(a, b, c) var_SetTime( VLC_OBJECT(a),b,c) |
| #define | var_SetFloat(a, b, c) var_SetFloat( VLC_OBJECT(a),b,c) |
| #define | var_SetString(a, b, c) var_SetString( VLC_OBJECT(a),b,c) |
| #define | var_SetAddress(o, n, p) var_SetAddress(VLC_OBJECT(o), n, p) |
| #define | var_GetCoords(o, n, x, y) var_GetCoords(VLC_OBJECT(o),n,x,y) |
| #define | var_IncInteger(a, b) var_IncInteger( VLC_OBJECT(a), b ) |
| #define | var_DecInteger(a, b) var_DecInteger( VLC_OBJECT(a), b ) |
| #define | var_OrInteger(a, b, c) var_OrInteger(VLC_OBJECT(a),b,c) |
| #define | var_NAndInteger(a, b, c) var_NAndInteger(VLC_OBJECT(a),b,c) |
| #define | var_CreateGetInteger(a, b) var_CreateGetInteger( VLC_OBJECT(a),b) |
| #define | var_CreateGetBool(a, b) var_CreateGetBool( VLC_OBJECT(a),b) |
| #define | var_CreateGetTime(a, b) var_CreateGetTime( VLC_OBJECT(a),b) |
| #define | var_CreateGetFloat(a, b) var_CreateGetFloat( VLC_OBJECT(a),b) |
| #define | var_CreateGetString(a, b) var_CreateGetString( VLC_OBJECT(a),b) |
| #define | var_CreateGetNonEmptyString(a, b) var_CreateGetNonEmptyString( VLC_OBJECT(a),b) |
| #define | var_CreateGetAddress(a, b) var_CreateGetAddress( VLC_OBJECT(a),b) |
| #define | var_CreateGetIntegerCommand(a, b) var_CreateGetIntegerCommand( VLC_OBJECT(a),b) |
| #define | var_CreateGetBoolCommand(a, b) var_CreateGetBoolCommand( VLC_OBJECT(a),b) |
| #define | var_CreateGetTimeCommand(a, b) var_CreateGetTimeCommand( VLC_OBJECT(a),b) |
| #define | var_CreateGetFloatCommand(a, b) var_CreateGetFloatCommand( VLC_OBJECT(a),b) |
| #define | var_CreateGetStringCommand(a, b) var_CreateGetStringCommand( VLC_OBJECT(a),b) |
| #define | var_CreateGetNonEmptyStringCommand(a, b) var_CreateGetNonEmptyStringCommand( VLC_OBJECT(a),b) |
| #define | var_CountChoices(a, b) var_CountChoices( VLC_OBJECT(a),b) |
| #define | var_ToggleBool(a, b) var_ToggleBool( VLC_OBJECT(a),b ) |
| #define | var_InheritBool(o, n) var_InheritBool(VLC_OBJECT(o), n) |
| #define | var_InheritInteger(o, n) var_InheritInteger(VLC_OBJECT(o), n) |
| #define | var_InheritFloat(o, n) var_InheritFloat(VLC_OBJECT(o), n) |
| #define | var_InheritString(o, n) var_InheritString(VLC_OBJECT(o), n) |
| #define | var_InheritTime(o, n) var_InheritTime(VLC_OBJECT(o), n) |
| #define | var_InheritAddress(o, n) var_InheritAddress(VLC_OBJECT(o), n) |
| #define | var_InheritURational(a, b, c, d) var_InheritURational(VLC_OBJECT(a), b, c, d) |
| #define | var_GetInteger(a, b) var_GetInteger( VLC_OBJECT(a),b) |
| #define | var_GetBool(a, b) var_GetBool( VLC_OBJECT(a),b) |
| #define | var_GetTime(a, b) var_GetTime( VLC_OBJECT(a),b) |
| #define | var_GetFloat(a, b) var_GetFloat( VLC_OBJECT(a),b) |
| #define | var_GetString(a, b) var_GetString( VLC_OBJECT(a),b) |
| #define | var_GetNonEmptyString(a, b) var_GetNonEmptyString( VLC_OBJECT(a),b) |
| #define | var_GetAddress(a, b) var_GetAddress( VLC_OBJECT(a),b) |
| #define | var_LocationParse(o, m, p) var_LocationParse(VLC_OBJECT(o), m, p) |
Functions | |
| VLC_API int | var_Create (vlc_object_t *, const char *, int) |
| Initialize a vlc variable. | |
| VLC_API int | var_Destroy (vlc_object_t *, const char *) |
| Destroy a vlc variable. | |
| VLC_API int | var_Change (vlc_object_t *, const char *, int, vlc_value_t *, vlc_value_t *) |
| Perform an action on a variable. | |
| VLC_API int | var_Type (vlc_object_t *, const char *) VLC_USED |
| Request a variable's type. | |
| VLC_API int | var_Set (vlc_object_t *, const char *, vlc_value_t) |
| Set a variable's value. | |
| VLC_API int | var_Get (vlc_object_t *, const char *, vlc_value_t *) |
| Get a variable's value. | |
| VLC_API int | var_SetChecked (vlc_object_t *, const char *, int, vlc_value_t) |
| VLC_API int | var_GetChecked (vlc_object_t *, const char *, int, vlc_value_t *) |
| VLC_API int | var_GetAndSet (vlc_object_t *, const char *, int, vlc_value_t *) |
| Perform a Get and Set on a variable. | |
| VLC_API int | var_Inherit (vlc_object_t *, const char *, int, vlc_value_t *) |
| Finds the value of a variable. | |
| VLC_API int | var_Command (vlc_object_t *, const char *, const char *, const char *, char **) |
| VLC_API void | var_FreeList (vlc_value_t *, vlc_value_t *) |
| Free a list and the associated strings. | |
| VLC_API int | var_AddCallback (vlc_object_t *, const char *, vlc_callback_t, void *) |
| Register a callback in a variable. | |
| VLC_API int | var_DelCallback (vlc_object_t *, const char *, vlc_callback_t, void *) |
| Remove a callback from a variable. | |
| VLC_API int | var_TriggerCallback (vlc_object_t *, const char *) |
| Trigger callback on a variable. | |
| static int | var_SetInteger (vlc_object_t *p_obj, const char *psz_name, int64_t i) |
| Set the value of an integer variable. | |
| static int | var_SetBool (vlc_object_t *p_obj, const char *psz_name, bool b) |
| Set the value of an boolean variable. | |
| static int | var_SetTime (vlc_object_t *p_obj, const char *psz_name, int64_t i) |
| Set the value of a time variable. | |
| static int | var_SetCoords (vlc_object_t *obj, const char *name, int32_t x, int32_t y) |
| static int | var_SetFloat (vlc_object_t *p_obj, const char *psz_name, float f) |
| Set the value of a float variable. | |
| static int | var_SetString (vlc_object_t *p_obj, const char *psz_name, const char *psz_string) |
| Set the value of a string variable. | |
| static int | var_SetAddress (vlc_object_t *p_obj, const char *psz_name, void *ptr) |
| Set the value of a pointer variable. | |
| static VLC_USED int64_t | var_GetInteger (vlc_object_t *p_obj, const char *psz_name) |
| Get an integer value. | |
| static VLC_USED bool | var_GetBool (vlc_object_t *p_obj, const char *psz_name) |
| Get a boolean value. | |
| static VLC_USED int64_t | var_GetTime (vlc_object_t *p_obj, const char *psz_name) |
| Get a time value. | |
| static void | var_GetCoords (vlc_object_t *obj, const char *name, int32_t *px, int32_t *py) |
| static VLC_USED float | var_GetFloat (vlc_object_t *p_obj, const char *psz_name) |
| Get a float value. | |
| VLC_USED static VLC_MALLOC char * | var_GetString (vlc_object_t *p_obj, const char *psz_name) |
| Get a string value. | |
| VLC_USED static VLC_MALLOC char * | var_GetNonEmptyString (vlc_object_t *p_obj, const char *psz_name) |
| static VLC_USED void * | var_GetAddress (vlc_object_t *p_obj, const char *psz_name) |
| static int64_t | var_IncInteger (vlc_object_t *p_obj, const char *psz_name) |
| Increment an integer variable. | |
| static int64_t | var_DecInteger (vlc_object_t *p_obj, const char *psz_name) |
| Decrement an integer variable. | |
| static uint64_t | var_OrInteger (vlc_object_t *obj, const char *name, unsigned v) |
| static uint64_t | var_NAndInteger (vlc_object_t *obj, const char *name, unsigned v) |
| static VLC_USED int64_t | var_CreateGetInteger (vlc_object_t *p_obj, const char *psz_name) |
| Create a integer variable with inherit and get its value. | |
| static VLC_USED bool | var_CreateGetBool (vlc_object_t *p_obj, const char *psz_name) |
| Create a boolean variable with inherit and get its value. | |
| static VLC_USED int64_t | var_CreateGetTime (vlc_object_t *p_obj, const char *psz_name) |
| Create a time variable with inherit and get its value. | |
| static VLC_USED float | var_CreateGetFloat (vlc_object_t *p_obj, const char *psz_name) |
| Create a float variable with inherit and get its value. | |
| VLC_USED static VLC_MALLOC char * | var_CreateGetString (vlc_object_t *p_obj, const char *psz_name) |
| Create a string variable with inherit and get its value. | |
| VLC_USED static VLC_MALLOC char * | var_CreateGetNonEmptyString (vlc_object_t *p_obj, const char *psz_name) |
| static VLC_USED void * | var_CreateGetAddress (vlc_object_t *p_obj, const char *psz_name) |
| Create an address variable with inherit and get its value. | |
| static VLC_USED int64_t | var_CreateGetIntegerCommand (vlc_object_t *p_obj, const char *psz_name) |
| Create a integer command variable with inherit and get its value. | |
| static VLC_USED bool | var_CreateGetBoolCommand (vlc_object_t *p_obj, const char *psz_name) |
| Create a boolean command variable with inherit and get its value. | |
| static VLC_USED int64_t | var_CreateGetTimeCommand (vlc_object_t *p_obj, const char *psz_name) |
| Create a time command variable with inherit and get its value. | |
| static VLC_USED float | var_CreateGetFloatCommand (vlc_object_t *p_obj, const char *psz_name) |
| Create a float command variable with inherit and get its value. | |
| VLC_USED static VLC_MALLOC char * | var_CreateGetStringCommand (vlc_object_t *p_obj, const char *psz_name) |
| Create a string command variable with inherit and get its value. | |
| VLC_USED static VLC_MALLOC char * | var_CreateGetNonEmptyStringCommand (vlc_object_t *p_obj, const char *psz_name) |
| static VLC_USED int | var_CountChoices (vlc_object_t *p_obj, const char *psz_name) |
| static bool | var_ToggleBool (vlc_object_t *p_obj, const char *psz_name) |
| static VLC_USED bool | var_InheritBool (vlc_object_t *obj, const char *name) |
| static VLC_USED int64_t | var_InheritInteger (vlc_object_t *obj, const char *name) |
| static VLC_USED float | var_InheritFloat (vlc_object_t *obj, const char *name) |
| VLC_USED static VLC_MALLOC char * | var_InheritString (vlc_object_t *obj, const char *name) |
| static VLC_USED mtime_t | var_InheritTime (vlc_object_t *obj, const char *name) |
| static VLC_USED void * | var_InheritAddress (vlc_object_t *obj, const char *name) |
| VLC_API int | var_InheritURational (vlc_object_t *, unsigned *num, unsigned *den, const char *var) |
| It inherits a string as an unsigned rational number (it also accepts basic float number). | |
| VLC_API int | var_LocationParse (vlc_object_t *, const char *mrl, const char *prefix) |
| Parses a set of colon-separated <variable name>="">=pairs. | |
Functions for using the object variables in vlc.
Vlc have a very powerful "object variable" infrastructure useful for many things.
| #define var_AddCallback | ( | a, | ||
| b, | ||||
| c, | ||||
| d | ||||
| ) | var_AddCallback( VLC_OBJECT(a), b, c, d ) |
Referenced by aout_DecNew(), aout_InputNew(), aout_OutputNew(), input_ControlVarNavigation(), input_ControlVarTitle(), InputAddCallbacks(), intf_Create(), PlayItem(), PostProcessEnable(), spu_Attach(), VariablesInit(), vlc_custom_create(), vlc_InitActions(), vlm_ControlMediaInstanceStart(), vlm_OnMediaUpdate(), vout_InitInterlacingSupport(), vout_IntfInit(), vout_OpenWrapper(), and WaitPreparsed().
| #define var_Change | ( | a, | ||
| b, | ||||
| c, | ||||
| d, | ||||
| e | ||||
| ) | var_Change( VLC_OBJECT(a), b, c, d, e ) |
Referenced by AddCustomRatios(), aout_New(), aout_OutputNew(), EsOutESVarUpdateGeneric(), input_ControlVarInit(), input_ControlVarNavigation(), input_ControlVarTitle(), input_SendEventAudioDelay(), input_SendEventCache(), input_SendEventLength(), input_SendEventPosition(), input_SendEventRate(), input_SendEventRecord(), input_SendEventSeekpoint(), input_SendEventSignal(), input_SendEventState(), input_SendEventSubtitleDelay(), input_SendEventTitle(), intf_Create(), NavigationCallback(), PositionCallback(), PostProcessEnable(), SeekpointCallback(), SubtitleAdd(), TimeCallback(), TitleCallback(), UpdateBookmarksOption(), var_CountChoices(), VarListAdd(), VarListDel(), VarListSelect(), vout_InitInterlacingSupport(), vout_IntfInit(), and vout_SendEventSourceCrop().
| #define var_Command | ( | a, | ||
| b, | ||||
| c, | ||||
| d, | ||||
| e | ||||
| ) | var_Command( VLC_OBJECT( a ), b, c, d, e ) |
| #define var_CountChoices | ( | a, | ||
| b | ||||
| ) | var_CountChoices( VLC_OBJECT(a),b) |
Referenced by EsOutSetRecord().
| #define var_Create | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_Create( VLC_OBJECT(a), b, c ) |
Referenced by aout_New(), aout_OutputNew(), aout_VolumeHardInit(), config_ChainParse(), config_LoadCmdLine(), config_PrintHelp(), EqualizerCallback(), input_ConfigVarInit(), input_ControlVarInit(), input_ControlVarNavigation(), input_ControlVarTitle(), intf_Create(), libvlc_InternalInit(), LoadSubtitles(), osd_MenuCreate(), PostProcessEnable(), sout_NewInstance(), spu_Attach(), SpuRenderCreateAndLoadText(), stream_ReadLine(), var_CreateGetAddress(), var_CreateGetBool(), var_CreateGetBoolCommand(), var_CreateGetFloat(), var_CreateGetFloatCommand(), var_CreateGetInteger(), var_CreateGetIntegerCommand(), var_CreateGetNonEmptyString(), var_CreateGetNonEmptyStringCommand(), var_CreateGetString(), var_CreateGetStringCommand(), var_CreateGetTime(), var_CreateGetTimeCommand(), var_OptionParse(), VariablesInit(), VisualizationCallback(), vlc_custom_create(), vlc_InitActions(), vlc_tls_ServerCreate(), vlm_ControlMediaInstanceStart(), vlm_New(), vlm_OnMediaUpdate(), vout_InitInterlacingSupport(), vout_IntfInit(), and vout_OpenWrapper().
| #define var_CreateGetAddress | ( | a, | ||
| b | ||||
| ) | var_CreateGetAddress( VLC_OBJECT(a),b) |
| #define var_CreateGetBool | ( | a, | ||
| b | ||||
| ) | var_CreateGetBool( VLC_OBJECT(a),b) |
Referenced by LoopInput(), MainLoop(), ThreadStart(), vout_new_buffer(), and VoutGetDisplayCfg().
| #define var_CreateGetBoolCommand | ( | a, | ||
| b | ||||
| ) | var_CreateGetBoolCommand( VLC_OBJECT(a),b) |
| #define var_CreateGetFloat | ( | a, | ||
| b | ||||
| ) | var_CreateGetFloat( VLC_OBJECT(a),b) |
Referenced by LoadSubtitles(), and VoutGetDisplayCfg().
| #define var_CreateGetFloatCommand | ( | a, | ||
| b | ||||
| ) | var_CreateGetFloatCommand( VLC_OBJECT(a),b) |
| #define var_CreateGetInteger | ( | a, | ||
| b | ||||
| ) | var_CreateGetInteger( VLC_OBJECT(a),b) |
Referenced by AddressCreate(), input_EsOutTimeshiftNew(), LoadSubtitles(), PostProcessEnable(), vout_OpenWrapper(), and VoutGetDisplayCfg().
| #define var_CreateGetIntegerCommand | ( | a, | ||
| b | ||||
| ) | var_CreateGetIntegerCommand( VLC_OBJECT(a),b) |
| #define var_CreateGetNonEmptyString | ( | a, | ||
| b | ||||
| ) | var_CreateGetNonEmptyString( VLC_OBJECT(a),b) |
| #define var_CreateGetNonEmptyStringCommand | ( | a, | ||
| b | ||||
| ) | var_CreateGetNonEmptyStringCommand( VLC_OBJECT(a),b) |
| #define var_CreateGetString | ( | a, | ||
| b | ||||
| ) | var_CreateGetString( VLC_OBJECT(a),b) |
Referenced by aout_ChangeFilterString(), DeinterlaceCallback(), intf_Create(), vlc_module_load(), and vlm_New().
| #define var_CreateGetStringCommand | ( | a, | ||
| b | ||||
| ) | var_CreateGetStringCommand( VLC_OBJECT(a),b) |
| #define var_CreateGetTime | ( | a, | ||
| b | ||||
| ) | var_CreateGetTime( VLC_OBJECT(a),b) |
| #define var_CreateGetTimeCommand | ( | a, | ||
| b | ||||
| ) | var_CreateGetTimeCommand( VLC_OBJECT(a),b) |
| #define var_DecInteger | ( | a, | ||
| b | ||||
| ) | var_DecInteger( VLC_OBJECT(a), b ) |
| #define var_DelCallback | ( | a, | ||
| b, | ||||
| c, | ||||
| d | ||||
| ) | var_DelCallback( VLC_OBJECT(a), b, c, d ) |
| #define var_Destroy | ( | a, | ||
| b | ||||
| ) | var_Destroy( VLC_OBJECT(a), b ) |
Referenced by aout_ChangeFilterString(), aout_ChannelsRestart(), aout_DecNew(), aout_Shutdown(), aout_VolumeNoneInit(), config_GetConfigFile(), input_ControlVarNavigation(), input_ControlVarTitle(), libvlc_InternalAddIntf(), libvlc_InternalInit(), LoadSubtitles(), osd_MenuDelete(), PostProcessDisable(), and spu_Attach().
| #define var_Get | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_Get( VLC_OBJECT(a), b, c ) |
Referenced by config_ChainParse(), input_ControlVarInit(), osd_MenuCreate(), UpdateSPU(), and vout_IntfInit().
| #define var_GetAddress | ( | a, | ||
| b | ||||
| ) | var_GetAddress( VLC_OBJECT(a),b) |
Referenced by findAout(), osd_Find(), and var_CreateGetAddress().
| #define var_GetBool | ( | a, | ||
| b | ||||
| ) | var_GetBool( VLC_OBJECT(a),b) |
Referenced by DeinterlaceCallback(), EsSelect(), InitPrograms(), input_item_add_subitem_tree(), input_vaControl(), InputSourceInit(), libvlc_InternalInit(), LoadSubtitles(), LoopRequest(), MainLoop(), NextItem(), osd_isVisible(), PlaylistVAControl(), ResetCurrentlyPlaying(), SpuRenderText(), StartTitle(), var_CreateGetBool(), var_CreateGetBoolCommand(), vout_SendEventDisplayFilled(), vout_SendEventOnTop(), VoutCreate(), VoutOsdSnapshot(), and VoutSaveSnapshot().
| #define var_GetChecked | ( | o, | ||
| n, | ||||
| t, | ||||
| v | ||||
| ) | var_GetChecked(VLC_OBJECT(o),n,t,v) |
Referenced by var_Get(), var_GetAddress(), var_GetBool(), var_GetCoords(), var_GetFloat(), var_GetInteger(), var_GetNonEmptyString(), var_GetString(), var_GetTime(), and var_Inherit().
| #define var_GetCoords | ( | o, | ||
| n, | ||||
| x, | ||||
| y | ||||
| ) | var_GetCoords(VLC_OBJECT(o),n,x,y) |
Referenced by vout_SendEventMousePressed().
| #define var_GetFloat | ( | a, | ||
| b | ||||
| ) | var_GetFloat( VLC_OBJECT(a),b) |
| #define var_GetInteger | ( | a, | ||
| b | ||||
| ) | var_GetInteger( VLC_OBJECT(a),b) |
Referenced by CropBorderCallback(), DeinterlaceCallback(), EsUnselect(), input_ControlVarInit(), input_EsOutNew(), input_SendEventProgramScrambled(), input_vaControl(), InputEvent(), InputSourceInit(), MainLoopTryRepeat(), PlayItem(), playlist_fetcher_New(), playlist_preparser_New(), PlaylistVAControl(), SeekpointCallback(), sout_MuxSendBuffer(), str_format_meta(), subtitles_Detect(), TitleCallback(), UpdateActivity(), UpdatePtsDelay(), UpdateSPU(), var_CreateGetInteger(), var_CreateGetIntegerCommand(), vlm_ControlMediaInstanceGets(), vlm_ControlMediaInstancePause(), vlm_ControlMediaInstanceStart(), vout_GetSnapshot(), vout_InitInterlacingSupport(), VoutCreate(), and VoutSaveSnapshot().
| #define var_GetNonEmptyString | ( | a, | ||
| b | ||||
| ) | var_GetNonEmptyString( VLC_OBJECT(a),b) |
Referenced by aout_New(), Create(), DeinterlaceAdd(), DeinterlaceIsPresent(), DeinterlaceRemove(), demux_New(), EsOutSelect(), InitPrograms(), InputMetaUser(), InputSourceInit(), LoadSlaves(), LoadSubtitles(), PostProcessEnable(), str_format_meta(), var_CreateGetNonEmptyString(), var_CreateGetNonEmptyStringCommand(), vlc_sdp_Start(), vout_InitInterlacingSupport(), and VoutSaveSnapshot().
| #define var_GetString | ( | a, | ||
| b | ||||
| ) | var_GetString( VLC_OBJECT(a),b) |
| #define var_GetTime | ( | a, | ||
| b | ||||
| ) | var_GetTime( VLC_OBJECT(a),b) |
| #define var_IncInteger | ( | a, | ||
| b | ||||
| ) | var_IncInteger( VLC_OBJECT(a), b ) |
| #define var_InheritAddress | ( | o, | ||
| n | ||||
| ) | var_InheritAddress(VLC_OBJECT(o), n) |
| #define var_InheritBool | ( | o, | ||
| n | ||||
| ) | var_InheritBool(VLC_OBJECT(o), n) |
Referenced by aout_InputNew(), aout_ReplayGainSelect(), aout_VolumeSoftInit(), commitVolume(), config_PrintHelp(), Create(), decoder_SynchroInit(), libvlc_InternalCleanup(), libvlc_InternalInit(), ListModules(), OSDWidget(), playlist_Create(), playlist_Deactivate(), prepareVolume(), sout_NewInstance(), system_Configure(), ThreadInit(), Usage(), vlc_threads_setup(), vlc_xlib_init(), vout_NewDisplayWindow(), vout_OSDText(), vout_window_New(), and VoutDisplayNewWindow().
| #define var_InheritFloat | ( | o, | ||
| n | ||||
| ) | var_InheritFloat(VLC_OBJECT(o), n) |
Referenced by aout_ReplayGainSelect(), and Init().
| #define var_InheritInteger | ( | o, | ||
| n | ||||
| ) | var_InheritInteger(VLC_OBJECT(o), n) |
| #define var_InheritString | ( | o, | ||
| n | ||||
| ) | var_InheritString(VLC_OBJECT(o), n) |
| #define var_InheritTime | ( | o, | ||
| n | ||||
| ) | var_InheritTime(VLC_OBJECT(o), n) |
| #define var_InheritURational | ( | a, | ||
| b, | ||||
| c, | ||||
| d | ||||
| ) | var_InheritURational(VLC_OBJECT(a), b, c, d) |
Referenced by VoutGetDisplayCfg().
| #define var_LocationParse | ( | o, | ||
| m, | ||||
| p | ||||
| ) | var_LocationParse(VLC_OBJECT(o), m, p) |
| #define var_NAndInteger | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_NAndInteger(VLC_OBJECT(a),b,c) |
Referenced by vout_SendEventMouseReleased().
| #define var_OrInteger | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_OrInteger(VLC_OBJECT(a),b,c) |
Referenced by vout_SendEventMousePressed().
| #define var_Set | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_Set( VLC_OBJECT(a), b, c ) |
Referenced by config_ChainParse(), osd_SetKeyPressed(), osd_SetMenuUpdate(), osd_SetMenuVisible(), var_OptionParse(), and vout_IntfInit().
| #define var_SetAddress | ( | o, | ||
| n, | ||||
| p | ||||
| ) | var_SetAddress(VLC_OBJECT(o), n, p) |
Referenced by ChangeToNode(), dialog_ExtensionUpdate(), dialog_Login(), dialog_ProgressCreate(), dialog_Question(), dialog_VFatal(), extension_DialogCommand(), input_item_changed(), osd_MenuCreate(), osd_MenuDelete(), PlayItem(), playlist_SendAddNotify(), Preparse(), Thread(), Trigger(), TriggerInstanceState(), VariablesInit(), vlm_ControlMediaInstanceStart(), and vlm_OnMediaUpdate().
| #define var_SetBool | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_SetBool( VLC_OBJECT(a),b,c) |
Referenced by aout_VolumeHardSet(), commitVolume(), config_LoadCmdLine(), config_PrintHelp(), Init(), input_ConfigVarInit(), input_SendEventProgramScrambled(), input_vaControl(), InputSourceInit(), libvlc_InternalInit(), osd_MenuCreate(), SpuRenderText(), ThreadChangeFullscreen(), var_Command(), VariablesInit(), vout_SendEventDisplayFilled(), vout_SendEventFullscreen(), vout_SendEventMousePressed(), vout_SendEventOnTop(), and vout_SetInterlacingState().
| #define var_SetChecked | ( | o, | ||
| n, | ||||
| t, | ||||
| v | ||||
| ) | var_SetChecked(VLC_OBJECT(o),n,t,v) |
Referenced by var_Set(), var_SetAddress(), var_SetBool(), var_SetCoords(), var_SetFloat(), var_SetInteger(), var_SetString(), and var_SetTime().
| #define var_SetCoords | ( | o, | ||
| n, | ||||
| x, | ||||
| y | ||||
| ) | var_SetCoords(VLC_OBJECT(o),n,x,y) |
Referenced by vout_SendEventMouseMoved(), and vout_SendEventMousePressed().
| #define var_SetFloat | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_SetFloat( VLC_OBJECT(a),b,c) |
| #define var_SetInteger | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_SetInteger( VLC_OBJECT(a),b,c) |
Referenced by aout_OutputNew(), aout_VolumeHardSet(), commitVolume(), config_LoadCmdLine(), EsOutProgramSelect(), EsOutUpdateInfo(), Init(), input_ConfigVarInit(), input_item_add_subitem_tree(), input_vaControl(), libvlc_InternalInit(), MainLoopTryRepeat(), playlist_NodeDelete(), PlaylistVAControl(), PostProcessCallback(), PostProcessEnable(), TimeCallback(), Trigger(), UpdateActivity(), var_Command(), VariablesInit(), vlc_key_to_action(), vlm_ControlMediaInstancePause(), vlm_ControlMediaInstanceStart(), vout_InitInterlacingSupport(), vout_IntfInit(), vout_SendEventKey(), vout_SendEventMouseDoubleClick(), and VoutSaveSnapshot().
| #define var_SetString | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_SetString( VLC_OBJECT(a),b,c) |
Referenced by aout_ChangeFilterString(), aout_New(), config_LoadCmdLine(), DeinterlaceAdd(), DeinterlaceCallback(), DeinterlaceRemove(), EqualizerCallback(), Init(), libvlc_InternalInit(), LoadSubtitles(), PostProcessCallback(), stream_ReadLine(), var_Command(), VisualizationCallback(), vlc_tls_ServerCreate(), vlm_ControlMediaInstanceStart(), vout_EnableFilter(), vout_SendEventSourceAspect(), and VoutSaveSnapshot().
| #define var_SetTime | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_SetTime( VLC_OBJECT(a),b,c) |
Referenced by input_vaControl(), LoadSubtitles(), SpuRenderText(), TimeCallback(), and vlm_ControlMediaInstanceSetTimePosition().
| #define var_ToggleBool | ( | a, | ||
| b | ||||
| ) | var_ToggleBool( VLC_OBJECT(a),b ) |
Referenced by vout_SendEventMousePressed().
| #define var_TriggerCallback | ( | a, | ||
| b | ||||
| ) | var_TriggerCallback( VLC_OBJECT(a), b ) |
Referenced by aout_DecNew(), aout_OutputNew(), aout_VolumeHardSet(), commitVolume(), DeinterlaceCallback(), PostProcessCallback(), and vout_IntfInit().
| #define var_Type | ( | a, | ||
| b | ||||
| ) | var_Type( VLC_OBJECT(a), b ) |
Referenced by aout_OutputNew(), input_ControlVarTitle(), and var_Command().
| #define VLC_VAR_CLASS 0x00f0 |
Referenced by DumpVariable(), FreeList(), var_Create(), var_GetChecked(), var_Inherit(), and var_SetChecked().
| #define VLC_VAR_FLAGS 0xff00 |
| #define VLC_VAR_TYPE 0x00ff |
Referenced by CheckValue(), DumpVariable(), var_GetChecked(), and var_SetChecked().
| VLC_API int 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.
We store a function pointer that will be called upon variable modification.
| p_this | The object that holds the variable | |
| psz_name | The name of the variable | |
| pf_callback | The function pointer | |
| p_data | A generic pointer that will be passed as the last argument to the callback function. |
References variable_t::i_entries, INSERT_ELEM, Lookup(), msg_Warn, callback_entry_t::p_data, variable_t::p_entries, callback_entry_t::pf_callback, vlc_object_internals::var_lock, vlc_internals, vlc_mutex_lock(), vlc_mutex_unlock(), and WaitUnused().
| VLC_API 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.
| p_this | The object that holds the variable | |
| psz_name | The name of the variable | |
| i_action | The action to perform. Must be one of Variable actions | |
| p_val | First action parameter | |
| p_val2 | Second action parameter |
References CheckValue(), variable_t::choices, variable_t::choices_text, vlc_list_t::i_count, variable_t::i_default, vlc_value_t::i_int, variable_t::i_type, INSERT_ELEM, Lookup(), variable_t::max, variable_t::min, variable_t::ops, vlc_value_t::p_list, vlc_list_t::p_values, variable_ops_t::pf_cmp, variable_ops_t::pf_dup, variable_ops_t::pf_free, vlc_list_t::pi_types, vlc_value_t::psz_string, variable_t::psz_text, REMOVE_ELEM, variable_t::step, strdup(), variable_t::val, vlc_object_internals::var_lock, vlc_internals, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_VAR_ADDCHOICE, VLC_VAR_CHOICESCOUNT, VLC_VAR_CLEARCHOICES, VLC_VAR_DELCHOICE, VLC_VAR_GETCHOICES, VLC_VAR_GETLIST, VLC_VAR_GETMAX, VLC_VAR_GETMIN, VLC_VAR_GETSTEP, VLC_VAR_GETTEXT, VLC_VAR_HASMAX, VLC_VAR_HASMIN, VLC_VAR_HASSTEP, VLC_VAR_SETDEFAULT, VLC_VAR_SETISCOMMAND, VLC_VAR_SETMAX, VLC_VAR_SETMIN, VLC_VAR_SETSTEP, VLC_VAR_SETTEXT, and VLC_VAR_SETVALUE.
| VLC_API int var_Command | ( | vlc_object_t * | , | |
| const char * | , | |||
| const char * | , | |||
| const char * | , | |||
| char ** | ||||
| ) |
| static VLC_USED int var_CountChoices | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
References count, vlc_value_t::i_int, var_Change, and VLC_VAR_CHOICESCOUNT.
| VLC_API int var_Create | ( | vlc_object_t * | p_this, | |
| const char * | psz_name, | |||
| int | i_type | |||
| ) |
Initialize a vlc variable.
We hash the given string and insert it into the sorted list. The insertion may require slow memory copies, but think about what we gain in the log(n) lookup phase when setting/getting the variable value!
| p_this | The object in which to create the variable | |
| psz_name | The name of the variable | |
| i_type | The variables type. Must be one of Variable types combined with zero or more Additive flags |
References addr_ops, vlc_value_t::b_bool, variable_t::b_incallback, bool_ops, variable_t::choices, variable_t::choices_text, vlc_value_t::coords, coords_ops, Destroy(), vlc_value_t::f_float, float_ops, vlc_list_t::i_count, variable_t::i_default, variable_t::i_entries, vlc_value_t::i_int, vlc_value_t::i_time, variable_t::i_type, variable_t::i_usage, INSERT_ELEM, int_ops, msg_Err, variable_t::ops, vlc_value_t::p_address, variable_t::p_entries, vlc_list_t::p_values, variable_ops_t::pf_dup, variable_t::psz_name, vlc_value_t::psz_string, variable_t::psz_text, strdup(), string_ops, time_ops, tsearch(), unlikely, variable_t::val, var_Inherit(), vlc_object_internals::var_lock, vlc_object_internals::var_root, varcmp(), vlc_internals, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_VAR_ADDRESS, VLC_VAR_BOOL, VLC_VAR_CLASS, VLC_VAR_COORDS, VLC_VAR_DOINHERIT, VLC_VAR_FLOAT, VLC_VAR_HASCHOICE, VLC_VAR_INTEGER, VLC_VAR_ISCOMMAND, VLC_VAR_STRING, VLC_VAR_TIME, VLC_VAR_VOID, vlc_value_t::x, and vlc_value_t::y.
| static VLC_USED void* var_CreateGetAddress | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Create an address variable with inherit and get its value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References var_Create, var_GetAddress, VLC_VAR_ADDRESS, and VLC_VAR_DOINHERIT.
| static VLC_USED bool var_CreateGetBool | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Create a boolean variable with inherit and get its value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References var_Create, var_GetBool, VLC_VAR_BOOL, and VLC_VAR_DOINHERIT.
| static VLC_USED bool var_CreateGetBoolCommand | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Create a boolean command variable with inherit and get its value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References var_Create, var_GetBool, VLC_VAR_BOOL, VLC_VAR_DOINHERIT, and VLC_VAR_ISCOMMAND.
| static VLC_USED float var_CreateGetFloat | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Create a float variable with inherit and get its value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References var_Create, var_GetFloat, VLC_VAR_DOINHERIT, and VLC_VAR_FLOAT.
| static VLC_USED float var_CreateGetFloatCommand | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Create a float command variable with inherit and get its value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References var_Create, var_GetFloat, VLC_VAR_DOINHERIT, VLC_VAR_FLOAT, and VLC_VAR_ISCOMMAND.
| static VLC_USED int64_t var_CreateGetInteger | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Create a integer variable with inherit and get its value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References var_Create, var_GetInteger, VLC_VAR_DOINHERIT, and VLC_VAR_INTEGER.
| static VLC_USED int64_t var_CreateGetIntegerCommand | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Create a integer command variable with inherit and get its value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References var_Create, var_GetInteger, VLC_VAR_DOINHERIT, VLC_VAR_INTEGER, and VLC_VAR_ISCOMMAND.
| VLC_USED static VLC_MALLOC char* var_CreateGetNonEmptyString | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
References var_Create, var_GetNonEmptyString, VLC_VAR_DOINHERIT, and VLC_VAR_STRING.
| VLC_USED static VLC_MALLOC char* var_CreateGetNonEmptyStringCommand | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
References var_Create, var_GetNonEmptyString, VLC_VAR_DOINHERIT, VLC_VAR_ISCOMMAND, and VLC_VAR_STRING.
| VLC_USED static VLC_MALLOC char* var_CreateGetString | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Create a string variable with inherit and get its value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References var_Create, var_GetString, VLC_VAR_DOINHERIT, and VLC_VAR_STRING.
| VLC_USED static VLC_MALLOC char* var_CreateGetStringCommand | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Create a string command variable with inherit and get its value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References var_Create, var_GetString, VLC_VAR_DOINHERIT, VLC_VAR_ISCOMMAND, and VLC_VAR_STRING.
| static VLC_USED int64_t var_CreateGetTime | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Create a time variable with inherit and get its value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References var_Create, var_GetTime, VLC_VAR_DOINHERIT, and VLC_VAR_TIME.
| static VLC_USED int64_t var_CreateGetTimeCommand | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Create a time command variable with inherit and get its value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References var_Create, var_GetTime, VLC_VAR_DOINHERIT, VLC_VAR_ISCOMMAND, and VLC_VAR_TIME.
| static int64_t var_DecInteger | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Decrement an integer variable.
| p_obj | the object that holds the variable | |
| psz_name | the name of the variable |
References vlc_value_t::i_int, var_GetAndSet(), and VLC_VAR_INTEGER_ADD.
| VLC_API int 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.
pf_callback and p_data have to be given again, because different objects might have registered the same callback function.
References variable_t::i_entries, Lookup(), callback_entry_t::p_data, variable_t::p_entries, callback_entry_t::pf_callback, REMOVE_ELEM, vlc_object_internals::var_lock, vlc_internals, vlc_mutex_lock(), vlc_mutex_unlock(), and WaitUnused().
| VLC_API int 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 Destroy(), variable_t::i_usage, Lookup(), tdelete(), vlc_object_internals::var_lock, vlc_object_internals::var_root, varcmp(), vlc_internals, vlc_mutex_lock(), vlc_mutex_unlock(), and WaitUnused().
| VLC_API void var_FreeList | ( | vlc_value_t * | p_val, | |
| vlc_value_t * | p_val2 | |||
| ) |
Free a list and the associated strings.
| p_val,: | the list variable | |
| p_val2,: | the variable associated or NULL |
References FreeList(), vlc_list_t::i_count, vlc_value_t::p_list, vlc_list_t::p_values, vlc_list_t::pi_types, and vlc_value_t::psz_string.
Referenced by SubtitleAdd().
| VLC_API int var_Get | ( | vlc_object_t * | p_this, | |
| const char * | psz_name, | |||
| vlc_value_t * | p_val | |||
| ) |
Get a variable's value.
| p_this | The object that holds the variable | |
| psz_name | The name of the variable | |
| p_val | Pointer to a vlc_value_t that will hold the variable's value after the function is finished |
References var_GetChecked.
| static VLC_USED void* var_GetAddress | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
References vlc_value_t::p_address, var_GetChecked, and VLC_VAR_ADDRESS.
| VLC_API 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.
| p_this,: | The object that hold the variable | |
| psz_name,: | the name of the variable | |
| i_action,: | the action to perform | |
| p_val,: | The action parameter |
References vlc_value_t::b_bool, CheckValue(), vlc_value_t::i_int, variable_t::i_type, Lookup(), TriggerCallback(), variable_t::val, vlc_object_internals::var_lock, vlc_internals, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_VAR_BOOL, VLC_VAR_BOOL_TOGGLE, VLC_VAR_INTEGER, VLC_VAR_INTEGER_ADD, VLC_VAR_INTEGER_NAND, VLC_VAR_INTEGER_OR, and WaitUnused().
Referenced by var_DecInteger(), var_IncInteger(), var_NAndInteger(), var_OrInteger(), and var_ToggleBool().
| static VLC_USED bool var_GetBool | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Get a boolean value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References vlc_value_t::b_bool, var_GetChecked, and VLC_VAR_BOOL.
| VLC_API int var_GetChecked | ( | vlc_object_t * | , | |
| const char * | , | |||
| int | , | |||
| vlc_value_t * | ||||
| ) |
| static void var_GetCoords | ( | vlc_object_t * | obj, | |
| const char * | name, | |||
| int32_t * | px, | |||
| int32_t * | py | |||
| ) | [inline, static] |
References vlc_value_t::coords, likely, var_GetChecked, VLC_VAR_COORDS, vlc_value_t::x, and vlc_value_t::y.
| static VLC_USED float var_GetFloat | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Get a float value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References vlc_value_t::f_float, var_GetChecked, and VLC_VAR_FLOAT.
| static VLC_USED int64_t var_GetInteger | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Get an integer value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References vlc_value_t::i_int, var_GetChecked, and VLC_VAR_INTEGER.
| VLC_USED static VLC_MALLOC char* var_GetNonEmptyString | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
References vlc_value_t::psz_string, var_GetChecked, and VLC_VAR_STRING.
| VLC_USED static VLC_MALLOC char* var_GetString | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Get a string value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References vlc_value_t::psz_string, var_GetChecked, and VLC_VAR_STRING.
| static VLC_USED int64_t var_GetTime | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Get a time value.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable |
References vlc_value_t::i_time, var_GetChecked, and VLC_VAR_TIME.
| static int64_t var_IncInteger | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
Increment an integer variable.
| p_obj | the object that holds the variable | |
| psz_name | the name of the variable |
References vlc_value_t::i_int, var_GetAndSet(), and VLC_VAR_INTEGER_ADD.
| VLC_API 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.
If the specified object does not hold a variable with the specified name, try the parent object, and iterate until the top of the tree. If no match is found, the value is read from the configuration.
References vlc_value_t::b_bool, config_GetFloat, config_GetInt, config_GetPsz, vlc_value_t::f_float, vlc_value_t::i_int, msg_Info, msg_Warn, vlc_value_t::psz_string, strdup(), unlikely, var_GetChecked, VLC_OBJECT, VLC_SUCCESS, VLC_VAR_ADDRESS, VLC_VAR_BOOL, VLC_VAR_CLASS, VLC_VAR_FLOAT, VLC_VAR_INTEGER, and VLC_VAR_STRING.
Referenced by var_Create(), var_InheritAddress(), var_InheritBool(), var_InheritFloat(), var_InheritInteger(), var_InheritString(), and var_InheritTime().
| static VLC_USED void* var_InheritAddress | ( | vlc_object_t * | obj, | |
| const char * | name | |||
| ) | [inline, static] |
References vlc_value_t::p_address, var_Inherit(), and VLC_VAR_ADDRESS.
| static VLC_USED bool var_InheritBool | ( | vlc_object_t * | obj, | |
| const char * | name | |||
| ) | [inline, static] |
References vlc_value_t::b_bool, var_Inherit(), and VLC_VAR_BOOL.
| static VLC_USED float var_InheritFloat | ( | vlc_object_t * | obj, | |
| const char * | name | |||
| ) | [inline, static] |
References vlc_value_t::f_float, var_Inherit(), and VLC_VAR_FLOAT.
| static VLC_USED int64_t var_InheritInteger | ( | vlc_object_t * | obj, | |
| const char * | name | |||
| ) | [inline, static] |
References vlc_value_t::i_int, var_Inherit(), and VLC_VAR_INTEGER.
| VLC_USED static VLC_MALLOC char* var_InheritString | ( | vlc_object_t * | obj, | |
| const char * | name | |||
| ) | [inline, static] |
References vlc_value_t::psz_string, var_Inherit(), and VLC_VAR_STRING.
| static VLC_USED mtime_t var_InheritTime | ( | vlc_object_t * | obj, | |
| const char * | name | |||
| ) | [inline, static] |
References vlc_value_t::i_time, var_Inherit(), and VLC_VAR_TIME.
| VLC_API 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.
References us_atof(), var_InheritString, and vlc_ureduce().
| VLC_API int var_LocationParse | ( | vlc_object_t * | obj, | |
| const char * | mrl, | |||
| const char * | pref | |||
| ) |
Parses a set of colon-separated <variable name>="">=pairs.
Some access (or access_demux) plugins uses this scheme in media resource location.
| obj | VLC object on which to set variables (and emit error messages) | |
| mrl | string to parse | |
| pref | prefix to prepend to option names in the string |
References likely, and var_OptionParse().
| static uint64_t var_NAndInteger | ( | vlc_object_t * | obj, | |
| const char * | name, | |||
| unsigned | v | |||
| ) | [inline, static] |
References vlc_value_t::i_int, var_GetAndSet(), and VLC_VAR_INTEGER_NAND.
| static uint64_t var_OrInteger | ( | vlc_object_t * | obj, | |
| const char * | name, | |||
| unsigned | v | |||
| ) | [inline, static] |
References vlc_value_t::i_int, var_GetAndSet(), and VLC_VAR_INTEGER_OR.
| VLC_API int var_Set | ( | vlc_object_t * | p_this, | |
| const char * | psz_name, | |||
| vlc_value_t | val | |||
| ) |
Set a variable's value.
| p_this | The object that hold the variable | |
| psz_name | The name of the variable | |
| val | the value to set |
References var_SetChecked.
| static int var_SetAddress | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name, | |||
| void * | ptr | |||
| ) | [inline, static] |
Set the value of a pointer variable.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable | |
| ptr | The new pointer value of this variable |
References vlc_value_t::p_address, var_SetChecked, and VLC_VAR_ADDRESS.
| static int var_SetBool | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name, | |||
| bool | b | |||
| ) | [inline, static] |
Set the value of an boolean variable.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable | |
| b | The new boolean value of this variable |
References vlc_value_t::b_bool, var_SetChecked, and VLC_VAR_BOOL.
| VLC_API int var_SetChecked | ( | vlc_object_t * | , | |
| const char * | , | |||
| int | , | |||
| vlc_value_t | ||||
| ) |
References CheckValue(), variable_t::i_type, Lookup(), msg_Warn, variable_t::ops, variable_ops_t::pf_dup, variable_ops_t::pf_free, TriggerCallback(), variable_t::val, vlc_object_internals::var_lock, vlc_internals, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_VAR_CLASS, VLC_VAR_TYPE, VLC_VAR_VOID, and WaitUnused().
| static int var_SetCoords | ( | vlc_object_t * | obj, | |
| const char * | name, | |||
| int32_t | x, | |||
| int32_t | y | |||
| ) | [inline, static] |
References vlc_value_t::coords, var_SetChecked, VLC_VAR_COORDS, vlc_value_t::x, and vlc_value_t::y.
| static int var_SetFloat | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name, | |||
| float | f | |||
| ) | [inline, static] |
Set the value of a float variable.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable | |
| f | The new float value of this variable |
References vlc_value_t::f_float, var_SetChecked, and VLC_VAR_FLOAT.
| static int var_SetInteger | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name, | |||
| int64_t | i | |||
| ) | [inline, static] |
Set the value of an integer variable.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable | |
| i | The new integer value of this variable |
References vlc_value_t::i_int, var_SetChecked, and VLC_VAR_INTEGER.
| static int var_SetString | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name, | |||
| const char * | psz_string | |||
| ) | [inline, static] |
Set the value of a string variable.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable | |
| psz_string | The new string value of this variable |
References vlc_value_t::psz_string, var_SetChecked, and VLC_VAR_STRING.
| static int var_SetTime | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name, | |||
| int64_t | i | |||
| ) | [inline, static] |
Set the value of a time variable.
| p_obj | The object that holds the variable | |
| psz_name | The name of the variable | |
| i | The new time value of this variable |
References vlc_value_t::i_time, var_SetChecked, and VLC_VAR_TIME.
| static bool var_ToggleBool | ( | vlc_object_t * | p_obj, | |
| const char * | psz_name | |||
| ) | [inline, static] |
References vlc_value_t::b_bool, var_GetAndSet(), and VLC_VAR_BOOL_TOGGLE.
| VLC_API int var_TriggerCallback | ( | vlc_object_t * | p_this, | |
| const char * | psz_name | |||
| ) |
Trigger callback on a variable.
| p_this | The object that hold the variable | |
| psz_name | The name of the variable |
References Lookup(), TriggerCallback(), variable_t::val, vlc_object_internals::var_lock, vlc_internals, vlc_mutex_lock(), vlc_mutex_unlock(), and WaitUnused().
| VLC_API int var_Type | ( | vlc_object_t * | p_this, | |
| const char * | psz_name | |||
| ) |
Request a variable's type.
References variable_t::i_type, i_type, Lookup(), vlc_object_internals::var_lock, vlc_internals, vlc_mutex_lock(), and vlc_mutex_unlock().
1.7.1