Interface
GUPnPAcl
since: 0.20.11
Description [src]
interface GUPnP.Acl : GObject.ObjectAccess control provider for GUPnPContext
GUPnPAcl provides either synchronous or asynchronous functions to check whether a peer should be able to access a resource that is hosted by GUPnP or not.
Available since: 0.20.11
Prerequisite
In order to implement Acl, your type must inherit fromGObject.
Instance methods
gupnp_acl_is_allowed_async
Check asynchronously whether an IP address is allowed to access this resource.
since: 0.20.11
Interface structure
struct GUPnPAclInterface {
  GTypeInterface parent;
  gboolean (* is_allowed) (
    GUPnPAcl* self,
    GUPnPDevice* device,
    GUPnPService* service,
    const char* path,
    const char* address,
    const char* agent
  );
  void (* is_allowed_async) (
    GUPnPAcl* self,
    GUPnPDevice* device,
    GUPnPService* service,
    const char* path,
    const char* address,
    const char* agent,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  );
  gboolean (* is_allowed_finish) (
    GUPnPAcl* self,
    GAsyncResult* res,
    GError** error
  );
  gboolean (* can_sync) (
    GUPnPAcl* self
  );
  
}No description available.
Interface members
| parent |  | 
| No description available. | |
| is_allowed |  | 
| No description available. | |
| is_allowed_async |  | 
| No description available. | |
| is_allowed_finish |  | 
| No description available. | |
| can_sync |  | 
| No description available. | 
Virtual methods
GUPnP.Acl.is_allowed_async
Check asynchronously whether an IP address is allowed to access this resource.
since: 0.20.11