upnp_xml.h revision 214734
1276479Sdim/* 2249259Sdim * UPnP XML helper routines 3249259Sdim * Copyright (c) 2000-2003 Intel Corporation 4249259Sdim * Copyright (c) 2006-2007 Sony Corporation 5249259Sdim * Copyright (c) 2008-2009 Atheros Communications 6249259Sdim * Copyright (c) 2009, Jouni Malinen <j@w1.fi> 7249259Sdim * 8249259Sdim * See wps_upnp.c for more details on licensing and code history. 9249259Sdim */ 10276479Sdim 11249259Sdim#ifndef UPNP_XML_H 12249259Sdim#define UPNP_XML_H 13249259Sdim 14249259Sdim#include "http.h" 15280031Sdim 16280031Sdimvoid xml_data_encode(struct wpabuf *buf, const char *data, int len); 17276479Sdimvoid xml_add_tagged_data(struct wpabuf *buf, const char *tag, 18276479Sdim const char *data); 19249259Sdimchar * xml_get_first_item(const char *doc, const char *item); 20249259Sdimstruct wpabuf * xml_get_base64_item(const char *data, const char *name, 21276479Sdim enum http_reply_code *ret); 22276479Sdim 23249259Sdim#endif /* UPNP_XML_H */ 24249259Sdim