mco_fh_config_node_get_child

Returns the current node’s child node with the given key.

Prototype

    mco_fh_config_node_h mco_fh_config_node_get_child(/*IN*/ mco_fh_config_node_h n,
                                                      /*IN*/ const char *key)

Arguments

n
The configuration node handle.
key
The key (name) of the child node.

Description

This function returns the current node’s child node with the specified name in argument key.

Return Codes

mco_fh_config_node_h
The handle of the child configuration node.

Example

    bool TestFeedHandler::setup(mco_fh_config_node_h cfgroot)
    {
        // Read "delayms" parameter from module configuration.
        delayms_ = mco_fh_config_node_get_int8(mco_fh_config_node_get_child(cfgroot, "delayms"), 0);
        return true;
    }