X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_xml.h;h=79fe2ae5208e2ae4e0808ebbff6d68d32c035032;hb=fc4b7290edb57a3528a26f95c4478fe07d45a581;hp=f45f80499285c316f2b4f38072c8dff4836d4de3;hpb=fe36af6238917000f4cc8b971829e347732df598;p=palacios.git diff --git a/palacios/include/palacios/vmm_xml.h b/palacios/include/palacios/vmm_xml.h index f45f804..79fe2ae 100644 --- a/palacios/include/palacios/vmm_xml.h +++ b/palacios/include/palacios/vmm_xml.h @@ -76,16 +76,24 @@ struct v3_xml * v3_xml_idx(struct v3_xml * xml, int idx); const char *v3_xml_attr(struct v3_xml * xml, const char * attr); -// Traverses the v3_xml sturcture to retrieve a specific subtag. Takes a -// variable length list of tag names and indexes. The argument list must be -// terminated by either an index of -1 or an empty string tag name. Example: -// title = v3_xml_get(library, "shelf", 0, "book", 2, "title", -1); -// This retrieves the title of the 3rd book on the 1st shelf of library. -// Returns NULL if not found. -struct v3_xml * v3_xml_get(struct v3_xml * xml, ...); + // frees the memory allocated for an v3_xml structure void v3_xml_free(struct v3_xml * xml); + + + + + +char * v3_xml_tostr(struct v3_xml * xml); + +struct v3_xml * v3_xml_insert(struct v3_xml * xml, struct v3_xml * dest, size_t off); +struct v3_xml * v3_xml_set_txt(struct v3_xml * xml, const char *txt); + + +struct v3_xml * v3_xml_set_attr(struct v3_xml * xml, const char * name, const char * value); + + #endif // __VMM_XML_H