gobj_create_volatil()
#
Creates a new volatile gobj
instance of the specified gclass_name
with the given attributes and parent. A volatile gobj
is automatically destroyed when its parent is destroyed.
Prototype
hgobj gobj_create_volatil(
const char *gobj_name,
gclass_name_t gclass_name,
json_t *kw, // owned
hgobj parent
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The name of the |
|
|
The name of the |
|
|
A JSON object containing the attributes for the |
|
|
The parent |
Return Value
Returns a handle to the newly created volatile gobj
, or NULL
if creation fails.
Notes
A volatile gobj
is automatically destroyed when its parent is destroyed. Use gobj_create2()
for more control over gobj
creation.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples