upnp_xml.c File Reference

#include "includes.h"
#include "common.h"
#include "base64.h"
#include "http.h"
#include "http.h"
Include dependency graph for upnp_xml.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void xml_add_tagged_data (struct wpabuf *buf, const char *tag, const char *data)
void xml_data_encode (struct wpabuf *buf, const char *data, int len)
struct wpabufxml_get_base64_item (const char *data, const char *name, enum http_reply_code *ret)
char * xml_get_first_item (const char *doc, const char *item)
static int xml_next_tag (const char *in, const char **out, const char **out_tagname, const char **end)

Function Documentation

void xml_add_tagged_data ( struct wpabuf buf,
const char *  tag,
const char *  data 
)

Definition at line 161 of file upnp_xml.c.

void xml_data_encode ( struct wpabuf buf,
const char *  data,
int  len 
)

Definition at line 121 of file upnp_xml.c.

struct wpabuf* xml_get_base64_item ( const char *  data,
const char *  name,
enum http_reply_code ret 
) [read]

Definition at line 224 of file upnp_xml.c.

char* xml_get_first_item ( const char *  doc,
const char *  item 
)

Definition at line 190 of file upnp_xml.c.

static int xml_next_tag ( const char *  in,
const char **  out,
const char **  out_tagname,
const char **  end 
) [static]

xml_next_tag - Advance to next tag : Input : OUT: start of tag just after '<' : OUT: start of name of tag, skipping namespace : OUT: one after tag Returns: 0 on success, 1 on failure

A tag has form: <left angle="" bracket>=""><...><right angle="" bracket>=""> Within the angle brackets, there is an optional leading forward slash (which makes the tag an ending tag), then an optional leading label (followed by colon) and then the tag name itself.

Note that angle brackets present in the original data must have been encoded as < and > so they will not trouble us.

Definition at line 78 of file upnp_xml.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:02:37 2013