Method

JsonrpcClientsend_notification

Declaration [src]

gboolean
jsonrpc_client_send_notification (
  JsonrpcClient* self,
  const gchar* method,
  GVariant* params,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Synchronously calls method with params on the remote peer.

This function will not wait or expect a reply from the peer.

If params is floating then the reference is consumed.

Available since:3.26

Parameters

method const gchar*
 

The name of the method to call.

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

A GVariant of parameters or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
cancellable GCancellable*
 

A GCancellable or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success; otherwise FALSE and error is set.