GUPnP.ServiceProxy.add_notify

### Method

# GUPnP ServiceProxyadd_notify

#### Declaration [src]

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

#### Description [src]

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

This method is not directly available to language bindings.

The implementation of this method is provided by `gupnp_service_proxy_add_notify_full()` in language bindings

#### Parameters

`variable`

  Type: `const char*`

  The variable to add notification for.

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

`type`

  Type: `GType`

  The type of the variable.

`callback`

  Type: `GUPnPServiceProxyNotifyCallback`

  The callback to call when `variable` changes.

`user_data`

  Type: `gpointer`

  User data for `callback`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

#### Return value

Type: `gboolean`

`TRUE` on success.