X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_xml.h;h=16a93cbcb71f618fc73ec1fca0b4e78a0e847049;hb=436f64eff4b2b60c18f485095f2e962f32b71014;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..16a93cb 100644 --- a/palacios/include/palacios/vmm_xml.h +++ b/palacios/include/palacios/vmm_xml.h @@ -76,6 +76,8 @@ 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: @@ -88,4 +90,18 @@ 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