Method

GioDBusInterfaceInfolookup_method

Declaration

GDBusMethodInfo*
g_dbus_interface_info_lookup_method (
  GDBusInterfaceInfo* info,
  const gchar* name
)

Description

Looks up information about a method.

The cost of this function is O(n) in number of methods unless g_dbus_interface_info_cache_build() has been used on info.

Available since:2.26

Parameters

name

Type: const gchar*

A D-Bus method name (typically in CamelCase)

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

Return value

Type: GDBusMethodInfo

A GDBusMethodInfo or NULL if not found. Do not free, it is owned by info.

The data is owned by the instance.
The return value can be NULL.