gobj_create_default_service()

gobj_create_default_service()#

Creates a new GObj instance configured as the default service.
Default services have auto-start enabled but require manual playback via the Yuno’s play method.

Prototype

#define gobj_create_default_service(name, gclass, kw, parent) \
    gobj_create_gobj(name, gclass, kw, parent, gobj_flag_default_service | gobj_flag_autostart)

Parameters

Key

Type

Description

name

const char *

The name of the default service GObj to be created.

gclass

gclass_name_t

The name of the GClass from which the GObj will be instantiated.

kw

json_t *

JSON object containing attributes to initialize the GObj. This parameter is owned by the function.

parent

hgobj

Handle to the parent GObj. If NULL, the GObj is created without a parent.

Return Value

  • Returns the handle (hgobj) to the created default service GObj.

  • Returns NULL if the creation fails.

Prototype

// Not applicable in JS

Prototype

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