X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_acl.h;h=df50788b14adac9cd14690de38f38c4b87a3cba2;hb=c60652e38ac6afd74bd8225e9dae5406f13aaa4f;hp=be4d42f9f8ac86d1774ea59ee88d0d2d1bdcb78e;hpb=e6a2e27bbb326744bbcfe0e464c32068dc41cbb4;p=vlc diff --git a/include/vlc_acl.h b/include/vlc_acl.h index be4d42f9f8..df50788b14 100644 --- a/include/vlc_acl.h +++ b/include/vlc_acl.h @@ -2,6 +2,7 @@ * vlc_acl.h: interface to the network Access Control List internal API ***************************************************************************** * Copyright (C) 2005 Rémi Denis-Courmont + * Copyright (C) 2005 the VideoLAN team * $Id$ * * Authors: Rémi Denis-Courmont @@ -18,22 +19,22 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#ifndef __VLC_ACL_H -# define __VLC_ACL_H +#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, vlc_bool_t b_allow ) ); -VLC_EXPORT( vlc_acl_t *, __ACL_Duplicate, ( vlc_object_t *p_this, const vlc_acl_t *p_acl ) ); +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) -VLC_EXPORT( int, ACL_AddNet, ( vlc_acl_t *p_acl, const char *psz_ip, int i_len, vlc_bool_t b_allow ) ); +VLC_EXPORT( int, ACL_AddNet, ( vlc_acl_t *p_acl, const char *psz_ip, int i_len, bool b_allow ) ); VLC_EXPORT( int, ACL_LoadFile, ( vlc_acl_t *p_acl, const char *path ) ); #endif