• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/wpa_supplicant-0.7.3/wpa_supplicant/dbus/

Lines Matching refs:xml

29 	struct wpabuf *xml;
46 iface->xml = wpabuf_alloc(3000);
47 if (iface->xml == NULL) {
51 wpabuf_printf(iface->xml, "<interface name=\"%s\">", dbus_interface);
58 static void add_arg(struct wpabuf *xml, const char *name, const char *type,
61 wpabuf_printf(xml, "<arg name=\"%s\"", name);
63 wpabuf_printf(xml, " type=\"%s\"", type);
65 wpabuf_printf(xml, " direction=\"%s\"", direction);
66 wpabuf_put_str(xml, "/>");
70 static void add_entry(struct wpabuf *xml, const char *type, const char *name,
76 wpabuf_printf(xml, "<%s name=\"%s\"/>", type, name);
79 wpabuf_printf(xml, "<%s name=\"%s\">", type, name);
81 add_arg(xml, arg->name, arg->type,
85 wpabuf_printf(xml, "</%s>", type);
89 static void add_property(struct wpabuf *xml,
92 wpabuf_printf(xml, "<property name=\"%s\" type=\"%s\" access=\"%s\"/>",
107 add_entry(iface->xml, "method", dsc->dbus_method,
121 add_entry(iface->xml, "signal", dsc->dbus_signal,
135 add_property(iface->xml, dsc);
159 static void add_interfaces(struct dl_list *list, struct wpabuf *xml)
163 if (wpabuf_len(iface->xml) + 20 < wpabuf_tailroom(xml)) {
164 wpabuf_put_buf(xml, iface->xml);
165 wpabuf_put_str(xml, "</interface>");
168 wpabuf_free(iface->xml);
175 static void add_child_nodes(struct wpabuf *xml, DBusConnection *con,
184 wpabuf_printf(xml, "<node name=\"%s\"/>", children[i]);
189 static void add_introspectable_interface(struct wpabuf *xml)
191 wpabuf_printf(xml, "<interface name=\"%s\">"
201 static void add_properties_interface(struct wpabuf *xml)
203 wpabuf_printf(xml, "<interface name=\"%s\">",
206 wpabuf_printf(xml, "<method name=\"%s\">", WPA_DBUS_PROPERTIES_GET);
207 add_arg(xml, "interface", "s", "in");
208 add_arg(xml, "propname", "s", "in");
209 add_arg(xml, "value", "v", "out");
210 wpabuf_put_str(xml, "</method>");
212 wpabuf_printf(xml, "<method name=\"%s\">", WPA_DBUS_PROPERTIES_GETALL);
213 add_arg(xml, "interface", "s", "in");
214 add_arg(xml, "props", "a{sv}", "out");
215 wpabuf_put_str(xml, "</method>");
217 wpabuf_printf(xml, "<method name=\"%s\">", WPA_DBUS_PROPERTIES_SET);
218 add_arg(xml, "interface", "s", "in");
219 add_arg(xml, "propname", "s", "in");
220 add_arg(xml, "value", "v", "in");
221 wpabuf_put_str(xml, "</method>");
223 wpabuf_put_str(xml, "</interface>");
227 static void add_wpas_interfaces(struct wpabuf *xml,
233 add_interfaces(&ifaces, xml);
251 struct wpabuf *xml;
253 xml = wpabuf_alloc(4000);
254 if (xml == NULL)
257 wpabuf_put_str(xml, "<?xml version=\"1.0\"?>\n");
258 wpabuf_put_str(xml, DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE);
259 wpabuf_put_str(xml, "<node>");
261 add_introspectable_interface(xml);
262 add_properties_interface(xml);
263 add_wpas_interfaces(xml, obj_dsc);
264 add_child_nodes(xml, obj_dsc->connection,
267 wpabuf_put_str(xml, "</node>\n");
271 const char *intro_str = wpabuf_head(xml);
275 wpabuf_free(xml);