cfg_encoder_add_int()

Add a configuration item with an integer value to an encoder.

Synopsis:

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

Arguments:

e

A pointer to the encoder structure to add the new configuration item to.

name

The name of the new configuration item.

num

The integer value of the configuration item.

Library:

libasr

Description:

The cfg_encoder_add_int() function creates a new configuration item with the specified name and integer value and adds it as a child of the encoder container (after any other child nodes).

Returns:

A pointer to the new configuration item.