[vlc-commits] variables: privatize callback type enumeration

Rémi Denis-Courmont git at videolan.org
Sat Nov 28 11:51:06 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 28 12:37:21 2015 +0200| [0b33ed30caf0af521d7ec30777daa464312246ff] | committer: Rémi Denis-Courmont

variables: privatize callback type enumeration

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

 include/vlc_common.h |    6 ------
 src/misc/variables.c |    6 ++++++
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 6a6f6c6..b2e304f 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -383,12 +383,6 @@ typedef int ( * vlc_list_callback_t ) ( vlc_object_t *,      /* variable's objec
                                         vlc_value_t *,      /* new/deleted value  */
                                         void *);                 /* callback data */
 
-typedef enum
-{
-    vlc_value_callback,
-    vlc_list_callback
-} vlc_callback_type_t;
-
 /*****************************************************************************
  * OS-specific headers and thread types
  *****************************************************************************/
diff --git a/src/misc/variables.c b/src/misc/variables.c
index b500ec4..50cdcea 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -892,6 +892,12 @@ int var_Get( vlc_object_t *p_this, const char *psz_name, vlc_value_t *p_val )
     return var_GetChecked( p_this, psz_name, 0, p_val );
 }
 
+typedef enum
+{
+    vlc_value_callback,
+    vlc_list_callback
+} vlc_callback_type_t;
+
 static void AddCallback( vlc_object_t *p_this, const char *psz_name,
                         callback_entry_t entry, vlc_callback_type_t i_type )
 {



More information about the vlc-commits mailing list