cfg_encoder_start_object()

Create a new configuration item using the specified encoder.

Synopsis:

#include <asr/cfg.h>
 
cfg_item_t* cfg_encoder_start_object(cfg_encoder_t *e, const char *name, const char *value)

Arguments:

e

A pointer to the encoder structure.

name

The name of the new configuration item.

value

The value of the new configuration item.

Library:

libasr

Description:

The cfg_encoder_start_object() function creates a new configuration item with the specified name and value, and then adds it as a child of the node indicated by the specified encoder's container (e->container). If e->container is NULL, it becomes a single configuration item.

Returns:

e->container, the container of the specified encoder (which points to the new configuration item).