[vlc-commits] objects: deinline vlc_object_delete()
Rémi Denis-Courmont
git at videolan.org
Sun Mar 17 02:39:03 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 17 03:05:45 2019 +0200| [31d4a0cbb3beca2fd45b38dc3e63c08a76caf284] | committer: Rémi Denis-Courmont
objects: deinline vlc_object_delete()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31d4a0cbb3beca2fd45b38dc3e63c08a76caf284
---
include/vlc_objects.h | 5 +----
src/libvlccore.sym | 1 +
src/misc/objects.c | 5 +++++
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/include/vlc_objects.h b/include/vlc_objects.h
index 11692b2de7..f0088d336d 100644
--- a/include/vlc_objects.h
+++ b/include/vlc_objects.h
@@ -115,10 +115,7 @@ VLC_API void vlc_object_release(vlc_object_t *obj);
* called exactly once per allocated object after it is no longer needed,
* matching vlc_object_create() or vlc_custom_create().
*/
-static inline void vlc_object_delete(vlc_object_t *obj)
-{
- vlc_object_release(obj);
-}
+VLC_API void vlc_object_delete(vlc_object_t *obj);
#define vlc_object_delete(obj) vlc_object_delete(VLC_OBJECT(obj))
VLC_API size_t vlc_list_children(vlc_object_t *, vlc_object_t **, size_t) VLC_USED;
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index ee058676c9..374bbab4c5 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -671,6 +671,7 @@ vlc_mutex_unlock
vlc_mutex_marked
vlc_global_mutex
vlc_object_create
+vlc_object_delete
vlc_object_find_name
vlc_object_hold
vlc_object_release
diff --git a/src/misc/objects.c b/src/misc/objects.c
index ec15a9bb94..59b2aef75b 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -241,6 +241,11 @@ vlc_object_t *(vlc_object_parent)(vlc_object_t *obj)
return vlc_internals(obj)->parent;
}
+void (vlc_object_delete)(vlc_object_t *obj)
+{
+ (vlc_object_release)(obj);
+}
+
/**
* Destroys a VLC object once it has no more references.
*
More information about the vlc-commits
mailing list