summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2005-12-21 17:14:58 +0400
committerunknown <bar@mysql.com>2005-12-21 17:14:58 +0400
commit23ab8a3a72231b7a87b287fd8a3fe321e6c2ec4d (patch)
treeb80e8a428edd5fa7fef32c98bc5a96d09d263c8d /include
parent6e8b348411cf66ee68d646b986c5d8378f88015d (diff)
parent5e4c3ce6822cac4313cd457136ea8827fce37a77 (diff)
downloadmariadb-git-23ab8a3a72231b7a87b287fd8a3fe321e6c2ec4d.tar.gz
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/usr/home/bar/mysql-5.1-new.xml
Diffstat (limited to 'include')
-rw-r--r--include/my_xml.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/my_xml.h b/include/my_xml.h
index 82de995e700..0d779ea6fb9 100644
--- a/include/my_xml.h
+++ b/include/my_xml.h
@@ -26,8 +26,31 @@ extern "C" {
#define MY_XML_OK 0
#define MY_XML_ERROR 1
+/*
+ A flag whether to use absolute tag names in call-back functions,
+ like "a", "a.b" and "a.b.c" (used in character set file parser),
+ or relative names like "a", "b" and "c".
+*/
+#define MY_XML_FLAG_RELATIVE_NAMES 1
+
+/*
+ A flag whether to skip normilization of text values before calling
+ call-back functions: i.e. skip leading/trailing spaces,
+ \r, \n, \t characters.
+*/
+#define MY_XML_FLAG_SKIP_TEXT_NORMALIZATION 2
+
+enum my_xml_node_type
+{
+ MY_XML_NODE_TAG, /* can have TAG, ATTR and TEXT children */
+ MY_XML_NODE_ATTR, /* can have TEXT children */
+ MY_XML_NODE_TEXT /* cannot have children */
+};
+
typedef struct xml_stack_st
{
+ int flags;
+ enum my_xml_node_type current_node_type;
char errstr[128];
char attr[128];
char *attrend;