Method
JsonrpcClientreply_error_async
since: 3.28
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
This method completes asynchronously. Use jsonrpc_client_reply_error_finish()
inside the GAsyncReadyCallback
to obtain the result of the operation.
Parameters
id
-
Type:
GVariant
A
GVariant
containing the call id.The data is owned by the caller of the method. code
-
Type:
gint
The error code.
message
-
Type:
const gchar*
An optional error message.
The argument can be NULL
.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. cancellable
-
Type:
GCancellable
A
GCancellable
, orNULL
.The argument can be NULL
.The data is owned by the caller of the method. callback
-
Type:
GAsyncReadyCallback
A
GAsyncReadyCallback
orNULL
.The argument can be NULL
. user_data
-
Type:
gpointer
Closure data for
callback
.The argument can be NULL
.The data is owned by the caller of the method.