Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

vlc_acl.h

00001 /*****************************************************************************
00002  * vlc_acl.h: interface to the network Access Control List internal API
00003  *****************************************************************************
00004  * Copyright (C) 2005 Rémi Denis-Courmont
00005  * $Id$
00006  *
00007  * Authors: Rémi Denis-Courmont <rem # videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef __VLC_ACL_H
00025 # define __VLC_ACL_H
00026 
00027 #define ACL_Create(a, b) __ACL_Create(VLC_OBJECT(a), b)
00028 #define ACL_Duplicate(a,b) __ACL_Duplicate(VLC_OBJECT(a),b)
00029 
00030 VLC_EXPORT( int, ACL_Check, ( vlc_acl_t *p_acl, const char *psz_ip ) );
00031 VLC_EXPORT( vlc_acl_t *, __ACL_Create, ( vlc_object_t *p_this, vlc_bool_t b_allow ) );
00032 VLC_EXPORT( vlc_acl_t *, __ACL_Duplicate, ( vlc_object_t *p_this, const vlc_acl_t *p_acl ) );
00033 VLC_EXPORT( void, ACL_Destroy, ( vlc_acl_t *p_acl ) );
00034 
00035 #define ACL_AddHost(a,b,c) ACL_AddNet(a,b,-1,c)
00036 VLC_EXPORT( int, ACL_AddNet, ( vlc_acl_t *p_acl, const char *psz_ip, int i_len, vlc_bool_t b_allow ) );
00037 VLC_EXPORT( int, ACL_LoadFile, ( vlc_acl_t *p_acl, const char *path ) );
00038 
00039 #endif

Generated on Tue Dec 20 10:14:19 2005 for vlc-0.8.4a by  doxygen 1.4.2