Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
b36bf4ee
Commit
b36bf4ee
authored
Apr 23, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
var_Command: remove broken-by-design function
parent
548a2f69
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
64 deletions
+0
-64
include/vlc_variables.h
include/vlc_variables.h
+0
-3
src/libvlccore.sym
src/libvlccore.sym
+0
-1
src/misc/variables.c
src/misc/variables.c
+0
-60
No files found.
include/vlc_variables.h
View file @
b36bf4ee
...
...
@@ -168,9 +168,6 @@ VLC_API int var_GetAndSet( vlc_object_t *, const char *, int, vlc_value_t * );
VLC_API
int
var_Inherit
(
vlc_object_t
*
,
const
char
*
,
int
,
vlc_value_t
*
);
VLC_API
int
var_Command
(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
const
char
*
,
char
**
);
#define var_Command(a,b,c,d,e) var_Command( VLC_OBJECT( a ), b, c, d, e )
VLC_API
void
var_FreeList
(
vlc_value_t
*
,
vlc_value_t
*
);
...
...
src/libvlccore.sym
View file @
b36bf4ee
...
...
@@ -440,7 +440,6 @@ vlc_accept
utf8_vfprintf
var_AddCallback
var_Change
var_Command
var_Create
var_DelCallback
var_Destroy
...
...
src/misc/variables.c
View file @
b36bf4ee
...
...
@@ -1326,66 +1326,6 @@ static int TriggerCallback( vlc_object_t *p_this, variable_t *p_var,
return
VLC_SUCCESS
;
}
#undef var_Command
/**********************************************************************
* Execute a var command on an object identified by its name
**********************************************************************/
int
var_Command
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
,
const
char
*
psz_cmd
,
const
char
*
psz_arg
,
char
**
psz_msg
)
{
vlc_object_t
*
p_obj
=
vlc_object_find_name
(
p_this
->
p_libvlc
,
psz_name
);
int
i_type
,
i_ret
;
if
(
!
p_obj
)
{
if
(
psz_msg
)
*
psz_msg
=
strdup
(
"Unknown destination object."
);
return
VLC_ENOOBJ
;
}
i_type
=
var_Type
(
p_obj
,
psz_cmd
);
if
(
!
(
i_type
&
VLC_VAR_ISCOMMAND
)
)
{
vlc_object_release
(
p_obj
);
if
(
psz_msg
)
*
psz_msg
=
strdup
(
"Variable doesn't exist or isn't a command."
);
return
VLC_EGENERIC
;
}
i_type
&=
VLC_VAR_CLASS
;
switch
(
i_type
)
{
case
VLC_VAR_INTEGER
:
i_ret
=
var_SetInteger
(
p_obj
,
psz_cmd
,
atoi
(
psz_arg
)
);
break
;
case
VLC_VAR_FLOAT
:
i_ret
=
var_SetFloat
(
p_obj
,
psz_cmd
,
us_atof
(
psz_arg
)
);
break
;
case
VLC_VAR_STRING
:
i_ret
=
var_SetString
(
p_obj
,
psz_cmd
,
psz_arg
);
break
;
case
VLC_VAR_BOOL
:
i_ret
=
var_SetBool
(
p_obj
,
psz_cmd
,
atoi
(
psz_arg
)
);
break
;
default:
i_ret
=
VLC_EGENERIC
;
break
;
}
vlc_object_release
(
p_obj
);
if
(
psz_msg
)
{
if
(
asprintf
(
psz_msg
,
"%s on object %s returned %i (%s)"
,
psz_cmd
,
psz_name
,
i_ret
,
vlc_error
(
i_ret
)
)
==
-
1
)
*
psz_msg
=
NULL
;
}
return
i_ret
;
}
/**
* Free a list and the associated strings
* @param p_val: the list variable
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment