mco_fh_config_get_node_type

Return the type of the configuration node.

Prototype

 
    MCO_FH_CONFIG_NODE_TYPE mco_fh_config_get_node_type(/*IN*/ mco_fh_config_node_h n)
 

Arguments

n The configuration node handle

Description

This function returns the type of the configuration node.

Return Codes

MCO_FH_CFG_NODE_* The type of the configuration node. The type can be one of the following: SCALAR, OBJECT or VECTOR
MCO_FH_CFG_NODE_NULL The node handle is invalid

Example

     
    {
        ...
        mco_fh_config_node_h nxcfg = mco_fh_config_node_get_child(n, "extraConfig");
        MCO_FH_CONFIG_NODE_TYPE nxcfgtype = mco_fh_config_get_node_type(nxcfg);
        ...
    }