gobj_find_service()

gobj_find_service()#

Searches for a service gobj by its name, performing a case-insensitive comparison.

Prototype

hgobj gobj_find_service(
    const char *service,
    BOOL verbose
);

Parameters

Key

Type

Description

service

const char *

The name of the service to search for. The comparison is case-insensitive.

verbose

BOOL

If set to TRUE, logs an error message when the service is not found.


Return Value

Returns a handle to the found service gobj, or NULL if the service is not found.

Notes

If service is __default_service__, the function returns the default service gobj. If service is __yuno__ or __root__, it returns the Yuno gobj.

Prototype

// Not applicable in JS

Prototype

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