Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
3c33fb8b
Commit
3c33fb8b
authored
Sep 20, 2008
by
Pierre d'Herbemont
Browse files
objects: vlc_object_yield() returns the yield()-ed object for convenience.
parent
cbeb3453
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/vlc_objects.h
View file @
3c33fb8b
...
...
@@ -84,7 +84,7 @@ __attribute__((deprecated))
#endif
VLC_EXPORT
(
void
*
,
__vlc_object_find
,
(
vlc_object_t
*
,
int
,
int
)
);
VLC_EXPORT
(
vlc_object_t
*
,
vlc_object_find_name
,
(
vlc_object_t
*
,
const
char
*
,
int
)
);
VLC_EXPORT
(
void
,
__vlc_object_yield
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
void
*
,
__vlc_object_yield
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
void
,
__vlc_object_release
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
vlc_list_t
*
,
__vlc_list_find
,
(
vlc_object_t
*
,
int
,
int
)
);
VLC_EXPORT
(
vlc_list_t
*
,
__vlc_list_children
,
(
vlc_object_t
*
)
);
...
...
src/misc/objects.c
View file @
3c33fb8b
...
...
@@ -613,7 +613,7 @@ vlc_object_t *vlc_object_find_name( vlc_object_t *p_this,
/**
* Increment an object reference counter.
*/
void
__vlc_object_yield
(
vlc_object_t
*
p_this
)
void
*
__vlc_object_yield
(
vlc_object_t
*
p_this
)
{
vlc_object_internals_t
*
internals
=
vlc_internals
(
p_this
);
...
...
@@ -623,6 +623,7 @@ void __vlc_object_yield( vlc_object_t *p_this )
/* Increment the counter */
internals
->
i_refcount
++
;
vlc_spin_unlock
(
&
internals
->
ref_spin
);
return
p_this
;
}
/*****************************************************************************
...
...
Write
Preview
Supports
Markdown
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