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:
VarlinkInterfaceA 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:
VarlinkServerMethodHandlerA handler for
method. user_data-
Type:
gpointerUser data for
handler.The argument can be NULL.The data is owned by the caller of the method. notify-
Type:
GDestroyNotifyDestroy notify for
user_data.The argument can be NULL.