[vlc-devel] commit: Unexport vlc_list_find ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Jan 19 18:02:30 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Jan 19 19:01:27 2009 +0200| [0d92017b3b78bad629ff27fc4c79050df8939291] | committer: Rémi Denis-Courmont 

Unexport vlc_list_find

The rationale is the same as with vlc_object_find().

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d92017b3b78bad629ff27fc4c79050df8939291
---

 include/vlc_objects.h |    4 ----
 src/libvlc.h          |    2 ++
 src/libvlccore.sym    |    1 -
 src/misc/objects.c    |    2 +-
 4 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/include/vlc_objects.h b/include/vlc_objects.h
index 9691890..07cf4a0 100644
--- a/include/vlc_objects.h
+++ b/include/vlc_objects.h
@@ -82,7 +82,6 @@ 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_hold, ( 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 * ) );
 VLC_EXPORT( void, vlc_list_release, ( vlc_list_t * ) );
 
@@ -112,9 +111,6 @@ VLC_EXPORT( void, vlc_list_release, ( vlc_list_t * ) );
 #define vlc_object_release(a) \
     __vlc_object_release( VLC_OBJECT(a) )
 
-#define vlc_list_find(a,b,c) \
-    __vlc_list_find( VLC_OBJECT(a),b,c)
-
 #define vlc_list_children(a) \
     __vlc_list_children( VLC_OBJECT(a) )
 
diff --git a/src/libvlc.h b/src/libvlc.h
index f76fd74..2b4aa5c 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -53,6 +53,8 @@ void __vlc_object_signal_unlocked (vlc_object_t *);
 #define vlc_object_signal_unlocked( obj ) \
     __vlc_object_signal_unlocked( VLC_OBJECT( obj ) )
 
+vlc_list_t *vlc_list_find( vlc_object_t *, int, int ); /* legacy */
+
 void vlc_trace (const char *fn, const char *file, unsigned line);
 #define vlc_backtrace() vlc_trace(__func__, __FILE__, __LINE__)
 
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 54a0dc7..c97ff57 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -467,7 +467,6 @@ vlc_inet_ntop
 vlc_inet_pton
 vlc_join
 __vlc_list_children
-__vlc_list_find
 vlc_list_release
 vlc_memcpy
 vlc_memset
diff --git a/src/misc/objects.c b/src/misc/objects.c
index da4527c..350f87a 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -785,7 +785,7 @@ void __vlc_object_detach( vlc_object_t *p_this )
  * This function recursively looks for a given object type. i_mode can be one
  * of FIND_PARENT, FIND_CHILD or FIND_ANYWHERE.
  *****************************************************************************/
-vlc_list_t * __vlc_list_find( vlc_object_t *p_this, int i_type, int i_mode )
+vlc_list_t * vlc_list_find( vlc_object_t *p_this, int i_type, int i_mode )
 {
     vlc_list_t *p_list;
     int i_count = 0;




More information about the vlc-devel mailing list