summaryrefslogtreecommitdiffstats
path: root/xsd2c/xsd2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'xsd2c/xsd2c.h')
-rwxr-xr-xxsd2c/xsd2c.h100
1 files changed, 100 insertions, 0 deletions
diff --git a/xsd2c/xsd2c.h b/xsd2c/xsd2c.h
new file mode 100755
index 0000000..73bf6b6
--- /dev/null
+++ b/xsd2c/xsd2c.h
@@ -0,0 +1,100 @@
+#ifndef XSD2C_H
+#define XSD2C_H
+
+#include <libxml/tree.h>
+
+
+
+#define XSD_ALL_STR "all"
+#define XSD_ANNOTATION_STR "annotation"
+#define XSD_ANY_STR ""
+#define XSD_ANY_ATTRIBUTE_STR "any"
+#define XSD_APPINFO_STR "appInfo"
+#define XSD_ATTRIBUTE_STR "attribute"
+#define XSD_ATTRIBUTE_GROUP_STR "attributeGroup"
+#define XSD_CHOICE_STR "choice"
+#define XSD_COMPLEX_TYPE_STR "complexType"
+#define XSD_COMPLEX_CONTENT_STR "complexContent"
+#define XSD_DOCUMENTATION_STR "documentation"
+#define XSD_ELEMENT_STR "element"
+#define XSD_EXTENSION_STR "extension"
+#define XSD_FIELD_STR "field"
+#define XSD_GROUP_STR "group"
+#define XSD_IMPORT_STR "import"
+#define XSD_INCLUDE_STR "include"
+#define XSD_KEY_STR "key"
+#define XSD_KEYREF_STR "keyref"
+#define XSD_LIST_STR "list"
+#define XSD_NOTATION_STR "notation"
+#define XSD_REDEFINE_STR "redefine"
+#define XSD_RESTRICTION_STR "restriction"
+#define XSD_SCHEMA_STR "schema"
+#define XSD_SELECTOR_STR "selector"
+#define XSD_SEQUENCE_STR "sequence"
+#define XSD_SIMPLE_CONTENT_STR "simpleContent"
+#define XSD_SIMPLE_TYPE_STR "simpleType"
+#define XSD_UNION_STR "union"
+#define XSD_UNIQUE_STR "unique"
+
+#define ATTR_TYPE_STR "type"
+#define ATTR_NAME_STR "name"
+#define ATTR_BASE_STR "base"
+#define ATTR_MIN_OCCURS_STR "minOccurs"
+#define ATTR_MAX_OCCURS_STR "maxOccurs"
+
+#define ATTR_VALUE_UNBOUNDED "unbounded"
+
+enum _xsdAttr
+{
+ ATTR_UNKNOWN,
+ ATTR_TYPE,
+ ATTR_NAME,
+ ATTR_BASE,
+ ATTR_MIN_OCCURS,
+ ATTR_MAX_OCCURS
+};
+
+enum _xsdKeyword
+{
+ XSD_UNKNOWN,
+ XSD_ALL,
+ XSD_ANNOTATION,
+ XSD_ANY,
+ XSD_ANY_ATTRIBUTE,
+ XSD_APPINFO,
+ XSD_ATTRIBUTE,
+ XSD_ATTRIBUTE_GROUP,
+ XSD_CHOICE,
+ XSD_COMPLEX_TYPE,
+ XSD_COMPLEX_CONTENT,
+ XSD_DOCUMENTATION,
+ XSD_ELEMENT,
+ XSD_EXTENSION,
+ XSD_FIELD,
+ XSD_GROUP,
+ XSD_IMPORT,
+ XSD_INCLUDE,
+ XSD_KEY,
+ XSD_KEYREF,
+ XSD_LIST,
+ XSD_NOTATION,
+ XSD_REDEFINE,
+ XSD_RESTRICTION,
+ XSD_SCHEMA,
+ XSD_SELECTOR,
+ XSD_SEQUENCE,
+ XSD_SIMPLE_CONTENT,
+ XSD_SIMPLE_TYPE,
+ XSD_UNION,
+ XSD_UNIQUE
+};
+
+typedef enum _xsdKeyword xsdKeyword;
+typedef enum _xsdAttr xsdAttr;
+
+int xsdEngineRun(xmlNodePtr xsdNode, const char* destDir);
+void xsdSetDestDir(const char* destDir);
+xmlNodePtr xsdLoadFile(const char* filename);
+xmlNodePtr wsdlLoadFile(const char* filename);
+
+#endif