summaryrefslogtreecommitdiffstats
path: root/contrib/wpa/src/wps/upnp_xml.h
blob: 62dbe602de6f348e1e4a26657027dafa42589f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * UPnP XML helper routines
 * Copyright (c) 2000-2003 Intel Corporation
 * Copyright (c) 2006-2007 Sony Corporation
 * Copyright (c) 2008-2009 Atheros Communications
 * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
 *
 * See wps_upnp.c for more details on licensing and code history.
 */

#ifndef UPNP_XML_H
#define UPNP_XML_H

#include "http.h"

void xml_data_encode(struct wpabuf *buf, const char *data, int len);
void xml_add_tagged_data(struct wpabuf *buf, const char *tag,
			 const char *data);
char * xml_get_first_item(const char *doc, const char *item);
struct wpabuf * xml_get_base64_item(const char *data, const char *name,
				    enum http_reply_code *ret);

#endif /* UPNP_XML_H */
OpenPOWER on IntegriCloud