gobj_create_yuno()
#
Creates a new Yuno object with the specified name and gclass. The Yuno object serves as the root object in the hierarchical structure of gobjs.
Prototype
hgobj gobj_create_yuno(
const char *gobj_name,
gclass_name_t gclass_name,
json_t *kw // owned
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The name of the Yuno object. |
|
|
The name of the gclass to associate with the Yuno object. |
|
|
A JSON object containing configuration parameters for the Yuno object. The ownership of this parameter is transferred to the function. |
Return Value
Returns a handle to the newly created Yuno object, or NULL if creation fails.
Notes
The Yuno object is the top-level object in the gobj hierarchy and must be unique within the system.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples