Method

GUPnPServiceProxyadd_notify_full

Declaration [src]

gboolean
gupnp_service_proxy_add_notify_full (
  GUPnPServiceProxy* proxy,
  const char* variable,
  GType type,
  GUPnPServiceProxyNotifyCallback callback,
  gpointer user_data,
  GDestroyNotify notify
)

Description [src]

Sets up callback to be called whenever a change notification for variable is recieved.

Available since:0.20.12

Parameters

variable const char*
 

The variable to add notification for.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
type GType
 

The type of the variable.

callback GUPnPServiceProxyNotifyCallback
 

The callback to call when variable changes.

user_data gpointer
 

User data for callback.

notify GDestroyNotify
 

Function to call when the notification is removed, or NULL.

Return value

Returns: gboolean
 

TRUE on success.