You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/09/28 05:43:06 UTC

svn commit: r292110 - /webservices/axis2/trunk/c/include/

Author: samisa
Date: Tue Sep 27 20:42:52 2005
New Revision: 292110

URL: http://svn.apache.org/viewcvs?rev=292110&view=rev
Log:
Addede naming convention fixes to files

Added:
    webservices/axis2/trunk/c/include/axis2c.h
    webservices/axis2/trunk/c/include/axis2c_errno.h
    webservices/axis2/trunk/c/include/axis2c_node.h
    webservices/axis2/trunk/c/include/axis2c_om_attribute.h   (with props)
    webservices/axis2/trunk/c/include/axis2c_om_comment.h   (with props)
    webservices/axis2/trunk/c/include/axis2c_om_container.h
    webservices/axis2/trunk/c/include/axis2c_om_doctype.h
    webservices/axis2/trunk/c/include/axis2c_om_document.h   (with props)
    webservices/axis2/trunk/c/include/axis2c_om_element.h
    webservices/axis2/trunk/c/include/axis2c_om_namespace.h   (with props)
    webservices/axis2/trunk/c/include/axis2c_om_text.h   (with props)
    webservices/axis2/trunk/c/include/axis2c_qname.h
    webservices/axis2/trunk/c/include/axis2c_stax_ombuilder.h

Added: webservices/axis2/trunk/c/include/axis2c.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c.h (added)
+++ webservices/axis2/trunk/c/include/axis2c.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2C_H
+#define AXIS2C_H
+
+/**
+ * @file axis2c.h
+ * @brief Axis2c specific global declarations
+ */
+
+
+#endif /* AXIS2C_H */
+

Added: webservices/axis2/trunk/c/include/axis2c_errno.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_errno.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_errno.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_errno.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,71 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2C_ERRNO_H
+#define AXIS2C_ERRNO_H
+
+/**
+ * @file axis2c_errno.h
+ * @brief Axis2c Error Codes
+ */
+
+#include <apr_errno.h>
+
+/**
+ * AXIS2C_START_ERROR is where the AXIS2C specific error values start.
+ * In apr_errno.h APR_OS_START_USERERR is defined as start of the 
+ * error codes for applications using apr.
+ */
+#define AXIS2C_START_ERROR    APR_OS_START_USERERR
+
+#define AXIS2C_START_SPACE    50000
+
+
+#define AXIS2C_STATUS         AXIS2C_START_ERROR + AXIS2C_ERROR_SPACE
+
+/** 
+ * @defgroup AXIS2C_Error AXIS2C Error Values
+ * <PRE>
+ * <b>AXIS2C ERROR VALUES</b>
+ * AXIS2C_ERROR_OM_MEMORY_ALLOCATION      AXIS2C was unable to
+ *                                        allocate the requested memory for the OM 
+ *</PRE>
+ * <PRE>
+ * <b>AXIS2C STATUS VALUES</b>
+ * AXIS2C_SUCCESS                         Success status code
+ * AXIS2C_FAILIURE                        Failure status code
+ *
+ * </PRE>
+ # @addtogroup AXIS2C Error codes
+ * @{
+ */
+/** @see AXIS2C_ERROR_OM_MEMORY_ALLOCATION */
+#define AXIS2C_ERROR_OM_MEMORY_ALLOCATION        (AXIS2C_START_ERROR + 1)
+
+/** @} */
+
+/** 
+ * @addtogroup AXIS2C Status codes
+ * @{
+ */
+
+#define AXIS2C_SUCCESS        (AXIS2C_START_STATUS + 1)
+#define AXIS2C_FAILURE       (APR_OS_START_STATUS + 2)
+
+
+/** @} */
+
+#endif /* AXIS2C_ERRNO_H */

Added: webservices/axis2/trunk/c/include/axis2c_node.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_node.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_node.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_node.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,90 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2C_NODE_H
+#define AXIS2C_NODE_H
+
+#include <apr.h>
+#include <apr_pools.h>
+#include <xmlpullparser.h>
+
+static apr_pool_t *om_pool; // a memory pool to be used for this module
+typedef struct axis2c_stax_om_builder_s  axis2c_stax_om_builder_t;
+
+enum OMTYPES{
+	AXIS2C_OM_DOCUMENT=10,
+	AXIS2C_OM_ELEMENT=20,
+	AXIS2C_OM_DOCTYPE=30,
+	AXIS2C_OM_COMMENT=40,
+	AXIS2C_OM_ATTRIBUTE=50,
+	AXIS2C_OM_NAMESPACE=60,
+	AXIS2C_OM_PROCESSING_INSTRUCTION=70,
+	AXIS2C_OM_TEXT=80
+};
+
+/*
+* This is the structure that defines a node in om tree 
+* parent   - parent node if one is available
+* parser   - carries a pointer to the XML_PullParser 
+* element_type - the type of the element one of omtypes
+* data_element  - stores the structs created for storing xml 
+*/
+typedef struct axis2c_node_t{
+	struct axis2c_node_t *parent;
+	struct axis2c_node_t *prev_sibling;
+	struct axis2c_node_t *next_sibling;
+	struct axis2c_node_t *first_child;
+	struct axis2c_node_t *last_child;
+	axis2c_stax_om_builder_t *builder;
+	int element_type;
+	int done;
+	void* data_element;
+}axis2c_node_t;
+
+
+//create a node and allocate memory
+axis2c_node_t *axis2c_create_node();
+//free a given nod
+void axis2c_free_node(axis2c_node_t *node);
+// add a node as a child of parent node
+void axis2c_node_add_child(axis2c_node_t *parent,axis2c_node_t *child);
+// detach a node form the parent and reset the other links
+axis2c_node_t *axis2c_node_detach(axis2c_node_t *node_to_detach);
+// insert a sibling node 
+void axis2c_node_insert_sibling_after(axis2c_node_t *current_ele,axis2c_node_t *nodeto_insert);
+void axis2c_node_insert_sibling_before(axis2c_node_t *current_ele,axis2c_node_t *nodeto_insert);
+
+// build the tree 
+int axis2c_node_build(axis2c_node_t *node);
+
+
+
+void axis2c_node_set_parent(axis2c_node_t *parent);
+
+axis2c_node_t *axis2c_node_get_next_sibling(axis2c_node_t *node);
+
+axis2c_node_t *axis2c_node_set_next_sibling(axis2c_node_t *node);
+
+
+
+
+
+
+
+
+
+
+#endif // AXIS2C_NODE

Added: webservices/axis2/trunk/c/include/axis2c_om_attribute.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_om_attribute.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_om_attribute.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_om_attribute.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2C_OM_ATTRIBUTE_H
+#define AXIS2C_OM_ATTRIBUTE_H
+
+#include <axis2c_qname.h>
+#include <axis2c_node.h>
+#include <axis2c_om_namespace.h>
+
+typedef struct axis2c_om_attribute_t{
+	char *localname;
+	char *value;
+	axis2c_om_namespace_t *ns;
+}axis2c_om_attribute_t;
+
+axis2c_om_attribute_t *axis2c_create_om_attribute(const char *localname,const char *value, axis2c_om_namespace_t *ns);
+axis2c_qname_t *axis2c_om_attribute_get_qname(axis2c_om_attribute_t *attribute);
+void axis2c_om_attribute_free(axis2c_om_attribute_t *attr);
+
+
+
+
+
+
+#endif   // _AXISC_ATTRIBUTE_H_
+

Propchange: webservices/axis2/trunk/c/include/axis2c_om_attribute.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/include/axis2c_om_comment.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_om_comment.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_om_comment.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_om_comment.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2C_OM_COMMENT_H
+#define AXIS2C_OM_COMMENT_H
+#include <axis2c_node.h>
+
+
+
+typedef struct axis2c_om_comment_t
+{
+	char *value;
+}axis2c_om_comment_t;
+
+axis2c_node_t *axis2c_create_om_comment(const char *value);
+
+void axis2c_free_om_comment(axis2c_om_comment_t *comment_node);
+
+char *axis2c_om_comment_get_value(axis2c_node_t *comment_node);
+
+void axis2c_om_comment_set_value(axis2c_node_t *comment_node,const char *value);
+
+
+#endif // AXIS2C_OM_COMMENT_H
+
+
+
+
+
+

Propchange: webservices/axis2/trunk/c/include/axis2c_om_comment.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/include/axis2c_om_container.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_om_container.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_om_container.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_om_container.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <axis2c_node.h>
+
+struct om_container_s;
+typedef struct om_container_s om_container_t;
+
+struct om_container_s {
+    node_t *tree;
+};

Added: webservices/axis2/trunk/c/include/axis2c_om_doctype.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_om_doctype.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_om_doctype.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_om_doctype.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2C_OM_DOCTYPE_H
+#define AXIS2C_OM_DOCTYPE_H
+#include <axis2c_node.h>
+
+
+typedef struct axis2c_om_doctype_t
+{
+	char *value;
+}axis2c_om_doctype_t;
+
+axis2c_node_t *create_om_doctype(axis2c_node_t *parent,const char *value);
+
+axis2c_node_t *create_empty_om_doctype(axis2c_node_t *parent);
+
+void free_om_doctype(axis2c_om_doctype_t *om_doc);
+
+char *om_doctype_get_value(axis2c_node_t *doctype_node);
+
+void om_doctype_set_value(axis2c_node_t *doctype_node,const char *value);
+
+#endif				//  AXIS2C_OM_DOCTYPE_H

Added: webservices/axis2/trunk/c/include/axis2c_om_document.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_om_document.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_om_document.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_om_document.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2C_OM_DOCUMENT_H
+#define AXIS2C_OM_DOCUMENT_H
+#include <axis2c_node.h>
+
+//typedef struct axis2c_stax_om_builder_t axis2c_stax_om_builder_t;
+
+
+#define CHAR_SET_ENCODING "UTF-8"
+#define XML_VERSION	"1.0"
+
+
+typedef struct axis2c_om_document_t
+{
+	axis2c_node_t *root_element;
+	axis2c_node_t *first_child;
+	axis2c_node_t *last_child;
+	int done;
+	axis2c_stax_om_builder_t *builder;
+	char *char_set_encoding;
+	char *xml_version;
+
+}axis2c_om_document_t;
+
+
+axis2c_om_document_t *axis2c_create_om_document_with_root(axis2c_node_t *root_ele,axis2c_stax_om_builder_t *builder);
+
+axis2c_om_document_t *axis2c_create_om_document(axis2c_stax_om_builder_t *builder);
+
+void axis2c_free_om_document(axis2c_om_document_t *document);
+
+axis2c_node_t *axis2c_om_document_get_document_element();
+
+void axis2c_om_document_set_charset_encoding(axis2c_om_document_t *document,char *charset_encoding);
+
+void axis2c_om_document_add_child(axis2c_om_document_t *document,axis2c_node_t *child);
+
+#endif // AXIS2C_OM_DOCUMENT_H
+

Propchange: webservices/axis2/trunk/c/include/axis2c_om_document.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/include/axis2c_om_element.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_om_element.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_om_element.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_om_element.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,96 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2C_OM_ELEMENT_H
+#define AXIS2C_OM_ELEMENT_H
+
+#include <axis2c_om_namespace.h>
+#include <axis2c_om_attribute.h>
+#include <axis2c_node.h>
+#include <apr.h>
+#include <apr_hash.h>
+
+
+
+typedef struct axis2c_om_element_t{
+	axis2c_om_namespace_t *ns;			// current namespace
+	char *localname;			
+	int pns_counter;            // prefix namespace counter
+	apr_hash_t *attributes;     // a hashtable for storing attributes 
+	apr_hash_t *namespaces;		// hashtable for storing namespaces
+}axis2c_om_element_t;
+
+
+/*
+*	Create an om element using localname and namespace
+*
+*/
+axis2c_node_t *axis2c_create_om_element(const char *localname,axis2c_om_namespace_t *ns);
+/*
+*	create om element using localname namespace and parent element
+*
+*/
+axis2c_node_t *axis2c_create_om_element_with_parent(const char *localname,axis2c_om_namespace_t *ns,axis2c_node_t *parent);
+
+
+axis2c_node_t *axis2c_create_om_element_with_qname_parent(axis2c_qname_t *qname,axis2c_node_t *parent);
+/*
+*	Find a namespace in the scope of the document 
+*	start to find from current element and go up the hierarchy
+*
+*/
+axis2c_om_namespace_t *axis2c_om_element_find_namespace(
+			axis2c_node_t *element_node, const char *uri,const char *prefix);
+/*
+declare a namespace in current element
+*/
+
+axis2c_om_namespace_t *axis2c_om_element_declare_namespace(axis2c_node_t *element_node,axis2c_om_namespace_t *ns);
+
+
+axis2c_om_namespace_t *axis2c_om_element_find_declared_namespace(axis2c_node_t *element_node,const char *uri,const char *prefix);
+
+
+axis2c_om_attribute_t *axis2c_om_element_add_attribute(axis2c_node_t *element_node,axis2c_om_attribute_t *attribute);
+
+
+axis2c_om_attribute_t *axis2c_om_element_get_attribute(axis2c_node_t *element_node,axis2c_qname_t *qname);
+
+
+axis2c_om_attribute_t *axis2c_om_attribute_add_attribute_with_namespace(
+		axis2c_node_t* element_node,const char *attribute_name,const char *value,axis2c_om_namespace_t *ns);
+
+
+static char* axis2c_construct_key_from_qname(axis2c_qname_t *qname);
+
+
+static axis2c_om_namespace_t *axis2c_om_element_handle_namespace_with_qname(axis2c_node_t *element_node,axis2c_qname_t *qname);
+/*
+void om_element_remove_attribute(om_element_t *element,om_attribute_t *attribute);
+*/
+void axis2c_om_element_set_namespace(axis2c_node_t *element_node,axis2c_om_namespace_t *ns);
+
+axis2c_om_namespace_t *axis2c_om_element_declare_namespace_with_nsuri_prefix(axis2c_node_t *element_node,const char* uri,const char *prefix);
+
+void axis2c_free_om_element(axis2c_om_element_t *element);
+
+void axis2c_om_element_set_localname(axis2c_node_t *element_node,const char *localname);
+
+char *axis2c_om_element_get_localname(axis2c_node_t *element_node);
+
+
+
+#endif				// _AXISC_OM_ELEMENT

Added: webservices/axis2/trunk/c/include/axis2c_om_namespace.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_om_namespace.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_om_namespace.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_om_namespace.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2C_OM_NAMESPACE_H
+#define AXIS2C_OM_NAMESPACE_H
+
+typedef struct axis2c_om_namespace_t {
+    char *uri;
+    char *prefix;
+} axis2c_om_namespace_t;
+
+
+axis2c_om_namespace_t *axis2c_create_om_namespace(const char *uri,  const char *prefix);
+void axis2c_free_om_namespace(axis2c_om_namespace_t * ns);
+int axis2c_om_namespace_equals(axis2c_om_namespace_t * ns1, axis2c_om_namespace_t * ns2);
+
+#endif	// AXIS2C_OM_NAMESPACE

Propchange: webservices/axis2/trunk/c/include/axis2c_om_namespace.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/include/axis2c_om_text.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_om_text.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_om_text.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_om_text.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2C_OM_TEXT_H
+#define AXIS2C_OM_TEXT_H
+#include <axis2c_om_attribute.h>
+
+typedef struct axis2c_om_text_t
+{
+	char *value;
+	
+	char *mime_type;
+	int optimize;
+	int is_binary;
+	char *content_id;
+	axis2c_om_attribute_t *attribute;
+
+}axis2c_om_text_t;
+
+axis2c_node_t *axis2c_create_om_text(const char *value);
+
+char* axis2c_om_text_get_text(axis2c_om_text_t *textnode);
+axis2c_node_t *axis2c_create_om_text_with_parent(axis2c_node_t *parent,const char *value);
+
+
+
+
+
+
+
+#endif // AXIS2C_OM_TEXT_H
+
+

Propchange: webservices/axis2/trunk/c/include/axis2c_om_text.h
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/include/axis2c_qname.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_qname.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_qname.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_qname.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXISC_QNAME_H
+#define AXISC_QNAME_H
+
+static const char XML_NAMESPACE_URI[] ="http://www.w3c.org/XML/1998/namespace";
+
+typedef struct axis2c_qname_t{
+	char *localpart;
+	char *ns_uri;
+	char *prefix;
+	
+}axis2c_qname_t;
+
+axis2c_qname_t *axis2c_create_qname(const char *localname,const char *ns_uri,const char *prefix);
+void axis2c_free_qname(axis2c_qname_t *qn);
+
+#endif // AXISC_QNAME_H
+

Added: webservices/axis2/trunk/c/include/axis2c_stax_ombuilder.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_stax_ombuilder.h?rev=292110&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_stax_ombuilder.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_stax_ombuilder.h Tue Sep 27 20:42:52 2005
@@ -0,0 +1,83 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2C_STAX_OMBUILDER_H
+#define AXIS2C_STAX_OMBUILDER_H
+
+#define XMLNS_URI "http://www.w3.org/XML/1998/namespace"
+#define XMLNS_PREFIX "xml"
+
+#include <xmlpullparser.h>
+#include <axis2c_node.h>
+#include <axis2c_om_document.h>
+
+struct axis2c_stax_om_builder_s
+{
+	XML_PullParser	*parser;	
+	axis2c_node_t	*lastnode;
+	axis2c_om_document_t   *document;
+	int	done;
+	int	parser_accessed;
+	int	cache;
+
+};
+
+
+axis2c_stax_om_builder_t *axis2c_create_stax_om_builder(XML_PullParser *parser);
+
+axis2c_stax_om_builder_t *axis2c_create_stax_om_builder(XML_PullParser *parser);
+
+axis2c_node_t *axis2c_stax_om_builder_create_om_element(axis2c_stax_om_builder_t *builder);
+
+axis2c_node_t *axis2c_stax_om_builder_create_om_comment(axis2c_stax_om_builder_t *builder);
+
+axis2c_node_t *axis2c_stax_om_builder_create_om_doctype(axis2c_stax_om_builder_t *builder_t);
+
+axis2c_node_t *axis2c_stax_om_builder_create_om_pi(axis2c_stax_om_builder_t *builder);
+
+void axis2c_stax_om_builder_end_element(axis2c_stax_om_builder_t *builder);
+
+void axis2c_stax_om_builder_process_attributes(axis2c_stax_om_builder_t *builder,axis2c_node_t *element_node);
+
+axis2c_node_t *axis2c_stax_om_builder_create_om_text(axis2c_stax_om_builder_t *builder);
+
+void axis2c_stax_om_builder_discard(axis2c_stax_om_builder_t *builder,axis2c_node_t *element_node);
+
+void axis2c_stax_om_builder_end_element(axis2c_stax_om_builder_t *builder);
+
+int axis2c_stax_om_builder_next(axis2c_stax_om_builder_t *builder);
+
+axis2c_node_t *axis2c_stax_om_builder_get_document_element(axis2c_stax_om_builder_t *builder);
+
+axis2c_node_t *axis2c_stax_om_builder_process_namespace_data(axis2c_stax_om_builder_t *builder,axis2c_node_t *element,int is_soap_element);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#endif // AXIS2C_STAX_OMBUILDER_H
+