[vlc-devel] commit: Remove libvlc_get_vlc_id() ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Aug 9 17:37:20 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug  9 18:12:04 2009 +0300| [9963c65db39634725f3d6f22666cb32e6ad7b6d8] | committer: Rémi Denis-Courmont 

Remove libvlc_get_vlc_id()

It did not really work since VLC 0.9. Also, it was meant for use with
vlc_object_get() and the antique VLC_*() functions which are gone.

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

 include/vlc/libvlc.h |   25 +++++++++----------------
 src/control/core.c   |    6 ------
 src/libvlc.sym       |    1 -
 3 files changed, 9 insertions(+), 23 deletions(-)

diff --git a/include/vlc/libvlc.h b/include/vlc/libvlc.h
index 6a56774..3d81e21 100644
--- a/include/vlc/libvlc.h
+++ b/include/vlc/libvlc.h
@@ -140,16 +140,6 @@ VLC_PUBLIC_API libvlc_instance_t *
 libvlc_new( int , const char *const *, libvlc_exception_t *);
 
 /**
- * Return a libvlc instance identifier for legacy APIs. Use of this
- * function is discouraged, you should convert your program to use the
- * new API.
- *
- * \param p_instance the instance
- * \return the instance identifier
- */
-VLC_PUBLIC_API int libvlc_get_vlc_id( libvlc_instance_t *p_instance );
-
-/**
  * Decrement the reference count of a libvlc instance, and destroy it
  * if it reaches zero.
  *
@@ -215,15 +205,18 @@ VLC_PUBLIC_API const char * libvlc_get_changeset(void);
 struct vlc_object_t;
 
 /**
- * Return the libvlc internal object, the main object that all other depend on.
- * Any of of this function should be considered an ugly hack and avoided at all
- * cost. E.g. you need to expose some functionality that is not provided by the
- * libvlc API directly with libvlccore.
- * Remember to release the object with vlc_object_release( obj* )
+ * Get the internal main VLC object.
+ * Use of this function is usually a hack and should be avoided.
+ * @note
+ * You will need to link with libvlccore to make any use of the underlying VLC
+ * object. The libvlccore programming and binary interfaces are not stable.
+ * @warning
+ * Remember to release the object with vlc_object_release().
  *
  * \param p_instance the libvlc instance
+ * @return a VLC object of type "libvlc"
  */
-VLC_PUBLIC_API struct vlc_object_t *libvlc_get_vlc_instance(libvlc_instance_t *);
+VLC_PUBLIC_API struct vlc_object_t *libvlc_get_vlc_instance(libvlc_instance_t *p_instance);
 
 /**
  * Frees an heap allocation (char *) returned by a LibVLC API.
diff --git a/src/control/core.c b/src/control/core.c
index 9f180ea..9aece4a 100644
--- a/src/control/core.c
+++ b/src/control/core.c
@@ -197,12 +197,6 @@ void libvlc_wait( libvlc_instance_t *p_i )
     libvlc_InternalWait( p_libvlc );
 }
 
-int libvlc_get_vlc_id( libvlc_instance_t *p_instance )
-{
-    assert( p_instance );
-    return 1;
-}
-
 const char * libvlc_get_version(void)
 {
     return VLC_Version();
diff --git a/src/libvlc.sym b/src/libvlc.sym
index 1583c31..7e5cbb8 100644
--- a/src/libvlc.sym
+++ b/src/libvlc.sym
@@ -38,7 +38,6 @@ libvlc_get_fullscreen
 libvlc_get_input_thread
 libvlc_get_log_verbosity
 libvlc_get_version
-libvlc_get_vlc_id
 libvlc_get_vlc_instance
 libvlc_log_clear
 libvlc_log_close




More information about the vlc-devel mailing list