Method

VarlinkClientProtocolcall

Declaration [src]

VarlinkClientMethodCall*
varlink_client_protocol_call (
  VarlinkClientProtocol* self,
  const char* method,
  VarlinkMessage* parameters,
  VarlinkMethodCallFlags flags,
  VarlinkMethodReplyHandler handler,
  gpointer user_data,
  GDestroyNotify notify
)

Description [src]

Creates a method call for method.

Parameters

method

Type: const char*

The method name.

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

Type: VarlinkMessage

A VarlinkMessage.

The data is owned by the caller of the method.
flags

Type: VarlinkMethodCallFlags

Flags for the method call.

handler

Type: VarlinkMethodReplyHandler

A handler for replies.

The argument can be NULL.
user_data

Type: gpointer

User data for handler.

The argument can be NULL.
The data is owned by the caller of the method.
notify

Type: GDestroyNotify

Destroy notify for user_data.

The argument can be NULL.

Return value

Type: VarlinkClientMethodCall

A VarlinkClientMethodCall.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.