Lines Matching refs:node

79 				       xml_node_t *node)  in oma_dm_get_target_locuri()  argument
84 locuri = get_node(ctx->xml, node, "Item/Target/LocURI"); in oma_dm_get_target_locuri()
99 xml_node_t *node; in oma_dm_add_locuri() local
101 node = xml_node_create(ctx->xml, parent, NULL, element); in oma_dm_add_locuri()
102 if (node == NULL) in oma_dm_add_locuri()
104 xml_node_create_text(ctx->xml, node, NULL, "LocURI", uri); in oma_dm_add_locuri()
146 xml_node_t *node; in add_alert() local
148 node = xml_node_create(ctx->xml, parent, NULL, "Alert"); in add_alert()
149 if (node == NULL) in add_alert()
151 oma_dm_add_cmdid(ctx, node, cmdid); in add_alert()
152 xml_node_create_text(ctx->xml, node, NULL, "Data", int2str(data)); in add_alert()
154 return node; in add_alert()
162 xml_node_t *node; in add_status() local
164 node = xml_node_create(ctx->xml, parent, NULL, "Status"); in add_status()
165 if (node == NULL) in add_status()
167 oma_dm_add_cmdid(ctx, node, cmdid); in add_status()
168 xml_node_create_text(ctx->xml, node, NULL, "MsgRef", int2str(msgref)); in add_status()
170 xml_node_create_text(ctx->xml, node, NULL, "CmdRef", in add_status()
172 xml_node_create_text(ctx->xml, node, NULL, "Cmd", cmd); in add_status()
173 xml_node_create_text(ctx->xml, node, NULL, "Data", int2str(data)); in add_status()
175 xml_node_create_text(ctx->xml, node, NULL, "TargetRef", in add_status()
179 return node; in add_status()
187 xml_node_t *node; in add_results() local
189 node = xml_node_create(ctx->xml, parent, NULL, "Results"); in add_results()
190 if (node == NULL) in add_results()
193 oma_dm_add_cmdid(ctx, node, cmdid); in add_results()
194 xml_node_create_text(ctx->xml, node, NULL, "MsgRef", int2str(msgref)); in add_results()
195 xml_node_create_text(ctx->xml, node, NULL, "CmdRef", int2str(cmdref)); in add_results()
196 add_item(ctx, node, locuri, data); in add_results()
198 return node; in add_results()
229 xml_node_t *item, *node; in add_item() local
233 node = xml_node_create(ctx->xml, item, NULL, "Meta"); in add_item()
234 xml_node_create_text_ns(ctx->xml, node, "syncml:metinf", "Format", in add_item()
236 xml_node_create_text_ns(ctx->xml, node, "syncml:metinf", "Type", in add_item()
282 xml_node_t *node, *item; in oma_dm_add_hs20_generic_alert() local
285 node = add_alert(ctx, syncbody, cmdid, DM_GENERIC_ALERT); in oma_dm_add_hs20_generic_alert()
287 item = xml_node_create(ctx->xml, node, NULL, "Item"); in oma_dm_add_hs20_generic_alert()
289 node = xml_node_create(ctx->xml, item, NULL, "Meta"); in oma_dm_add_hs20_generic_alert()
291 xml_node_create_text_ns(ctx->xml, node, "syncml:metinf", "Type", buf); in oma_dm_add_hs20_generic_alert()
292 xml_node_create_text_ns(ctx->xml, node, "syncml:metinf", "Format", in oma_dm_add_hs20_generic_alert()
392 xml_node_t *node; in oma_dm_exec_browser() local
396 node = get_node(ctx->xml, exec, "Item/Data"); in oma_dm_exec_browser()
397 if (node == NULL) { in oma_dm_exec_browser()
402 data = xml_node_get_text(ctx->xml, node); in oma_dm_exec_browser()
426 xml_node_t *node, *getcert; in oma_dm_exec_get_cert() local
434 node = get_node(ctx->xml, exec, "Item/Data"); in oma_dm_exec_get_cert()
435 if (node == NULL) { in oma_dm_exec_get_cert()
440 data = xml_node_get_text(ctx->xml, node); in oma_dm_exec_get_cert()
506 xml_node_t *node, *tnds, *unode, *pps_node; in oma_dm_run_add() local
589 node = get_node(ctx->xml, add, "Item/Meta/Type"); in oma_dm_run_add()
590 if (node) { in oma_dm_run_add()
592 type = xml_node_get_text(ctx->xml, node); in oma_dm_run_add()
598 use_tnds = node && in oma_dm_run_add()
602 node = get_node(ctx->xml, add, "Item/Data"); in oma_dm_run_add()
603 if (node == NULL) { in oma_dm_run_add()
609 data = xml_node_get_text(ctx->xml, node); in oma_dm_run_add()
659 xml_node_t *node; in oma_dm_add() local
664 node = get_node(ctx->xml, add, "Item/Target/LocURI"); in oma_dm_add()
665 if (node == NULL) { in oma_dm_add()
669 locuri = xml_node_get_text(ctx->xml, node); in oma_dm_add()
681 node = get_node(ctx->xml, add, "Item/Data"); in oma_dm_add()
682 if (node == NULL) { in oma_dm_add()
697 ret = hs20_add_pps_mo(ctx, locuri, node, fname, sizeof(fname)); in oma_dm_add()
729 xml_node_t *node, *tnds, *unode, *pps_node, *parent; in oma_dm_replace() local
777 node = get_node(ctx->xml, replace, "Item/Meta/Type"); in oma_dm_replace()
778 if (node) { in oma_dm_replace()
780 type = xml_node_get_text(ctx->xml, node); in oma_dm_replace()
786 use_tnds = node && in oma_dm_replace()
790 node = get_node(ctx->xml, replace, "Item/Data"); in oma_dm_replace()
791 if (node == NULL) { in oma_dm_replace()
797 data = xml_node_get_text(ctx->xml, node); in oma_dm_replace()
919 static int oma_dm_get_cmdid(struct hs20_osu_client *ctx, xml_node_t *node) in oma_dm_get_cmdid() argument
925 cnode = get_node(ctx->xml, node, "CmdID"); in oma_dm_get_cmdid()