00001 /* 00002 * UPnP XML helper routines 00003 * Copyright (c) 2000-2003 Intel Corporation 00004 * Copyright (c) 2006-2007 Sony Corporation 00005 * Copyright (c) 2008-2009 Atheros Communications 00006 * Copyright (c) 2009, Jouni Malinen <j@w1.fi> 00007 * 00008 * See wps_upnp.c for more details on licensing and code history. 00009 */ 00010 00011 #ifndef UPNP_XML_H 00012 #define UPNP_XML_H 00013 00014 #include "http.h" 00015 00016 void xml_data_encode(struct wpabuf *buf, const char *data, int len); 00017 void xml_add_tagged_data(struct wpabuf *buf, const char *tag, 00018 const char *data); 00019 char * xml_get_first_item(const char *doc, const char *item); 00020 struct wpabuf * xml_get_base64_item(const char *data, const char *name, 00021 enum http_reply_code *ret); 00022 00023 #endif /* UPNP_XML_H */