[vlc-devel] commit: libvlc: Remove libvlc_event_(init|fini) as they were finally not needed. (Pierre d'Herbemont )

git version control git at videolan.org
Mon May 26 13:51:51 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Mon May 26 13:51:03 2008 +0200| [e58c9db65d3556079214df5c81b75a82aba934ae]

libvlc: Remove libvlc_event_(init|fini) as they were finally not needed.

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

 src/control/core.c            |    4 ----
 src/control/event.c           |   22 ----------------------
 src/control/libvlc_internal.h |    4 ----
 3 files changed, 0 insertions(+), 30 deletions(-)

diff --git a/src/control/core.c b/src/control/core.c
index 87a6310..068ca67 100644
--- a/src/control/core.c
+++ b/src/control/core.c
@@ -132,8 +132,6 @@ libvlc_instance_t * libvlc_new( int argc, const char *const *argv,
     vlc_mutex_init(&p_new->instance_lock);
     vlc_mutex_init(&p_new->event_callback_lock);
 
-    libvlc_event_init(p_new, p_e);
-
     return p_new;
 }
 
@@ -156,8 +154,6 @@ void libvlc_release( libvlc_instance_t *p_instance )
 
     vlc_mutex_lock( lock );
     refs = --p_instance->ref_count;
-    if( refs == 0 )
-        libvlc_event_fini( p_instance );
     vlc_mutex_unlock( lock );
 
     if( refs == 0 )
diff --git a/src/control/event.c b/src/control/event.c
index 5019f4d..5e84463 100644
--- a/src/control/event.c
+++ b/src/control/event.c
@@ -57,28 +57,6 @@ group_contains_listener( libvlc_event_listeners_group_t * group,
  */
 
 /**************************************************************************
- *       libvlc_event_init (internal) :
- *
- * initialization function.
- **************************************************************************/
-void libvlc_event_init( libvlc_instance_t *p_instance, libvlc_exception_t *p_e )
-{
-    VLC_UNUSED(p_instance);
-    VLC_UNUSED(p_e);
-    /* Will certainly be used to install libvlc_instance event */
-}
-
-/**************************************************************************
- *       libvlc_event_fini (internal) :
- *
- * finalization function.
- **************************************************************************/
-void libvlc_event_fini( libvlc_instance_t *p_instance )
-{
-    VLC_UNUSED(p_instance);
-}
-
-/**************************************************************************
  *       libvlc_event_manager_init (internal) :
  *
  * Init an object's event manager.
diff --git a/src/control/libvlc_internal.h b/src/control/libvlc_internal.h
index 59991cf..5c26ff6 100644
--- a/src/control/libvlc_internal.h
+++ b/src/control/libvlc_internal.h
@@ -50,10 +50,6 @@ VLC_EXPORT (int, libvlc_InternalDestroy, ( libvlc_int_t *, bool ) );
 VLC_EXPORT (int, libvlc_InternalAddIntf, ( libvlc_int_t *, const char *, bool,
                             bool, int, const char *const * ) );
 
-void libvlc_event_init( libvlc_instance_t *, libvlc_exception_t * );
-void libvlc_event_fini( libvlc_instance_t * );
-
-
 /***************************************************************************
  * Opaque structures for libvlc API
  ***************************************************************************/




More information about the vlc-devel mailing list