Include dependency graph for vlc_acl.h:

Go to the source code of this file.
Defines | |
| #define | ACL_Create(a, b) __ACL_Create(VLC_OBJECT(a), b) |
| #define | ACL_Duplicate(a, b) __ACL_Duplicate(VLC_OBJECT(a),b) |
| #define | ACL_AddHost(a, b, c) ACL_AddNet(a,b,-1,c) |
Functions | |
| int | ACL_Check (vlc_acl_t *p_acl, const char *psz_ip) |
| Check if a given address passes an access control list. | |
| vlc_acl_t * | __ACL_Create (vlc_object_t *p_this, bool b_allow) |
| Creates an empty ACL. | |
| vlc_acl_t * | __ACL_Duplicate (vlc_object_t *p_this, const vlc_acl_t *p_acl) |
| Perform a deep copy of an existing ACL. | |
| void | ACL_Destroy (vlc_acl_t *p_acl) |
| Releases all resources associated with an ACL object. | |
| int | ACL_AddNet (vlc_acl_t *p_acl, const char *psz_ip, int i_len, bool b_allow) |
| Adds an item to an ACL. | |
| int | ACL_LoadFile (vlc_acl_t *p_acl, const char *path) |
| Reads ACL entries from a file. | |
| #define ACL_AddHost | ( | a, | |||
| b, | |||||
| c | ) | ACL_AddNet(a,b,-1,c) |
| #define ACL_Create | ( | a, | |||
| b | ) | __ACL_Create(VLC_OBJECT(a), b) |
| #define ACL_Duplicate | ( | a, | |||
| b | ) | __ACL_Duplicate(VLC_OBJECT(a),b) |
| vlc_acl_t* __ACL_Create | ( | vlc_object_t * | p_this, | |
| bool | b_allow | |||
| ) |
Creates an empty ACL.
| b_allow | whether to grant (true) or deny (false) access by default (ie if none of the ACL entries matched). |
| vlc_acl_t* __ACL_Duplicate | ( | vlc_object_t * | p_this, | |
| const vlc_acl_t * | p_acl | |||
| ) |
Perform a deep copy of an existing ACL.
| p_this | object to attach the copy to. | |
| p_acl | ACL object to be copied. |
| int ACL_AddNet | ( | vlc_acl_t * | p_acl, | |
| const char * | psz_ip, | |||
| int | i_len, | |||
| bool | b_allow | |||
| ) |
Adds an item to an ACL.
Items are always matched in the same order as they are added.
| int ACL_Check | ( | vlc_acl_t * | p_acl, | |
| const char * | psz_ip | |||
| ) |
Check if a given address passes an access control list.
| p_acl | pre-existing ACL to match the address against | |
| psz_ip | numeric IPv4/IPv6 address |
| void ACL_Destroy | ( | vlc_acl_t * | p_acl | ) |
Releases all resources associated with an ACL object.
| int ACL_LoadFile | ( | vlc_acl_t * | p_acl, | |
| const char * | psz_path | |||
| ) |
Reads ACL entries from a file.
| p_acl | ACL object in which to insert parsed entries. | |
| psz_patch | filename from which to parse entries. |
1.5.1