cfg_encoder_attach()

Attach a configuration item to an existing configuration tree.

Synopsis:

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

Arguments:

e

A pointer to an encoder structure.

attach

A pointer to the configuration node to add the new item to.

name

The name of the new configuration item.

Library:

libasr

Description:

The cfg_encoder_attach() function creates a new configuration item with the specified name and adds it as a child of the specifed node, attach, behind any existing child nodes. On return, the base and container of the encoder, e, points to the new configuration item.

Returns:

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