Method

JsonrpcClientreply_error_async

Declaration [src]

void
jsonrpc_client_reply_error_async (
  JsonrpcClient* self,
  GVariant* id,
  gint code,
  const gchar* message,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Asynchronously replies to the peer, sending a JSON-RPC error message.

Call jsonrpc_client_reply_error_finish() to get the result of this operation.

If id is floating, it’s floating reference is consumed.

Available since:3.28

Parameters

id GVariant*
 

A GVariant containing the call id.

 The data is owned by the caller of the function.
code gint
 

The error code.

message const gchar*
 

An optional error message.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
cancellable GCancellable*
 

A GCancellable, or NULL.

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

A GAsyncReadyCallback or NULL.

user_data gpointer
 

Closure data for callback.