src/genx-glib.h (1266B) - raw
1 /* 2 * http://www.djc.id.au/blog/genx-vala 3 * Released into the public domain 4 */ 5 6 #ifndef _GENX_GLIB_H 7 #define _GENX_GLIB_H 8 9 #include <genx.h> 10 11 typedef struct genxWriter_rec genxWriter_rec; 12 13 genxNamespace genx_writer_declare_namespace(genxWriter w, const char *uri, const char *prefix); 14 genxElement genx_writer_declare_element(genxWriter w, genxNamespace ns, const char *type); 15 genxAttribute genx_writer_declare_attribute(genxWriter w, genxNamespace ns, const char *name); 16 void genx_writer_start_doc_gstring(genxWriter w, GString *gs); 17 void genx_writer_end_document(genxWriter w); 18 void genx_writer_comment(genxWriter w, const char *text); 19 void genx_writer_pi(genxWriter w, const char *target, const char *text); 20 void genx_writer_start_element_literal(genxWriter w, const char *xmlns, const char *type); 21 void genx_element_start(genxElement e); 22 void genx_writer_add_attribute_literal(genxWriter w, const char *xmlns, 23 const char *name, const char *value); 24 void genx_attribute_add(genxAttribute a, const char *value); 25 void genx_namespace_add(genxNamespace ns, char *prefix); 26 void genx_writer_end_element(genxWriter w); 27 void genx_writer_add_text(genxWriter w, const char *start); 28 void genx_writer_add_character(genxWriter w, int c); 29 30 #endif /* inclusion guard */