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: GVariantA GVariantcontaining the call id.The data is owned by the caller of the method. 
- code
- 
            Type: gintThe 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: GCancellableA GCancellable, orNULL.The argument can be NULL.The data is owned by the caller of the method. 
- callback
- 
            Type: GAsyncReadyCallbackA GAsyncReadyCallbackorNULL.The argument can be NULL.
- user_data
- 
            Type: gpointerClosure data for callback.The argument can be NULL.The data is owned by the caller of the method.