blob: 616af3dadc804ac0643d7a16004b0a4d8bd36c64 [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * UPnP XML helper routines
3 * Copyright (c) 2000-2003 Intel Corporation
4 * Copyright (c) 2006-2007 Sony Corporation
5 * Copyright (c) 2008-2009 Atheros Communications
6 * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
7 *
8 * See wps_upnp.c for more details on licensing and code history.
9 */
10
11#ifndef UPNP_XML_H
12#define UPNP_XML_H
13
14#include "http.h"
15
16void xml_data_encode(struct wpabuf *buf, const char *data, int len);
17void xml_add_tagged_data(struct wpabuf *buf, const char *tag,
18 const char *data);
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -080019int xml_next_tag(const char *in, const char **out,
20 const char **out_tagname, const char **end);
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070021char * xml_get_first_item(const char *doc, const char *item);
22struct wpabuf * xml_get_base64_item(const char *data, const char *name,
23 enum http_reply_code *ret);
24
25#endif /* UPNP_XML_H */