[vlc-devel] commit: modules: remove leading underscores ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Feb 7 12:37:59 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb  7 13:11:26 2010 +0200| [7b1cd54796b9f1d7709324c41b1b45b33f576f62] | committer: Rémi Denis-Courmont 

modules: remove leading underscores

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

 include/vlc_modules.h |    8 ++++----
 src/libvlccore.sym    |    4 ++--
 src/modules/modules.c |   11 +++++++----
 src/modules/modules.h |   10 +++++-----
 4 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/include/vlc_modules.h b/include/vlc_modules.h
index 5c250bf..2a1fdd5 100644
--- a/include/vlc_modules.h
+++ b/include/vlc_modules.h
@@ -30,10 +30,10 @@
  * Exported functions.
  *****************************************************************************/
 
-#define module_need(a,b,c,d) __module_need(VLC_OBJECT(a),b,c,d)
-VLC_EXPORT( module_t *, __module_need, ( vlc_object_t *, const char *, const char *, bool ) );
-#define module_unneed(a,b) __module_unneed(VLC_OBJECT(a),b)
-VLC_EXPORT( void, __module_unneed, ( vlc_object_t *, module_t * ) );
+VLC_EXPORT( module_t *, module_need, ( vlc_object_t *, const char *, const char *, bool ) );
+#define module_need(a,b,c,d) module_need(VLC_OBJECT(a),b,c,d)
+VLC_EXPORT( void, module_unneed, ( vlc_object_t *, module_t * ) );
+#define module_unneed(a,b) module_unneed(VLC_OBJECT(a),b)
 VLC_EXPORT( bool,  module_exists, (const char *) );
 VLC_EXPORT( module_t *, module_find, (const char *) );
 
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index bd3121e..18cfd6f 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -248,10 +248,10 @@ module_gettext
 module_hold
 module_list_free
 module_list_get
-__module_need
+module_need
 module_provides
 module_release
-__module_unneed
+module_unneed
 msg_DisableObjectPrinting
 msg_EnableObjectPrinting
 msg_Generic
diff --git a/src/modules/modules.c b/src/modules/modules.c
index b648861..42cdbea 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -83,6 +83,7 @@ static void   DupModule        ( module_t * );
 static void   UndupModule      ( module_t * );
 #endif
 
+#undef module_InitBank
 /**
  * Init bank
  *
@@ -91,7 +92,7 @@ static void   UndupModule      ( module_t * );
  * \param p_this vlc object structure
  * \return nothing
  */
-void __module_InitBank( vlc_object_t *p_this )
+void module_InitBank( vlc_object_t *p_this )
 {
     module_bank_t *p_bank = NULL;
 
@@ -387,6 +388,7 @@ static int modulecmp (const void *a, const void *b)
     return lb->i_score - la->i_score;
 }
 
+#undef module_need
 /**
  * module Need
  *
@@ -399,8 +401,8 @@ static int modulecmp (const void *a, const void *b)
  *                 but the same capability
  * \return the module or NULL in case of a failure
  */
-module_t * __module_need( vlc_object_t *p_this, const char *psz_capability,
-                          const char *psz_name, bool b_strict )
+module_t * module_need( vlc_object_t *p_this, const char *psz_capability,
+                        const char *psz_name, bool b_strict )
 {
     stats_TimerStart( p_this, "module_need()", STATS_TIMER_MODULE_NEED );
 
@@ -624,6 +626,7 @@ found_shortcut:
     return p_module;
 }
 
+#undef module_unneed
 /**
  * Module unneed
  *
@@ -633,7 +636,7 @@ found_shortcut:
  * \param p_module the module structure
  * \return nothing
  */
-void __module_unneed( vlc_object_t * p_this, module_t * p_module )
+void module_unneed( vlc_object_t * p_this, module_t * p_module )
 {
     /* Use the close method */
     if( p_module->pf_deactivate )
diff --git a/src/modules/modules.h b/src/modules/modules.h
index 9aa911f..2973c43 100644
--- a/src/modules/modules.h
+++ b/src/modules/modules.h
@@ -25,8 +25,8 @@
 # error This header file can only be included from LibVLC.
 #endif
 
-#ifndef __LIBVLC_MODULES_H
-# define __LIBVLC_MODULES_H 1
+#ifndef LIBVLC_MODULES_H
+# define LIBVLC_MODULES_H 1
 
 
 /* Number of tries before we unload an unused module */
@@ -142,8 +142,8 @@ struct module_t
 module_t *vlc_module_create (vlc_object_t *);
 module_t *vlc_submodule_create (module_t *module);
 
-#define module_InitBank(a)     __module_InitBank(VLC_OBJECT(a))
-void  __module_InitBank        ( vlc_object_t * );
+void  module_InitBank( vlc_object_t * );
+#define module_InitBank(a) module_InitBank(VLC_OBJECT(a))
 void module_LoadPlugins( vlc_object_t * );
 #define module_LoadPlugins(a) module_LoadPlugins(VLC_OBJECT(a))
 void module_EndBank( vlc_object_t *, bool );
@@ -163,4 +163,4 @@ void   CacheLoad  (vlc_object_t *, module_bank_t *, const char *);
 void   CacheSave  (vlc_object_t *, const char *, module_cache_t *const *, size_t);
 module_cache_t * CacheFind (module_bank_t *, const char *, int64_t, int64_t);
 
-#endif /* !__LIBVLC_MODULES_H */
+#endif /* !LIBVLC_MODULES_H */




More information about the vlc-devel mailing list