Lines Matching refs:node

79 				       xml_node_t *node)
84 locuri = get_node(ctx->xml, node, "Item/Target/LocURI");
99 xml_node_t *node;
101 node = xml_node_create(ctx->xml, parent, NULL, element);
102 if (node == NULL)
104 xml_node_create_text(ctx->xml, node, NULL, "LocURI", uri);
140 xml_node_t *node;
142 node = xml_node_create(ctx->xml, parent, NULL, "Alert");
143 if (node == NULL)
145 oma_dm_add_cmdid(ctx, node, cmdid);
146 xml_node_create_text(ctx->xml, node, NULL, "Data", int2str(data));
148 return node;
156 xml_node_t *node;
158 node = xml_node_create(ctx->xml, parent, NULL, "Status");
159 if (node == NULL)
161 oma_dm_add_cmdid(ctx, node, cmdid);
162 xml_node_create_text(ctx->xml, node, NULL, "MsgRef", int2str(msgref));
164 xml_node_create_text(ctx->xml, node, NULL, "CmdRef",
166 xml_node_create_text(ctx->xml, node, NULL, "Cmd", cmd);
167 xml_node_create_text(ctx->xml, node, NULL, "Data", int2str(data));
169 xml_node_create_text(ctx->xml, node, NULL, "TargetRef",
173 return node;
181 xml_node_t *node;
183 node = xml_node_create(ctx->xml, parent, NULL, "Results");
184 if (node == NULL)
187 oma_dm_add_cmdid(ctx, node, cmdid);
188 xml_node_create_text(ctx->xml, node, NULL, "MsgRef", int2str(msgref));
189 xml_node_create_text(ctx->xml, node, NULL, "CmdRef", int2str(cmdref));
190 add_item(ctx, node, locuri, data);
192 return node;
223 xml_node_t *item, *node;
227 node = xml_node_create(ctx->xml, item, NULL, "Meta");
228 xml_node_create_text_ns(ctx->xml, node, "syncml:metinf", "Format",
230 xml_node_create_text_ns(ctx->xml, node, "syncml:metinf", "Type",
276 xml_node_t *node, *item;
279 node = add_alert(ctx, syncbody, cmdid, DM_GENERIC_ALERT);
281 item = xml_node_create(ctx->xml, node, NULL, "Item");
283 node = xml_node_create(ctx->xml, item, NULL, "Meta");
285 xml_node_create_text_ns(ctx->xml, node, "syncml:metinf", "Type", buf);
286 xml_node_create_text_ns(ctx->xml, node, "syncml:metinf", "Format",
386 xml_node_t *node;
390 node = get_node(ctx->xml, exec, "Item/Data");
391 if (node == NULL) {
392 wpa_printf(MSG_INFO, "No Data node found");
396 data = xml_node_get_text(ctx->xml, node);
416 xml_node_t *node, *getcert;
424 node = get_node(ctx->xml, exec, "Item/Data");
425 if (node == NULL) {
426 wpa_printf(MSG_INFO, "No Data node found");
430 data = xml_node_get_text(ctx->xml, node);
436 wpa_printf(MSG_INFO, "Could not parse Item/Data node contents");
444 wpa_printf(MSG_INFO, "Unexpected getCertificate node name '%s'",
464 wpa_printf(MSG_INFO, "No Target LocURI node found");
492 xml_node_t *node, *tnds, *unode, *pps_node;
524 wpa_printf(MSG_INFO, "Add command for PPS node %s", pos);
528 wpa_printf(MSG_INFO, "Specified PPS node exists already");
564 wpa_printf(MSG_INFO, "Adding interim node %s", upos);
573 wpa_printf(MSG_INFO, "Adding node %s", upos);
575 node = get_node(ctx->xml, add, "Item/Meta/Type");
576 if (node) {
578 type = xml_node_get_text(ctx->xml, node);
579 use_tnds = node &&
583 node = get_node(ctx->xml, add, "Item/Data");
584 if (node == NULL) {
590 data = xml_node_get_text(ctx->xml, node);
640 xml_node_t *node;
645 node = get_node(ctx->xml, add, "Item/Target/LocURI");
646 if (node == NULL) {
647 wpa_printf(MSG_INFO, "No Target LocURI node found");
650 locuri = xml_node_get_text(ctx->xml, node);
658 node = get_node(ctx->xml, add, "Item/Data");
659 if (node == NULL) {
660 wpa_printf(MSG_INFO, "No Data node found");
674 ret = hs20_add_pps_mo(ctx, locuri, node, fname, sizeof(fname));
706 xml_node_t *node, *tnds, *unode, *pps_node, *parent;
745 wpa_printf(MSG_INFO, "Replace command for PPS node %s", pos);
749 wpa_printf(MSG_INFO, "Specified PPS node not found");
754 node = get_node(ctx->xml, replace, "Item/Meta/Type");
755 if (node) {
757 type = xml_node_get_text(ctx->xml, node);
758 use_tnds = node &&
762 node = get_node(ctx->xml, replace, "Item/Data");
763 if (node == NULL) {
769 data = xml_node_get_text(ctx->xml, node);
860 wpa_printf(MSG_INFO, "Get command for PPS node %s", pos);
864 wpa_printf(MSG_INFO, "Specified PPS node not found");
870 wpa_printf(MSG_INFO, "Get command returned node with name '%s'", name);
872 wpa_printf(MSG_INFO, "Do not allow Get for Password node");
878 * TODO: No support for DMTNDS, so if interior node, reply with a
879 * list of children node names in Results element. The child list type is
891 static int oma_dm_get_cmdid(struct hs20_osu_client *ctx, xml_node_t *node)
897 cnode = get_node(ctx->xml, node, "CmdID");
984 wpa_printf(MSG_INFO, "SyncML node not found");
1104 wpa_printf(MSG_INFO, "Final node not found");