X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_acl.h;h=df50788b14adac9cd14690de38f38c4b87a3cba2;hb=c60652e38ac6afd74bd8225e9dae5406f13aaa4f;hp=8da40adf7964245f29696c6d637a596ae629453a;hpb=dc09f863f97360cd5dfcb9b475074c5d61f57fcd;p=vlc diff --git a/include/vlc_acl.h b/include/vlc_acl.h index 8da40adf79..df50788b14 100644 --- a/include/vlc_acl.h +++ b/include/vlc_acl.h @@ -19,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