gobj_create_tree()

gobj_create_tree()#

Parses a hierarchical tree configuration and creates a GObj tree.
This function builds a parent-child hierarchy of Gobjs based on the provided configuration.

Prototype

PUBLIC hgobj gobj_create_tree(
    hgobj        parent,
    const char   *tree_config,
    const char   *json_config_variables
);

Parameters

Key

Type

Description

parent

hgobj

Handle to the parent GObj under which the tree is created. If NULL, the tree is created at the root level.

tree_config

const char *

A JSON string or configuration file that defines the structure and attributes of the GObj tree.

json_config_variables

const char *

A JSON string specifying additional variables or overrides for the tree_config.

Return Value

  • Returns the handle (hgobj) to the root of the created GObj tree.

  • 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