Method

GIRepositoryObjectInfofind_method

since: 2.80

Declaration

GIFunctionInfo*
gi_object_info_find_method (
  GIObjectInfo* info,
  const char* name
)

Description

Obtain a method of the object type given a name.

NULL will be returned if there‚Äôs no method available with that name.

Available since: 2.80

Parameters

name

Type: const char*

Name of method to obtain.

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

Return value

Type: GIFunctionInfo

The GIFunctionInfo, or NULL if no method could be found. Free the struct by calling gi_base_info_unref() when done.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.