Lines Matching refs:root
16 xml_node_t *root, char *uri) in get_node_uri_iter() argument
26 node = root; in get_node_uri_iter()
46 xml_node_t * get_node_uri(struct xml_node_ctx *ctx, xml_node_t *root, in get_node_uri() argument
56 node = get_node_uri_iter(ctx, root, search); in get_node_uri()
64 xml_node_t *root, const char *path) in get_node_iter() argument
74 xml_node_for_each_child(ctx, node, root) { in get_node_iter()
89 xml_node_t * get_node(struct xml_node_ctx *ctx, xml_node_t *root, in get_node() argument
99 node = get_node_iter(ctx, root, search); in get_node()
106 xml_node_t * get_child_node(struct xml_node_ctx *ctx, xml_node_t *root, in get_child_node() argument
112 xml_node_for_each_child(ctx, node, root) { in get_child_node()
280 xml_node_t *root; in mo_to_tnds() local
284 root = xml_node_create_root(ctx, ns_uri, NULL, NULL, "MgmtTree"); in mo_to_tnds()
285 if (root == NULL) in mo_to_tnds()
288 xml_node_create_text(ctx, root, NULL, "VerDTD", "1.2"); in mo_to_tnds()
292 node = xml_node_create(ctx, root, NULL, "Node"); in mo_to_tnds()
299 node_to_tnds(ctx, use_path ? root : node, mo, use_path ? name : NULL); in mo_to_tnds()
301 return root; in mo_to_tnds()
304 xml_node_free(ctx, root); in mo_to_tnds()
337 static xml_node_t * add_mo_node(struct xml_node_ctx *ctx, xml_node_t *root, in add_mo_node() argument
348 if (root == NULL) { in add_mo_node()
349 root = xml_node_create_root(ctx, NULL, NULL, NULL, in add_mo_node()
351 if (root && value) in add_mo_node()
352 xml_node_set_text(ctx, root, value); in add_mo_node()
362 parent = get_node_uri(ctx, root, uri); in add_mo_node()
380 return root; in add_mo_node()
384 static xml_node_t * tnds_to_mo_iter(struct xml_node_ctx *ctx, xml_node_t *root, in tnds_to_mo_iter() argument
400 if (root && !uri) { in tnds_to_mo_iter()
406 root = add_mo_node(ctx, root, node, uri); in tnds_to_mo_iter()
412 tnds_to_mo_iter(ctx, root, child, nodename); in tnds_to_mo_iter()
416 tnds_to_mo_iter(ctx, root, child, new_uri); in tnds_to_mo_iter()
423 return root; in tnds_to_mo_iter()