cfg_encoder_init()

Create a new configuration item.

Synopsis:

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

Arguments:

e

A pointer to the encoder that contains the items to construct the tree from.

name

The name of the child item.

Library:

libasr

Description:

The cfg_encoder_init() function creates a new configuration tree from the specified configuration encoder with the specified name. The encoder base is the root of the new tree. A new configuration item with name is added as a child of the root. On return, the base of the encoder points to the root of the new tree; the container points to the new configuration item.

Returns:

e->base, the base of the specified encoder (which points to the new tree).