TEST(std_config_node_test, walk_elements_attributes) { std_config_hdl_t file_hdl; file_hdl=std_config_load(fname); ASSERT_NE((uintptr_t)file_hdl, (uintptr_t)NULL); std_config_node_t node=std_config_get_root(file_hdl); node_id=0; validate_node(node); std_config_unload(file_hdl); }
void __process_single_file(const char * file) { std_config_hdl_t h = std_config_load(file); if (h==nullptr) { EV_LOG(TRACE,DSAPI,0,"CPS-META","Invalid file contents %s",file); return ; } std_config_node_t node = std_config_get_root(h); if (node!=nullptr) { do { const char * _node_name = std_config_name_get(node); if (_node_name==nullptr || (strcmp(_node_name,"cps-class-map")!=0)) { break; } std_config_for_each_node(node,__process_file,nullptr); } while (0); } std_config_unload(h); }