gobj_create_pure_child()
#
Creates a new gobj
as a pure child of the specified parent. A pure child sends events directly to its parent instead of publishing them.
Prototype
hgobj gobj_create_pure_child(
const char *gobj_name,
gclass_name_t gclass_name,
json_t *kw, // owned
hgobj parent
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The name of the new |
|
|
The |
|
|
A JSON object containing the configuration attributes for the new |
|
|
The parent |
Return Value
Returns a handle to the newly created gobj
, or NULL
if creation fails.
Notes
A pure child does not publish events but instead sends them directly to its parent. This function internally calls gobj_create2()
with the gobj_flag_pure_child
flag.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples