Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
454
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
22442b4f
Commit
22442b4f
authored
6 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
objects: remove undocumented "vars" command
This is left-over from vlc_object_find_name().
parent
99faf449
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/misc/objects.c
+0
-52
0 additions, 52 deletions
src/misc/objects.c
with
0 additions
and
52 deletions
src/misc/objects.c
+
0
−
52
View file @
22442b4f
...
...
@@ -161,55 +161,6 @@ static int TreeCommand (vlc_object_t *obj, char const *cmd,
return
VLC_SUCCESS
;
}
static
vlc_object_t
*
ObjectExists
(
vlc_object_t
*
root
,
void
*
obj
)
{
if
(
root
==
obj
)
return
vlc_object_hold
(
root
);
vlc_object_internals_t
*
priv
;
vlc_object_t
*
ret
=
NULL
;
vlc_mutex_assert
(
&
tree_lock
);
vlc_children_foreach
(
priv
,
vlc_internals
(
root
))
{
ret
=
ObjectExists
(
vlc_externals
(
priv
),
obj
);
if
(
ret
!=
NULL
)
break
;
}
return
ret
;
}
static
int
VarsCommand
(
vlc_object_t
*
obj
,
char
const
*
cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
data
)
{
void
*
p
;
(
void
)
cmd
;
(
void
)
oldval
;
(
void
)
data
;
if
(
sscanf
(
newval
.
psz_string
,
"%p"
,
&
p
)
==
1
)
{
vlc_mutex_lock
(
&
tree_lock
);
p
=
ObjectExists
(
obj
,
p
);
vlc_mutex_unlock
(
&
tree_lock
);
if
(
p
==
NULL
)
{
msg_Err
(
obj
,
"no such object: %s"
,
newval
.
psz_string
);
return
VLC_ENOOBJ
;
}
obj
=
p
;
}
else
vlc_object_hold
(
obj
);
printf
(
" o %p %s, parent %p
\n
"
,
(
void
*
)
obj
,
vlc_object_typename
(
obj
),
(
void
*
)
vlc_object_parent
(
obj
));
DumpVariables
(
obj
);
vlc_object_release
(
obj
);
return
VLC_SUCCESS
;
}
#undef vlc_custom_create
void
*
vlc_custom_create
(
vlc_object_t
*
parent
,
size_t
length
,
const
char
*
typename
)
...
...
@@ -263,8 +214,6 @@ void *vlc_custom_create (vlc_object_t *parent, size_t length,
int
canc
=
vlc_savecancel
();
var_Create
(
obj
,
"tree"
,
VLC_VAR_STRING
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
obj
,
"tree"
,
TreeCommand
,
NULL
);
var_Create
(
obj
,
"vars"
,
VLC_VAR_STRING
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
obj
,
"vars"
,
VarsCommand
,
NULL
);
vlc_restorecancel
(
canc
);
}
...
...
@@ -323,7 +272,6 @@ static void vlc_object_destroy( vlc_object_t *p_this )
if
(
unlikely
(
p_priv
->
parent
==
NULL
))
{
/* TODO: should be in src/libvlc.c */
var_DelCallback
(
p_this
,
"vars"
,
VarsCommand
,
NULL
);
var_DelCallback
(
p_this
,
"tree"
,
TreeCommand
,
NULL
);
}
...
...
This diff is collapsed.
Click to expand it.
Rémi Denis-Courmont
@Courmisch
mentioned in commit
0143f10b
·
5 years ago
mentioned in commit
0143f10b
mentioned in commit 0143f10b7d3b1b46cfeafb7879e760f86afdd753
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment