Method

VarlinkServerRegistryadd_method_static

Declaration [src]

void
varlink_server_registry_add_method_static (
  VarlinkServerRegistry* self,
  const VarlinkInterface* interface,
  const char* method,
  VarlinkServerMethodHandler handler,
  gpointer user_data,
  GDestroyNotify notify
)

Description [src]

Adds method to self without copying interface.

interface must remain valid until self is finalized. This is intended for generated code with static interface metadata.

This method is not directly available to language bindings.

Parameters

interface

Type: VarlinkInterface

A static VarlinkInterface.

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

Type: const char*

The unqualified method name.

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

Type: VarlinkServerMethodHandler

A handler for method.

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.