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 | |
| int | var_Create (vlc_object_t *, const char *, int) |
| Initialize a vlc variable. | |
| int | var_Destroy (vlc_object_t *, const char *) |
| Destroy a vlc variable. | |
| int | var_Change (vlc_object_t *, const char *, int, vlc_value_t *, vlc_value_t *) |
| Perform an action on a variable. | |
| int | var_Type (vlc_object_t *, const char *) |
| Request a variable's type. | |
| int | var_Set (vlc_object_t *, const char *, vlc_value_t) |
| Set a variable's value. | |
| int | var_Get (vlc_object_t *, const char *, vlc_value_t *) |
| Get a variable's value. | |
| int | var_SetChecked (vlc_object_t *, const char *, int, vlc_value_t) |
| int | var_GetChecked (vlc_object_t *, const char *, int, vlc_value_t *) |
| int | var_GetAndSet (vlc_object_t *, const char *, int, vlc_value_t *) |
| Perform a Get and Set on a variable. | |
| int | var_Inherit (vlc_object_t *, const char *, int, vlc_value_t *) |
| Finds the value of a variable. | |
| int | var_Command (vlc_object_t *, const char *, const char *, const char *, char **) |
| void | var_FreeList (vlc_value_t *, vlc_value_t *) |
| Free a list and the associated strings. | |
| int | var_AddCallback (vlc_object_t *, const char *, vlc_callback_t, void *) |
| Register a callback in a variable. | |
| int | var_DelCallback (vlc_object_t *, const char *, vlc_callback_t, void *) |
| Remove a callback from a variable. | |
| 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 int64_t | var_GetInteger (vlc_object_t *p_obj, const char *psz_name) |
| Get an integer value. | |
| static bool | var_GetBool (vlc_object_t *p_obj, const char *psz_name) |
| Get a boolean value. | |
| static 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 float | var_GetFloat (vlc_object_t *p_obj, const char *psz_name) |
| Get a float value. | |
| static char * | var_GetString (vlc_object_t *p_obj, const char *psz_name) |
| Get a string value. | |
| static char * | var_GetNonEmptyString (vlc_object_t *p_obj, const char *psz_name) |
| static 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 int64_t | var_CreateGetInteger (vlc_object_t *p_obj, const char *psz_name) |
| Create a integer variable with inherit and get its value. | |
| static bool | var_CreateGetBool (vlc_object_t *p_obj, const char *psz_name) |
| Create a boolean variable with inherit and get its value. | |
| static int64_t | var_CreateGetTime (vlc_object_t *p_obj, const char *psz_name) |
| Create a time variable with inherit and get its value. | |
| static float | var_CreateGetFloat (vlc_object_t *p_obj, const char *psz_name) |
| Create a float variable with inherit and get its value. | |
| static char * | var_CreateGetString (vlc_object_t *p_obj, const char *psz_name) |
| Create a string variable with inherit and get its value. | |
| static char * | var_CreateGetNonEmptyString (vlc_object_t *p_obj, const char *psz_name) |
| static void * | var_CreateGetAddress (vlc_object_t *p_obj, const char *psz_name) |
| Create an address variable with inherit and get its value. | |
| static 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 bool | var_CreateGetBoolCommand (vlc_object_t *p_obj, const char *psz_name) |
| Create a boolean command variable with inherit and get its value. | |
| static 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 float | var_CreateGetFloatCommand (vlc_object_t *p_obj, const char *psz_name) |
| Create a float command variable with inherit and get its value. | |
| static char * | var_CreateGetStringCommand (vlc_object_t *p_obj, const char *psz_name) |
| Create a string command variable with inherit and get its value. | |
| static char * | var_CreateGetNonEmptyStringCommand (vlc_object_t *p_obj, const char *psz_name) |
| static 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 bool | var_InheritBool (vlc_object_t *obj, const char *name) |
| static int64_t | var_InheritInteger (vlc_object_t *obj, const char *name) |
| static float | var_InheritFloat (vlc_object_t *obj, const char *name) |
| static char * | var_InheritString (vlc_object_t *obj, const char *name) |
| static mtime_t | var_InheritTime (vlc_object_t *obj, const char *name) |
| static void * | var_InheritAddress (vlc_object_t *obj, const char *name) |
| 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). | |
| int | var_LocationParse (vlc_object_t *, const char *mrl, const char *prefix) |
| Parses a set of colon-separated or semicolon-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_FiltersNew(), aout_New(), aout_OutputNew(), aout_volume_New(), input_ControlVarNavigation(), input_ControlVarTitle(), InputAddCallbacks(), intf_Create(), PlayItem(), spu_Attach(), VariablesInit(), vlc_custom_create(), vlc_InitActions(), vlm_ControlMediaInstanceStart(), vlm_OnMediaUpdate(), vout_InitInterlacingSupport(), vout_IntfInit(), and vout_OpenWrapper().
| #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(), 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(), config_ChainParse(), config_LoadCmdLine(), config_PrintHelp(), EqualizerCallback(), input_ConfigVarInit(), input_ControlVarInit(), input_ControlVarNavigation(), input_ControlVarTitle(), intf_Create(), libvlc_InternalInit(), LoadSubtitles(), sout_NewInstance(), spu_Attach(), SpuRenderCreateAndLoadText(), 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(), 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 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(), 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(), 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 ) |
Referenced by aout_Destroy(), aout_FiltersDelete(), aout_FiltersNew(), aout_OutputDelete(), aout_volume_Delete(), input_ControlVarStop(), InputDelCallbacks(), LoopInput(), spu_Attach(), vlc_DeinitActions(), vlc_object_destroy(), vlm_ControlMediaInstanceStart(), vlm_MediaInstanceDelete(), vlm_OnMediaUpdate(), and vout_CloseWrapper().
| #define var_Destroy | ( | a, | ||
| b | ||||
| ) | var_Destroy( VLC_OBJECT(a), b ) |
| #define var_Get | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_Get( VLC_OBJECT(a), b, c ) |
Referenced by config_ChainParse(), input_ControlVarInit(), UpdateSPU(), and vout_IntfInit().
| #define var_GetAddress | ( | a, | ||
| b | ||||
| ) | var_GetAddress( VLC_OBJECT(a),b) |
Referenced by 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(), PlaylistVAControl(), ResetCurrentlyPlaying(), SpuRenderText(), StartTitle(), var_CreateGetBool(), var_CreateGetBoolCommand(), vout_SendEventDisplayFilled(), vout_SendEventOnTop(), and VoutCreate().
| #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) |
Referenced by aout_VolumeGet(), Control(), input_vaControl(), PositionCallback(), RateOffsetCallback(), StartTitle(), str_format_meta(), var_CreateGetFloat(), var_CreateGetFloatCommand(), VideoSplitterCallback(), vlm_ControlMediaInstanceGets(), vlm_ControlMediaInstanceGetTimePosition(), and vout_SendEventZoom().
| #define var_GetInteger | ( | a, | ||
| b | ||||
| ) | var_GetInteger( VLC_OBJECT(a),b) |
Referenced by aout_OutputNew(), CropBorderCallback(), DeinterlaceCallback(), EsUnselect(), input_ControlVarInit(), input_EsOutNew(), input_SendEventProgramScrambled(), input_vaControl(), InputEvent(), InputSourceInit(), MainLoopTryRepeat(), PlayItem(), playlist_fetcher_New(), PlaylistVAControl(), SeekpointCallback(), sout_MuxSendBuffer(), str_format_meta(), subtitles_Detect(), TitleCallback(), UpdatePtsDelay(), UpdateSPU(), var_CreateGetInteger(), var_CreateGetIntegerCommand(), vlm_ControlMediaInstanceGets(), vlm_ControlMediaInstancePause(), vlm_ControlMediaInstanceStart(), vout_InitInterlacingSupport(), VoutCreate(), and VoutSaveSnapshot().
| #define var_GetNonEmptyString | ( | a, | ||
| b | ||||
| ) | var_GetNonEmptyString( VLC_OBJECT(a),b) |
Referenced by aout_DeviceGet(), aout_New(), Create(), DeinterlaceAdd(), DeinterlaceIsPresent(), DeinterlaceRemove(), demux_New(), EsOutSelect(), InitPrograms(), InputMetaUser(), InputSourceInit(), LoadSlaves(), LoadSubtitles(), str_format_meta(), var_CreateGetNonEmptyString(), var_CreateGetNonEmptyStringCommand(), vlc_sdp_Start(), and vout_InitInterlacingSupport().
| #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 ) |
Referenced by aout_PolicyNotify().
| #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_FiltersNew(), aout_MuteGet(), aout_ReplayGainSelect(), config_PrintHelp(), CorksCallback(), Create(), decoder_SynchroInit(), libvlc_InternalCleanup(), libvlc_InternalInit(), ListModules(), LoopInput(), OSDWidget(), playlist_Create(), sout_NewInstance(), system_Configure(), ThreadInit(), Usage(), vlc_threads_setup(), vlc_xlib_init(), vout_NewDisplayWindow(), vout_OSDText(), vout_window_New(), VoutDisplayNewWindow(), VoutOsdSnapshot(), and VoutSaveSnapshot().
| #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) |
Referenced by aout_FiltersDelete(), aout_FiltersNew(), config_PrintHelp(), httpd_HostCreate(), libvlc_InternalInit(), net_Connect(), net_ConnectDgram(), net_Socket(), playlist_Create(), SelectClockSource(), var_GetIfIndex(), var_InheritURational(), vlc_https_HostNew(), vlc_InitAction(), vlc_module_load(), VoutCreate(), and VoutSaveSnapshot().
| #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(), var_Copy(), 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(), PlayItem(), playlist_SendAddNotify(), Preparse(), Thread(), Trigger(), TriggerInstanceState(), vlm_ControlMediaInstanceStart(), and vlm_OnMediaUpdate().
| #define var_SetBool | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_SetBool( VLC_OBJECT(a),b,c) |
Referenced by aout_MuteNotify(), config_LoadCmdLine(), config_PrintHelp(), Init(), input_ConfigVarInit(), input_SendEventProgramScrambled(), input_vaControl(), InputSourceInit(), libvlc_InternalInit(), playlist_MuteSet(), SpuRenderText(), 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) |
Referenced by aout_Destroy(), aout_VolumeNotify(), config_LoadCmdLine(), input_ConfigVarInit(), input_vaControl(), LoadSubtitles(), PositionCallback(), RateCallback(), RateOffsetCallback(), var_Command(), VariablesInit(), VideoSplitterCallback(), vlm_ControlMediaInstanceSetTimePosition(), vout_SendEventZoom(), and ZoomCallback().
| #define var_SetInteger | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_SetInteger( VLC_OBJECT(a),b,c) |
Referenced by config_LoadCmdLine(), EsOutProgramSelect(), EsOutUpdateInfo(), Init(), input_ConfigVarInit(), input_item_add_subitem_tree(), input_vaControl(), libvlc_InternalInit(), MainLoopTryRepeat(), playlist_NodeDelete(), PlaylistVAControl(), TimeCallback(), Trigger(), var_Command(), VariablesInit(), vlc_key_to_action(), vlm_ControlMediaInstancePause(), vlm_ControlMediaInstanceStart(), vout_InitInterlacingSupport(), vout_IntfInit(), vout_SendEventKey(), and VoutSaveSnapshot().
| #define var_SetString | ( | a, | ||
| b, | ||||
| c | ||||
| ) | var_SetString( VLC_OBJECT(a),b,c) |
Referenced by aout_ChangeFilterString(), aout_DeviceNotify(), aout_New(), config_LoadCmdLine(), DeinterlaceAdd(), DeinterlaceCallback(), DeinterlaceRemove(), EqualizerCallback(), Init(), libvlc_InternalInit(), LoadSubtitles(), var_Command(), VisualizationCallback(), 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_SendEventMouseDoubleClick(), and vout_SendEventMousePressed().
| #define var_TriggerCallback | ( | a, | ||
| b | ||||
| ) | var_TriggerCallback( VLC_OBJECT(a), b ) |
Referenced by aout_volume_New(), DeinterlaceCallback(), LoopInput(), PlayItem(), 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(), and DumpVariable().
| 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. |
< Variable not found
< No error
References variable_t::i_entries, INSERT_ELEM, Lookup(), msg_Err, 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().
| 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 |
< No error
< Variable not found
< Unspecified error
< Unspecified error
< Unspecified error
< Unspecified error
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.
| int var_Command | ( | vlc_object_t * | , | |
| const char * | , | |||
| const char * | , | |||
| const char * | , | |||
| char ** | ||||
| ) |
< Object not found
< Unspecified error
< Unspecified error
References asprintf(), i_type, vlc_object_t::p_libvlc, strdup(), us_atof(), var_SetBool, var_SetFloat, var_SetInteger, var_SetString, var_Type, vlc_error(), vlc_object_find_name, vlc_object_release, VLC_VAR_BOOL, VLC_VAR_FLOAT, VLC_VAR_INTEGER, VLC_VAR_ISCOMMAND, and VLC_VAR_STRING.
| static 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.
| 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 |
< Not enough memory
< No error
< Not enough memory
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 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 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 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 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 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 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 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.
| static 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.
| static 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.
| static 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.
| static 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 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 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.
| 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.
< Variable not found
< Unspecified error
< No error
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().
| 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 |
< Variable not found
< No error
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().
| 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().
| 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 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.
| 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 |
< Variable not found
< Unspecified error
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 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.
| int var_GetChecked | ( | vlc_object_t * | , | |
| const char * | , | |||
| int | , | |||
| vlc_value_t * | ||||
| ) |
< No error
< Variable not found
References variable_t::i_type, Lookup(), variable_t::ops, variable_ops_t::pf_dup, variable_t::val, vlc_object_internals::var_lock, vlc_internals, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_VAR_CLASS, and VLC_VAR_VOID.
| 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 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 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.
| static 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.
| static 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 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.
| 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.
< No error
< No error
< Object not found
< Object not found
< No error
References vlc_value_t::b_bool, config_GetFloat, config_GetInt, config_GetPsz, vlc_value_t::f_float, vlc_value_t::i_int, msg_Warn, vlc_object_t::p_parent, vlc_value_t::psz_string, strdup(), var_GetChecked, 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 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 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 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 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.
| static 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 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.
| 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 us_atof(), var_InheritString, and vlc_ureduce().
| int var_LocationParse | ( | vlc_object_t * | obj, | |
| const char * | mrl, | |||
| const char * | pref | |||
| ) |
Parses a set of colon-separated or semicolon-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 |
< No error
< Not enough memory
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.
| 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.
| int var_SetChecked | ( | vlc_object_t * | , | |
| const char * | , | |||
| int | , | |||
| vlc_value_t | ||||
| ) |
< No error
< Variable not found
References CheckValue(), variable_t::i_type, Lookup(), 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_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.
| 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 |
< Variable not found
References Lookup(), TriggerCallback(), variable_t::val, vlc_object_internals::var_lock, vlc_internals, vlc_mutex_lock(), vlc_mutex_unlock(), and WaitUnused().
| 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