Method
GUPnPAclis_allowed
since: 0.20.11
Declaration [src]
gboolean
gupnp_acl_is_allowed (
GUPnPAcl* self,
GUPnPDevice* device,
GUPnPService* service,
const char* path,
const char* address,
const char* agent
)
Description [src]
Check whether an IP address is allowed to access this resource.
Available since: 0.20.11
Parameters
device-
Type:
GUPnPDeviceThe
GUPnPDeviceassociated withpathorNULLif unknown.The argument can be NULL.The data is owned by the caller of the method. service-
Type:
GUPnPServiceThe
GUPnPServiceassociated withpathorNULLif unknown.The argument can be NULL.The data is owned by the caller of the method. path-
Type:
const char*The path being served.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. address-
Type:
const char*IP address of the peer.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. agent-
Type:
const char*The User-Agent header of the peer or
NULLif unknown.returnsTRUEif the peer is allowed,FALSEotherwise.The argument can be NULL.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string.