gobj_exec_internal_method()

gobj_exec_internal_method()#

Executes an internal method on a GObj. Internal methods are specific to the GClass of the GObj and provide additional functionality.

Prototype

json_t *gobj_exec_internal_method(hgobj gobj, const char *method_name, json_t *kw, hgobj src);
        

Parameters

Key

Type

Description

gobj

hgobj

Handle to the GObj on which the method will be executed.

method_name

const char *

Name of the internal method to execute.

kw

json_t *

JSON object containing parameters for the method. Ownership is transferred to the function.

src

hgobj

Handle to the source GObj initiating the method execution.


Return Value

  • Returns a JSON object (json_t) containing the result of the method execution.

  • Returns NULL if the method does not exist or an error occurs.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples