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

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


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb  7 12:32:24 2010 +0200| [37a5c2e96b7a7f85baa6fd24d3369ebfd63d671f] | committer: Rémi Denis-Courmont 

ACL: remove leading underscores

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

 include/vlc_acl.h  |    8 ++++----
 src/libvlccore.sym |    4 ++--
 src/network/acl.c  |    8 ++++----
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/include/vlc_acl.h b/include/vlc_acl.h
index 881a008..df50788 100644
--- a/include/vlc_acl.h
+++ b/include/vlc_acl.h
@@ -25,12 +25,12 @@
 #ifndef VLC_ACL_H
 # define VLC_ACL_H
 
-#define ACL_Create(a, b) __ACL_Create(VLC_OBJECT(a), b)
-#define ACL_Duplicate(a,b) __ACL_Duplicate(VLC_OBJECT(a),b)
 
 VLC_EXPORT( int, ACL_Check, ( vlc_acl_t *p_acl, const char *psz_ip ) );
-VLC_EXPORT( vlc_acl_t *, __ACL_Create, ( vlc_object_t *p_this, bool b_allow ) LIBVLC_USED );
-VLC_EXPORT( vlc_acl_t *, __ACL_Duplicate, ( vlc_object_t *p_this, const vlc_acl_t *p_acl ) LIBVLC_USED );
+VLC_EXPORT( vlc_acl_t *, ACL_Create, ( vlc_object_t *p_this, bool b_allow ) LIBVLC_USED );
+#define ACL_Create(a, b) ACL_Create(VLC_OBJECT(a), b)
+VLC_EXPORT( vlc_acl_t *, ACL_Duplicate, ( vlc_object_t *p_this, const vlc_acl_t *p_acl ) LIBVLC_USED );
+#define ACL_Duplicate(a,b) ACL_Duplicate(VLC_OBJECT(a),b)
 VLC_EXPORT( void, ACL_Destroy, ( vlc_acl_t *p_acl ) );
 
 #define ACL_AddHost(a,b,c) ACL_AddNet(a,b,-1,c)
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 67d4afa..33c3cac 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -1,9 +1,9 @@
 access_GetParentInput
 ACL_AddNet
 ACL_Check
-__ACL_Create
+ACL_Create
 ACL_Destroy
-__ACL_Duplicate
+ACL_Duplicate
 ACL_LoadFile
 AddMD5
 aout_BitsPerSample
diff --git a/src/network/acl.c b/src/network/acl.c
index 5c4ffd3..3c39dd7 100644
--- a/src/network/acl.c
+++ b/src/network/acl.c
@@ -199,7 +199,7 @@ int ACL_AddNet( vlc_acl_t *p_acl, const char *psz_ip, int i_len,
     return 0;
 }
 
-
+#undef ACL_Create
 /**
  * Creates an empty ACL.
  *
@@ -208,7 +208,7 @@ int ACL_AddNet( vlc_acl_t *p_acl, const char *psz_ip, int i_len,
  *
  * @return an ACL object. NULL in case of error.
  */
-vlc_acl_t *__ACL_Create( vlc_object_t *p_this, bool b_allow )
+vlc_acl_t *ACL_Create( vlc_object_t *p_this, bool b_allow )
 {
     vlc_acl_t *p_acl;
 
@@ -225,7 +225,7 @@ vlc_acl_t *__ACL_Create( vlc_object_t *p_this, bool b_allow )
     return p_acl;
 }
 
-
+#undef ACL_Duplicate
 /**
  * Perform a deep copy of an existing ACL.
  *
@@ -234,7 +234,7 @@ vlc_acl_t *__ACL_Create( vlc_object_t *p_this, bool b_allow )
  *
  * @return a new ACL object, or NULL on error.
  */
-vlc_acl_t *__ACL_Duplicate( vlc_object_t *p_this, const vlc_acl_t *p_acl )
+vlc_acl_t *ACL_Duplicate( vlc_object_t *p_this, const vlc_acl_t *p_acl )
 {
     vlc_acl_t *p_dupacl;
 




More information about the vlc-devel mailing list