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 na...@apache.org on 2006/03/20 04:56:00 UTC
svn commit: r387127 [3/5] - in /webservices/axis2/trunk/c: include/
modules/core/deployment/ modules/xml/om/ modules/xml/soap/ test/unit/
test/xml/om/
Modified: webservices/axis2/trunk/c/include/axis2_om_element.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_element.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_element.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_element.h Sun Mar 19 19:55:55 2006
@@ -60,12 +60,12 @@
* @return pointer to the namespace, if found, else NULL. On error, returns
* NULL and sets error code in environment,s error
*/
- axis2_om_namespace_t* (AXIS2_CALL *find_namespace)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_node_t *node,
- const axis2_char_t *uri,
- const axis2_char_t *prefix);
+ axis2_om_namespace_t* (AXIS2_CALL *
+ find_namespace)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_om_node_t *node,
+ const axis2_char_t *uri,
+ const axis2_char_t *prefix);
/**
* Declare a namespace in current element (in the scope of this element ).
* It checks to see if it is already declared.
@@ -75,11 +75,11 @@
* @param ns pointer to the namespace struct to be declared
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE.
*/
- axis2_status_t (AXIS2_CALL *declare_namespace)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_node_t *node,
- axis2_om_namespace_t * ns);
+ axis2_status_t (AXIS2_CALL *
+ declare_namespace)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_om_node_t *node,
+ axis2_om_namespace_t * ns);
/**
* Finds a namespace using qname
* Start to find from the given node and go up the hierarchy.
@@ -90,11 +90,11 @@
* @return pointer to the namespace, if found, else NULL. On error, returns
* NULL and sets the error code in environment's error struct.
*/
- axis2_om_namespace_t *(AXIS2_CALL *find_namespace_with_qname)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_node_t *node,
- axis2_qname_t *qname);
+ axis2_om_namespace_t *(AXIS2_CALL *
+ find_namespace_with_qname)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_om_node_t *node,
+ axis2_qname_t *qname);
/**
* Adds an attribute to current element
@@ -104,10 +104,11 @@
* @param node axis2_om_node_t node that om_element is contained in
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE.
*/
- axis2_status_t (AXIS2_CALL *add_attribute)(axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_attribute_t *attribute,
- axis2_om_node_t *node);
+ axis2_status_t (AXIS2_CALL *
+ add_attribute)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_om_attribute_t *attribute,
+ axis2_om_node_t *node);
/**
* Gets (finds) the attribute with the given qname
@@ -117,10 +118,10 @@
* @return a pointer to the attribute with given qname if found, else NULL.
* On error, returns NULL and sets the error code in environment's error struct.
*/
- axis2_om_attribute_t *(AXIS2_CALL *get_attribute)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_qname_t * qname);
+ axis2_om_attribute_t *(AXIS2_CALL *
+ get_attribute) (axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_qname_t * qname);
/**
* Frees given element
@@ -128,8 +129,9 @@
* @param env Environment. MUST NOT be NULL.
* @return satus of the op. AXIS2_SUCCESS on success ,AXIS2_FAILURE on error.
*/
- axis2_status_t (AXIS2_CALL *free) (axis2_om_element_t *element,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free) (axis2_om_element_t *element,
+ axis2_env_t **env);
/**
* Serializes the start part of the given element
@@ -138,10 +140,10 @@
* @param om_output OM output handler to be used in serializing
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *serialize_start_part)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_output_t * om_output);
+ axis2_status_t (AXIS2_CALL *
+ serialize_start_part)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_om_output_t * om_output);
/**
* Serializes the end part of the given element. serialize_start_part must
@@ -151,10 +153,10 @@
* @param om_output OM output handler to be used in serializing
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *serialize_end_part)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_output_t * om_output);
+ axis2_status_t (AXIS2_CALL *
+ serialize_end_part)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_om_output_t * om_output);
/**
* finds a namespace in current elements scope
* @param om_element
@@ -164,11 +166,11 @@
* @return axis2_om_namespace_t if found, else return NULL
*/
- axis2_om_namespace_t* (AXIS2_CALL *find_declared_namespace)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- const axis2_char_t *uri,
- const axis2_char_t *prefix);
+ axis2_om_namespace_t* (AXIS2_CALL *
+ find_declared_namespace)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ const axis2_char_t *uri,
+ const axis2_char_t *prefix);
/**
@@ -177,8 +179,9 @@
* @param env environment struct
* @returns localname of element, returns NULL on error.
*/
- axis2_char_t* (AXIS2_CALL *get_localname)(axis2_om_element_t *om_element,
- axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_localname)(axis2_om_element_t *om_element,
+ axis2_env_t **env);
/**
* set the localname of this element
* @param om_element om_element_struct to with localname is set
@@ -187,9 +190,10 @@
* @returns status code of op, AXIS2_SUCCESS on success,
* AXIS2_FAILURE on error.
*/
- axis2_status_t (AXIS2_CALL *set_localname)(axis2_om_element_t *om_element,
- axis2_env_t **env,
- const axis2_char_t *localname);
+ axis2_status_t (AXIS2_CALL *
+ set_localname)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ const axis2_char_t *localname);
/**
* get the namespace of om_element
* @param om_element om_element struct
@@ -198,9 +202,9 @@
* NULL if there is no namespace associated with the element,
* NULL on error with error code set to environment's error
*/
- axis2_om_namespace_t *(AXIS2_CALL *get_namespace)
- (axis2_om_element_t *om_element,
- axis2_env_t **env);
+ axis2_om_namespace_t *(AXIS2_CALL *
+ get_namespace)(axis2_om_element_t *om_element,
+ axis2_env_t **env);
/**
* set the namespace of the element
* @param om_element Om_element struct
@@ -209,10 +213,11 @@
* @returns status code of the op , NULL on error with error code
* set to environment's error
*/
- axis2_status_t (AXIS2_CALL *set_namespace)(axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_namespace_t *ns,
- axis2_om_node_t *node);
+ axis2_status_t (AXIS2_CALL *
+ set_namespace)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_om_namespace_t *ns,
+ axis2_om_node_t *node);
/**
* get the attribute list of the element
* @param om_element om element
@@ -220,9 +225,9 @@
* @returns axis2_hash poiner to attributes hash
* This hash table is read only
*/
- axis2_hash_t* (AXIS2_CALL *get_all_attributes)
- (axis2_om_element_t *om_element,
- axis2_env_t **env);
+ axis2_hash_t* (AXIS2_CALL *
+ get_all_attributes)(axis2_om_element_t *om_element,
+ axis2_env_t **env);
/**
* get the namespace list of the element
* @param om_element om element
@@ -230,44 +235,55 @@
* @returns axis2_hash pointer to namespaces hash
* this hash table is read only
*/
- axis2_hash_t* (AXIS2_CALL *get_all_namespaces)
- (axis2_om_element_t *om_element,
- axis2_env_t **env);
- /**
- *@return qname of this element
+ axis2_hash_t* (AXIS2_CALL *
+ get_namespaces)(axis2_om_element_t *om_element,
+ axis2_env_t **env);
+ /**
+ *@return qname of this element
+ * the returned qname should not be externaly freed
+ * when om_element struct is freed qname is also
+ * freed
+ * @returns axis2_qname_t struct , NULL on failure
*/
- axis2_qname_t* (AXIS2_CALL *get_qname)(axis2_om_element_t *om_element,
- axis2_env_t **env);
+ axis2_qname_t* (AXIS2_CALL *
+ get_qname)(axis2_om_element_t *om_element,
+ axis2_env_t **env);
/**
* returns a list of children iterator
* iterators free function must be called by user
*/
- axis2_om_children_iterator_t*(AXIS2_CALL *get_children)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_node_t *element_node);
+ axis2_om_children_iterator_t*(AXIS2_CALL *
+ get_children)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_om_node_t *element_node);
/**
* returns a list of children iterator with qname
- * returned iterator's free function must be called by user
+ * returned iterator is freed when om element struct
+ * is freed
+ * @param om_element
+ * @param env
+ * @param element_qname
+ * @param element_node
+ * @returns children qname iterator struct
*/
- axis2_om_children_qname_iterator_t *(AXIS2_CALL *get_children_with_qname)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_qname_t *element_qname,
- axis2_om_node_t* element_node);
+ axis2_om_children_qname_iterator_t *(AXIS2_CALL *
+ get_children_with_qname)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_qname_t *element_qname,
+ axis2_om_node_t* element_node);
/**
* returns the om_element corresponding to element_qname
*/
- axis2_om_element_t* (AXIS2_CALL *get_first_child_with_qname)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_qname_t *element_qname,
- axis2_om_node_t* element_node,
- axis2_om_node_t **child_node);
+ axis2_om_element_t* (AXIS2_CALL *
+ get_first_child_with_qname)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_qname_t *element_qname,
+ axis2_om_node_t* element_node,
+ axis2_om_node_t **child_node);
/**
* removes an attribute from the element attribute list
* user must free this attribute, element free function does not free
@@ -278,19 +294,20 @@
* @return AXIS2_SUCCESS if attribute was found and removed, else
* AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *remove_attribute)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_attribute_t *om_attribute);
+ axis2_status_t (AXIS2_CALL *
+ remove_attribute)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_om_attribute_t *om_attribute);
/**
* Sets the text of the given element.
*caution - This method will wipe out all the text elements (and hence any
* mixed content) before setting the text
*/
- axis2_status_t (AXIS2_CALL *set_text)(axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_char_t *text,
- axis2_om_node_t *element_node);
+ axis2_status_t (AXIS2_CALL *
+ set_text)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_char_t *text,
+ axis2_om_node_t *element_node);
/**
* select all the text children and concat them to a single string
* @param element node , the container node of this om element
@@ -299,8 +316,8 @@
*/
axis2_char_t* (AXIS2_CALL *
get_text)(axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_node_t *element_node);
+ axis2_env_t **env,
+ axis2_om_node_t *element_node);
/**
* returns the first child om element of this om element node
@@ -319,21 +336,34 @@
*/
axis2_char_t* (AXIS2_CALL *
to_string)(axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_node_t *element_node);
+ axis2_env_t **env,
+ axis2_om_node_t *element_node);
/**
* returns an iterator with child elements of type AXIS2_OM_ELEMENT
- * iterator must be freed by user
+ * iterator is freed when om_element node is freed
* @param om_element
* @param element_node
* @param env enviroment must not be null
* @returns axis2_om_child_element_iterator_t , NULL on error
*/
axis2_om_child_element_iterator_t* (AXIS2_CALL *
- get_child_elements)
- (axis2_om_element_t *om_element,
- axis2_env_t **env,
- axis2_om_node_t *element_node);
+ get_child_elements)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_om_node_t *element_node);
+ /**
+ * builds this om_element_node completely, This is only possible
+ * if the om_stax_builder is associated with the om_element_node,
+ * @param om_element om_element struct
+ * @param env environment
+ * @param element_node corresponding om element node of this om element
+ * struct
+ * @returns AXIS2_SUCCESS if this element node was successfully completed,
+ * otherwise returns AXIS2_FAILURE
+ */
+ axis2_status_t (AXIS2_CALL *
+ build)(axis2_om_element_t *om_element,
+ axis2_env_t **env,
+ axis2_om_node_t *element_node);
};
@@ -436,8 +466,8 @@
#define AXIS2_OM_ELEMENT_GET_ALL_ATTRIBUTES(om_element, env) \
((om_element)->ops->get_all_attributes(om_element, env))
-#define AXIS2_OM_ELEMENT_GET_ALL_NAMESPACES(om_element, env) \
- ((om_element)->ops->get_all_namespaces(om_element, env))
+#define AXIS2_OM_ELEMENT_GET_NAMESPACES(om_element, env) \
+ ((om_element)->ops->get_namespaces(om_element, env))
#define AXIS2_OM_ELEMENT_GET_CHILDREN(om_element, env, element_node) \
((om_element)->ops->get_children(om_element, env, element_node))
@@ -468,7 +498,10 @@
((om_element)->ops->to_string(om_element, env, element_node))
#define AXIS2_OM_ELEMENT_GET_CHILD_ELEMENTS(om_element, env, element_node) \
- ((om_element)->ops->get_child_elements(om_element, env, element_node))
+ ((om_element)->ops->get_child_elements(om_element, env, element_node))
+
+#define AXIS2_OM_ELEMENT_BUILD(om_element, env, element_node) \
+ ((om_element)->ops->build(om_element, env, element_node))
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_om_namespace.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_namespace.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_namespace.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_namespace.h Sun Mar 19 19:55:55 2006
@@ -53,8 +53,9 @@
* @param env Environment. MUST NOT be NULL.
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE.
*/
- axis2_status_t (AXIS2_CALL *free) (struct axis2_om_namespace *om_namespace,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free) (struct axis2_om_namespace *om_namespace,
+ axis2_env_t **env);
/**
* Compares two namepsaces
@@ -63,9 +64,10 @@
* @param om_namespace1 second namespace to be compared
* @return AXIS2_TRUE if the two namespaces are equal,AXIS2_FALSE otherwise
*/
- axis2_bool_t (AXIS2_CALL *equals)(struct axis2_om_namespace *om_namespace,
- axis2_env_t **env,
- struct axis2_om_namespace *om_namespace1);
+ axis2_bool_t (AXIS2_CALL *
+ equals)(struct axis2_om_namespace *om_namespace,
+ axis2_env_t **env,
+ struct axis2_om_namespace *om_namespace1);
/**
* Serializes given namespace
@@ -74,23 +76,26 @@
* @param om_output OM output handler to be used in serializing
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE.
*/
- axis2_status_t (AXIS2_CALL *serialize)(struct axis2_om_namespace *om_namespace,
- axis2_env_t **env,
- axis2_om_output_t * om_output);
+ axis2_status_t (AXIS2_CALL *
+ serialize)(struct axis2_om_namespace *om_namespace,
+ axis2_env_t **env,
+ axis2_om_output_t * om_output);
/**
*@param om_namespace pointer to om_namespace struct
*@param env environment , MUST NOT be NULL.
*@returns namespace uri , NULL on error
*/
- axis2_char_t* (AXIS2_CALL *get_uri)(struct axis2_om_namespace *om_namespace,
- axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_uri)(struct axis2_om_namespace *om_namespace,
+ axis2_env_t **env);
/**
*@param om_namespace pointer to om namespace struct
*@param env environment, MUST NOT be NULL
*@return prefix , NULL on error
*/
- axis2_char_t* (AXIS2_CALL *get_prefix)(struct axis2_om_namespace *om_namespace,
- axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_prefix)(struct axis2_om_namespace *om_namespace,
+ axis2_env_t **env);
} axis2_om_namespace_ops_t;
Modified: webservices/axis2/trunk/c/include/axis2_om_node.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_node.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_node.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_node.h Sun Mar 19 19:55:55 2006
@@ -85,8 +85,9 @@
* @param env Environment. MUST NOT be NULL, .
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *free) (axis2_om_node_t *om_node,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free) (axis2_om_node_t *om_node,
+ axis2_env_t **env);
/**
* Adds given node as child to parent. child should not have a parent
* if child has a parent it will be detached from existing parent
@@ -95,9 +96,10 @@
* @param child child node.
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *add_child) (axis2_om_node_t* om_node,
- axis2_env_t **env,
- axis2_om_node_t *child);
+ axis2_status_t (AXIS2_CALL *
+ add_child) (axis2_om_node_t* om_node,
+ axis2_env_t **env,
+ axis2_om_node_t *child);
/**
* Detaches given node from the parent and reset the links
@@ -106,8 +108,9 @@
* @return a pointer to detached node,returns NULL on error with error
* code set to environment's error struct
*/
- axis2_om_node_t *(AXIS2_CALL *detach) (axis2_om_node_t *om_node,
- axis2_env_t **env);
+ axis2_om_node_t *(AXIS2_CALL *
+ detach) (axis2_om_node_t *om_node,
+ axis2_env_t **env);
/**
* Inserts a sibling node after the given node
@@ -116,10 +119,10 @@
* @param node_to_insert the node to be inserted. , cannot be NULL.
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *insert_sibling_after)
- (axis2_om_node_t *om_node,
- axis2_env_t **env,
- axis2_om_node_t * node_to_insert);
+ axis2_status_t (AXIS2_CALL *
+ insert_sibling_after)(axis2_om_node_t *om_node,
+ axis2_env_t **env,
+ axis2_om_node_t * node_to_insert);
/**
* Inserts a sibling node before the given current node
@@ -128,10 +131,10 @@
* @param node_to_insert the node to be inserted. , cannot be NULL.
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *insert_sibling_before)
- (axis2_om_node_t *om_node,
- axis2_env_t **env,
- axis2_om_node_t * node_to_insert);
+ axis2_status_t (AXIS2_CALL *
+ insert_sibling_before)(axis2_om_node_t *om_node,
+ axis2_env_t **env,
+ axis2_om_node_t * node_to_insert);
/**
* Serializes the given node. This op makes the node go
@@ -141,10 +144,11 @@
* @param om_output OM output handler to be used in serializing
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *serialize)
- (axis2_om_node_t * om_node,
- axis2_env_t **env,
- struct axis2_om_output *om_output);
+ axis2_status_t (AXIS2_CALL *
+ serialize)(axis2_om_node_t * om_node,
+ axis2_env_t **env,
+ struct axis2_om_output *om_output);
+
/** get parent of om_node
*@om_node node
*@param env environment
@@ -152,9 +156,9 @@
* when an error occured.
*/
- axis2_om_node_t * (AXIS2_CALL *get_parent)
- (axis2_om_node_t *om_node,
- axis2_env_t **env);
+ axis2_om_node_t * (AXIS2_CALL *
+ get_parent)(axis2_om_node_t *om_node,
+ axis2_env_t **env);
/**
* get the first child of om_node
@@ -163,18 +167,18 @@
* @returns pointer to first child node , NULL is returned on error with
* error code set in environments error
*/
- axis2_om_node_t * (AXIS2_CALL *get_first_child)
- (axis2_om_node_t *om_node,
- axis2_env_t **env);
+ axis2_om_node_t * (AXIS2_CALL *
+ get_first_child)(axis2_om_node_t *om_node,
+ axis2_env_t **env);
/**
* get the last child
* @param om_node node
* @param env environment, MUST NOT be NULL
* @return pointer to last child of this node , return NULL on error.
*/
- axis2_om_node_t * (AXIS2_CALL *get_last_child)
- (axis2_om_node_t *om_node,
- axis2_env_t **env);
+ axis2_om_node_t * (AXIS2_CALL *
+ get_last_child)(axis2_om_node_t *om_node,
+ axis2_env_t **env);
/**
* get the previous sibling
* @param om_node om_node struct
@@ -182,18 +186,18 @@
* @returns a pointer to previous sibling , NULL if a previous sibling does not exits
* (happens when this node is the first child of a node )
*/
- axis2_om_node_t * (AXIS2_CALL *get_previous_sibling)
- (axis2_om_node_t *om_node,
- axis2_env_t **env);
+ axis2_om_node_t * (AXIS2_CALL *
+ get_previous_sibling)(axis2_om_node_t *om_node,
+ axis2_env_t **env);
/**
* get next sibling
* @param om_node om_node struct
* @param env environment, MUST NOT be NULL.
* @return next sibling of this node.
*/
- axis2_om_node_t * (AXIS2_CALL *get_next_sibling)
- (axis2_om_node_t *om_node,
- axis2_env_t **env);
+ axis2_om_node_t * (AXIS2_CALL *
+ get_next_sibling)(axis2_om_node_t *om_node,
+ axis2_env_t **env);
/**
* get the node type of this element
* Node type can be one of AXIS2_OM_ELEMENT, AXIS2_OM_COMMENT, AXIS2_OM_TEXT
@@ -202,9 +206,9 @@
* @param env environment
* @return node type
*/
- axis2_om_types_t (AXIS2_CALL *get_node_type)
- (axis2_om_node_t *om_node,
- axis2_env_t **env);
+ axis2_om_types_t (AXIS2_CALL *
+ get_node_type)(axis2_om_node_t *om_node,
+ axis2_env_t **env);
/**
* get the struct contained in the node
* IF the node is on type AXIS2_OM_ELEMENT , this method returns
@@ -214,8 +218,9 @@
* @returns pointer to struct contained in the node
* returns NULL if no struct is contained
*/
- void* (AXIS2_CALL *get_data_element)(axis2_om_node_t *om_node,
- axis2_env_t **env);
+ void* (AXIS2_CALL *
+ get_data_element)(axis2_om_node_t *om_node,
+ axis2_env_t **env);
/**
* get_build_status
* @param om_node om_node struct
@@ -223,9 +228,9 @@
* @returns AXIS2_TRUE if node is completly build,
* AXIS2_FALSE if node is not completed
*/
- axis2_bool_t (AXIS2_CALL *get_build_status)
- (axis2_om_node_t *om_node,
- axis2_env_t **env);
+ axis2_bool_t (AXIS2_CALL *
+ get_build_status)(axis2_om_node_t *om_node,
+ axis2_env_t **env);
/**
* returns the associated document,
* only valid if built using builder and for a node of type
@@ -234,21 +239,9 @@
* @param om_node
* @param env environment, MUST NOT be NULL.
*/
- struct axis2_om_document* (AXIS2_CALL *get_document)
- (axis2_om_node_t *om_node,
- axis2_env_t **env);
- /**
- * build the next node using document's build_next function
- * only valid if building is done through builder
- * [ a document and a builder should be associated with node ]
- * @param om_node
- * @param env environemnt must not be null
- * @return the next node built , returns null if document is completely
- * built
- */
- axis2_om_node_t* (AXIS2_CALL *build_next)(axis2_om_node_t *om_node,
- axis2_env_t **env);
-
+ struct axis2_om_document* (AXIS2_CALL *
+ get_document)(axis2_om_node_t *om_node,
+ axis2_env_t **env);
} axis2_om_node_ops_t;
@@ -273,12 +266,14 @@
axis2_om_node_create (axis2_env_t **env);
/** frees given node */
-#define AXIS2_OM_NODE_FREE_TREE(om_node,env) ((om_node)->ops->free(om_node,env))
+#define AXIS2_OM_NODE_FREE_TREE(om_node,env) \
+ ((om_node)->ops->free(om_node,env))
/** adds given child to the given parent */
#define AXIS2_OM_NODE_ADD_CHILD(om_node, env, child) \
((om_node)->ops->add_child(om_node, env, child))
/** detaches the given node from its parent */
-#define AXIS2_OM_NODE_DETACH(om_node,env) ((om_node)->ops->detach(om_node,env))
+#define AXIS2_OM_NODE_DETACH(om_node,env) \
+ ((om_node)->ops->detach(om_node,env))
/** inserts a sibling after the given node */
#define AXIS2_OM_NODE_INSERT_SIBLING_AFTER(om_node,env,node_to_insert) \
((om_node)->ops->insert_sibling_after(om_node,env,node_to_insert))
@@ -315,9 +310,6 @@
/** get document */
#define AXIS2_OM_NODE_GET_DOCUMENT(om_node, env) \
((om_node)->ops->get_document(om_node, env))
-/** built next */
-#define AXIS2_OM_NODE_BUILD_NEXT(om_node, env) \
- ((om_node)->ops->build_next(om_node, env))
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_om_output.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_output.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_output.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_output.h Sun Mar 19 19:55:55 2006
@@ -55,62 +55,91 @@
*@return status code AXIS2_SUCCESS on success,
* AXIS2_FAILURE otherwise
*/
- axis2_status_t (AXIS2_CALL *free_fn)
- (axis2_om_output_t *om_output,
- axis2_env_t **env);
-
- axis2_bool_t (AXIS2_CALL *is_soap11)
- (axis2_om_output_t *om_output,
- axis2_env_t **env);
-
- axis2_bool_t (AXIS2_CALL *is_ignore_xml_declaration)
- (axis2_om_output_t *om_output,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free_fn)(axis2_om_output_t *om_output,
+ axis2_env_t **env);
+
+ /**
+ * If the xml to be serialized is soap 11, this property is set to true
+ */
+ axis2_bool_t (AXIS2_CALL *
+ is_soap11)(axis2_om_output_t *om_output,
+ axis2_env_t **env);
+ /**
+ * @returns true if the ignore_xml_declaration property is true
+ */
+ axis2_bool_t (AXIS2_CALL *
+ is_ignore_xml_declaration)(axis2_om_output_t *om_output,
+ axis2_env_t **env);
- axis2_status_t (AXIS2_CALL *set_ignore_xml_declaration)
- (axis2_om_output_t *om_output,
- axis2_env_t **env,
- axis2_bool_t ignore_xml_dec);
-
- axis2_status_t (AXIS2_CALL *set_soap11)
- (axis2_om_output_t *om_output,
- axis2_env_t **env,
- axis2_bool_t soap11);
-
- axis2_status_t (AXIS2_CALL *set_xml_version)
- (axis2_om_output_t *om_output,
- axis2_env_t **env,
- axis2_char_t *xml_version);
-
- axis2_char_t* (AXIS2_CALL *get_xml_version)
- (axis2_om_output_t *om_output,
- axis2_env_t **env);
-
- axis2_status_t (AXIS2_CALL *set_char_set_encoding)
- (axis2_om_output_t *om_output,
- axis2_env_t **env,
- axis2_char_t *char_set_encoding);
-
- axis2_char_t* (AXIS2_CALL *get_char_set_encoding)
- (axis2_om_output_t *om_output,
- axis2_env_t **env);
-
- axis2_status_t (AXIS2_CALL *set_do_optimize)
- (axis2_om_output_t *om_output,
- axis2_env_t **env,
- axis2_bool_t optimize);
-
- axis2_xml_writer_t* (AXIS2_CALL *get_xml_writer)
- (axis2_om_output_t *om_output,
- axis2_env_t **env);
-
- axis2_char_t* (AXIS2_CALL *get_content_type)
- (axis2_om_output_t *om_output,
- axis2_env_t **env);
-
- axis2_status_t (AXIS2_CALL *write_xml_version_encoding)
- (axis2_om_output_t *om_output,
- axis2_env_t **env);
+ /**
+ * sets the ignore_xml_declaration property is true
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_ignore_xml_declaration)(axis2_om_output_t *om_output,
+ axis2_env_t **env,
+ axis2_bool_t ignore_xml_dec);
+ /**
+ * sets the soap11 property to true
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_soap11)(axis2_om_output_t *om_output,
+ axis2_env_t **env,
+ axis2_bool_t soap11);
+
+ /**
+ * set xml_version property
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_xml_version)(axis2_om_output_t *om_output,
+ axis2_env_t **env,
+ axis2_char_t *xml_version);
+ /**
+ * @returns xml version property
+ */
+ axis2_char_t* (AXIS2_CALL *
+ get_xml_version)(axis2_om_output_t *om_output,
+ axis2_env_t **env);
+ /**
+ * set the char set encoding property
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_char_set_encoding)(axis2_om_output_t *om_output,
+ axis2_env_t **env,
+ axis2_char_t *char_set_encoding);
+ /**
+ * @returns the char set encoding property
+ */
+ axis2_char_t* (AXIS2_CALL *
+ get_char_set_encoding)(axis2_om_output_t *om_output,
+ axis2_env_t **env);
+ /**
+ * set the do optimize property true
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_do_optimize)(axis2_om_output_t *om_output,
+ axis2_env_t **env,
+ axis2_bool_t optimize);
+
+ /**
+ * returns the xml writer
+ */
+ axis2_xml_writer_t* (AXIS2_CALL *
+ get_xml_writer)(axis2_om_output_t *om_output,
+ axis2_env_t **env);
+ /**
+ * returns the content_type property
+ */
+ axis2_char_t* (AXIS2_CALL *
+ get_content_type)(axis2_om_output_t *om_output,
+ axis2_env_t **env);
+
+ /**
+ * writes the xml versio encoding
+ */
+ axis2_status_t (AXIS2_CALL *
+ write_xml_version_encoding)(axis2_om_output_t *om_output,
+ axis2_env_t **env);
};
Modified: webservices/axis2/trunk/c/include/axis2_om_processing_instruction.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_processing_instruction.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_processing_instruction.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_processing_instruction.h Sun Mar 19 19:55:55 2006
@@ -53,9 +53,9 @@
* @param env Environment. MUST NOT be NULL, .
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *free)
- (struct axis2_om_processing_instruction * om_pi,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_om_processing_instruction * om_pi,
+ axis2_env_t **env);
/**
* set processing instruction data
*@param om_pi
@@ -63,10 +63,10 @@
*@param value
*/
- axis2_status_t (AXIS2_CALL *set_value)
- (struct axis2_om_processing_instruction *om_pi,
- axis2_env_t **env,
- const axis2_char_t* value);
+ axis2_status_t (AXIS2_CALL *
+ set_value)(struct axis2_om_processing_instruction *om_pi,
+ axis2_env_t **env,
+ const axis2_char_t* value);
/**
* set processing instruction target
*@param om_pi processing_instruction struct
@@ -76,28 +76,28 @@
* AXIS2_FAILURE on error.
*/
- axis2_status_t (AXIS2_CALL *set_target)
- (struct axis2_om_processing_instruction *om_pi,
- axis2_env_t **env,
- const axis2_char_t* target);
+ axis2_status_t (AXIS2_CALL *
+ set_target)(struct axis2_om_processing_instruction *om_pi,
+ axis2_env_t **env,
+ const axis2_char_t* target);
/**
* get PI target
* @param om_pi processing_instruction struct
* @param env environment
* @return target text , NULL on error or if target is null
*/
- axis2_char_t* (AXIS2_CALL *get_target)
- (struct axis2_om_processing_instruction *om_pi,
- axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_target)(struct axis2_om_processing_instruction *om_pi,
+ axis2_env_t **env);
/**
* get data part of processing_instruction
* @param om_pi processing instruction
* @param env environment , MUST NOT be NULL.
* @return data text , NULL if there is no data,
*/
- axis2_char_t* (AXIS2_CALL *get_value)
- (struct axis2_om_processing_instruction *om_pi,
- axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_value)(struct axis2_om_processing_instruction *om_pi,
+ axis2_env_t **env);
/**
* serialize function
@@ -107,9 +107,10 @@
* @return status of the op, AXIS2_SUCCESS on success,
* AXIS2_FAILURE on error
*/
- axis2_status_t (AXIS2_CALL *serialize)
- (struct axis2_om_processing_instruction *om_pi,
- axis2_env_t **env, axis2_om_output_t *om_output);
+ axis2_status_t (AXIS2_CALL *
+ serialize)(struct axis2_om_processing_instruction *om_pi,
+ axis2_env_t **env,
+ axis2_om_output_t *om_output);
} axis2_om_processing_instruction_ops_t;
Modified: webservices/axis2/trunk/c/include/axis2_om_stax_builder.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_stax_builder.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_stax_builder.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_stax_builder.h Sun Mar 19 19:55:55 2006
@@ -49,14 +49,16 @@
AXIS2_DECLARE_DATA typedef struct axis2_om_stax_builder_ops
{
/**
- * Builds the next node from stream. Moves pull parser forward and reacts to events.
+ * Builds the next node from stream. Moves pull parser forward and reacts
+ * to events.
* @param environment Environment. MUST NOT be NULL.
* @param builder pointer to stax builder struct to be used
* @return a pointer to the next node, or NULL if there are no more nodes.
* On erros sets the error and returns NULL.
*/
- axis2_om_node_t*(AXIS2_CALL *next) (struct axis2_om_stax_builder *builder,
- axis2_env_t **env);
+ axis2_om_node_t*(AXIS2_CALL *
+ next) (struct axis2_om_stax_builder *builder,
+ axis2_env_t **env);
/**
* Discards the element that is being built currently.
@@ -64,9 +66,9 @@
* @param builder pointer to stax builder struct to be used
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE.
*/
- axis2_status_t (AXIS2_CALL *discard_current_element)
- (struct axis2_om_stax_builder *builder,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ discard_current_element)(struct axis2_om_stax_builder *builder,
+ axis2_env_t **env);
/**
* Free op
* @param builder pointer to builder struct
@@ -75,8 +77,9 @@
* AXIS2_FAILURE on error.
*/
- axis2_status_t (AXIS2_CALL *free)(struct axis2_om_stax_builder *builder,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_om_stax_builder *builder,
+ axis2_env_t **env);
/** get the document associated with the builder
* @param builder axis2_om_stax_builder
@@ -85,9 +88,9 @@
* NULL if there is no document associated with the builder,
* NULL if an error occured.
*/
- axis2_om_document_t* (AXIS2_CALL *get_document)
- (struct axis2_om_stax_builder *builder,
- axis2_env_t **env);
+ axis2_om_document_t* (AXIS2_CALL *
+ get_document)(struct axis2_om_stax_builder *builder,
+ axis2_env_t **env);
/**
* set the document associated with the builder
* @param builder pointer to builder struct
@@ -98,20 +101,24 @@
* on error.
*/
- axis2_status_t (AXIS2_CALL *set_document)(struct axis2_om_stax_builder *builder,
- axis2_env_t **env,
- axis2_om_document_t *document);
+ axis2_status_t (AXIS2_CALL *
+ set_document)(struct axis2_om_stax_builder *builder,
+ axis2_env_t **env,
+ axis2_om_document_t *document);
/**
* builder is finished building om structure
*/
- axis2_bool_t (AXIS2_CALL *is_complete)(struct axis2_om_stax_builder* builder,
- axis2_env_t **env);
+ axis2_bool_t (AXIS2_CALL *
+ is_complete)(struct axis2_om_stax_builder* builder,
+ axis2_env_t **env);
/**
- * moves the reader to next event
+ * moves the reader to next event and returns the token returned
+ * by the xml_reader , returns -1 on error
*/
- int (AXIS2_CALL *next_with_token)(struct axis2_om_stax_builder *builder,
- axis2_env_t **env);
+ int (AXIS2_CALL *
+ next_with_token)(struct axis2_om_stax_builder *builder,
+ axis2_env_t **env);
} axis2_om_stax_builder_ops_t;
@@ -133,7 +140,7 @@
*/
AXIS2_DECLARE(axis2_om_stax_builder_t *)
axis2_om_stax_builder_create(axis2_env_t **env,
- axis2_xml_reader_t *parser);
+ axis2_xml_reader_t *parser);
/** builds next node */
Modified: webservices/axis2/trunk/c/include/axis2_om_text.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_text.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_text.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_text.h Sun Mar 19 19:55:55 2006
@@ -53,8 +53,9 @@
* @return satus of the op. AXIS2_SUCCESS on success
* AXIS2_FAILURE on error.
*/
- axis2_status_t (AXIS2_CALL *free) (struct axis2_om_text *om_text,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free) (struct axis2_om_text *om_text,
+ axis2_env_t **env);
/**
* Serialize op
@@ -64,9 +65,10 @@
* @return satus of the op. AXIS2_SUCCESS on success,
* AXIS2_FAILURE on error
*/
- axis2_status_t (AXIS2_CALL *serialize) (struct axis2_om_text *om_text,
- axis2_env_t **env,
- axis2_om_output_t *om_output);
+ axis2_status_t (AXIS2_CALL *
+ serialize) (struct axis2_om_text *om_text,
+ axis2_env_t **env,
+ axis2_om_output_t *om_output);
/**
* set the text value
* @param om_text om_text struct
@@ -75,17 +77,19 @@
* @return status of the op. AXIS2_SUCCESS on success,
* AXIS2_FAILURE on error.
*/
- axis2_status_t (AXIS2_CALL *set_value)(struct axis2_om_text *om_text,
- axis2_env_t **env,
- const axis2_char_t *value);
+ axis2_status_t (AXIS2_CALL *
+ set_value)(struct axis2_om_text *om_text,
+ axis2_env_t **env,
+ const axis2_char_t *value);
/**
* get text value
* @param om_text om_text struct
* @param env environment, MUST NOT be NULL.
* @return text value , NULL is returned if there is no text value.
*/
- axis2_char_t* (AXIS2_CALL *get_value)(struct axis2_om_text *om_text,
- axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_value)(struct axis2_om_text *om_text,
+ axis2_env_t **env);
} axis2_om_text_ops_t;
Modified: webservices/axis2/trunk/c/include/axis2_op.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_op.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_op.h (original)
+++ webservices/axis2/trunk/c/include/axis2_op.h Sun Mar 19 19:55:55 2006
@@ -123,8 +123,8 @@
axis2_status_t (AXIS2_CALL *
set_parent) (axis2_op_t *op,
- axis2_env_t **env,
- struct axis2_svc *service_desc);
+ axis2_env_t **env,
+ struct axis2_svc *service_desc);
struct axis2_svc *(AXIS2_CALL *
get_parent) (axis2_op_t *op,
@@ -188,7 +188,7 @@
*/
axis2_array_list_t *(AXIS2_CALL *
get_modules) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
/**
* This method will simply map the String URI of the Message exchange
@@ -198,149 +198,149 @@
*/
int (AXIS2_CALL *
get_axis_specific_mep_const) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_array_list_t *(AXIS2_CALL *
get_phases_in_fault_flow) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_array_list_t *(AXIS2_CALL *
get_phases_out_fault_flow) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_array_list_t * (AXIS2_CALL *
get_phases_outflow) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_array_list_t *(AXIS2_CALL *
get_remaining_phases_inflow) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
/**
* @param list
*/
axis2_status_t (AXIS2_CALL *
set_phases_in_fault_flow) (axis2_op_t *op,
- axis2_env_t **env,
- axis2_array_list_t *list);
+ axis2_env_t **env,
+ axis2_array_list_t *list);
/**
* @param list
*/
axis2_status_t (AXIS2_CALL *
set_phases_out_fault_flow) (axis2_op_t *op,
- axis2_env_t **env,
- axis2_array_list_t *list);
+ axis2_env_t **env,
+ axis2_array_list_t *list);
/**
* @param list
*/
axis2_status_t (AXIS2_CALL *
set_phases_outflow) (axis2_op_t *op,
- axis2_env_t **env,
- axis2_array_list_t *list);
+ axis2_env_t **env,
+ axis2_array_list_t *list);
/**
* @param list
*/
axis2_status_t (AXIS2_CALL *
set_remaining_phases_inflow) (axis2_op_t *op,
- axis2_env_t **env,
- axis2_array_list_t *list);
+ axis2_env_t **env,
+ axis2_array_list_t *list);
axis2_status_t (AXIS2_CALL *
add_module) (axis2_op_t *op,
- axis2_env_t **env,
- axis2_qname_t *module_name);
+ axis2_env_t **env,
+ axis2_qname_t *module_name);
axis2_array_list_t *(AXIS2_CALL *
get_module_refs) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_linked_list_t *(AXIS2_CALL *
get_in_faults) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_status_t (AXIS2_CALL *
set_in_faults) (axis2_op_t *op,
- axis2_env_t **env,
- axis2_linked_list_t *in_faults);
+ axis2_env_t **env,
+ axis2_linked_list_t *in_faults);
struct axis2_wsdl_msg_ref *(AXIS2_CALL *
get_input_msg) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_status_t (AXIS2_CALL *
set_input_msg) (axis2_op_t *op,
- axis2_env_t **env,
- struct axis2_wsdl_msg_ref *input_msg);
+ axis2_env_t **env,
+ struct axis2_wsdl_msg_ref *input_msg);
axis2_linked_list_t *(AXIS2_CALL *
get_out_faults) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_status_t (AXIS2_CALL *
set_out_faults) (axis2_op_t *op,
- axis2_env_t **env,
- axis2_linked_list_t *out_faults);
+ axis2_env_t **env,
+ axis2_linked_list_t *out_faults);
struct axis2_wsdl_msg_ref *(AXIS2_CALL *
get_output_msg) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_status_t (AXIS2_CALL *
set_output_msg) (axis2_op_t *op,
- axis2_env_t **env,
- struct axis2_wsdl_msg_ref *output_msg);
+ axis2_env_t **env,
+ struct axis2_wsdl_msg_ref *output_msg);
axis2_bool_t (AXIS2_CALL *
is_safe) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_status_t (AXIS2_CALL *
set_safety) (axis2_op_t *op,
- axis2_env_t **env,
- axis2_bool_t safe);
+ axis2_env_t **env,
+ axis2_bool_t safe);
axis2_char_t *(AXIS2_CALL *
get_target_namespace) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_status_t (AXIS2_CALL *
add_in_fault) (axis2_op_t *op,
- axis2_env_t **env,
- struct axis2_wsdl_fault_ref *in_fault);
+ axis2_env_t **env,
+ struct axis2_wsdl_fault_ref *in_fault);
axis2_status_t (AXIS2_CALL *
add_out_fault) (axis2_op_t *op,
- axis2_env_t **env,
- struct axis2_wsdl_fault_ref *out_fault);
+ axis2_env_t **env,
+ struct axis2_wsdl_fault_ref *out_fault);
axis2_status_t (AXIS2_CALL *
add_feature) (axis2_op_t *op,
- axis2_env_t **env,
- struct axis2_wsdl_feature *feature);
+ axis2_env_t **env,
+ struct axis2_wsdl_feature *feature);
axis2_linked_list_t *(AXIS2_CALL *
get_features) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_status_t (AXIS2_CALL *
add_property) (axis2_op_t *op,
- axis2_env_t **env,
- struct axis2_wsdl_property *wsdl_property);
+ axis2_env_t **env,
+ struct axis2_wsdl_property *wsdl_property);
axis2_linked_list_t *(AXIS2_CALL *
get_Properties) (axis2_op_t *op,
- axis2_env_t **env);
+ axis2_env_t **env);
axis2_status_t (AXIS2_CALL *
set_wsdl_op) (axis2_op_t *op,
- axis2_env_t **env,
- struct axis2_wsdl_op *wsdl_op);
+ axis2_env_t **env,
+ struct axis2_wsdl_op *wsdl_op);
/**
* This method is responsible for finding a MEPContext for an incomming
@@ -365,9 +365,9 @@
*/
struct axis2_op_ctx *(AXIS2_CALL *
find_op_ctx) (axis2_op_t *op,
- axis2_env_t **env,
- struct axis2_msg_ctx *msg_ctx,
- struct axis2_svc_ctx *svc_ctx);
+ axis2_env_t **env,
+ struct axis2_msg_ctx *msg_ctx,
+ struct axis2_svc_ctx *svc_ctx);
/**
* This will not create a new op context if there is no one already.
@@ -377,14 +377,14 @@
*/
struct axis2_op_ctx *(AXIS2_CALL *
find_for_existing_op_ctx) (axis2_op_t *op,
- axis2_env_t **env,
- struct axis2_msg_ctx *msg_ctx);
+ axis2_env_t **env,
+ struct axis2_msg_ctx *msg_ctx);
axis2_status_t (AXIS2_CALL *
register_op_ctx) (axis2_op_t *op,
- axis2_env_t **env,
- struct axis2_msg_ctx *msg_ctx,
- struct axis2_op_ctx *op_ctx);
+ axis2_env_t **env,
+ struct axis2_msg_ctx *msg_ctx,
+ struct axis2_op_ctx *op_ctx);
};
/**
@@ -421,11 +421,11 @@
*/
AXIS2_DECLARE(axis2_op_t *)
axis2_op_create_with_wsdl_op (axis2_env_t **env,
- struct axis2_wsdl_op *wsdl_op);
+ struct axis2_wsdl_op *wsdl_op);
AXIS2_DECLARE(axis2_status_t)
axis2_op_free_void_arg(void *op,
- axis2_env_t **env);
+ axis2_env_t **env);
/************************** Start of function macros **************************/
Modified: webservices/axis2/trunk/c/include/axis2_op_ctx.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_op_ctx.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_op_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_op_ctx.h Sun Mar 19 19:55:55 2006
@@ -61,28 +61,37 @@
*/
struct axis2_op_ctx_ops
{
- axis2_ctx_t* (AXIS2_CALL *get_base)(struct axis2_op_ctx *op_ctx,
- axis2_env_t **env);
-
- axis2_status_t (AXIS2_CALL *free)(struct axis2_op_ctx *op_ctx,
- axis2_env_t **env);
+ axis2_ctx_t* (AXIS2_CALL *
+ get_base)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env);
/**
* The method is used to do the intialization of the axis2_op_ctx
*/
- axis2_status_t (AXIS2_CALL *init)(struct axis2_op_ctx *op_ctx, axis2_env_t **env, struct axis2_conf *conf);
+ axis2_status_t (AXIS2_CALL *
+ init)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env,
+ struct axis2_conf *conf);
/**
* @return Returns the op.
*/
- struct axis2_op* (AXIS2_CALL *get_op)(struct axis2_op_ctx *op_ctx, axis2_env_t **env);
+ struct axis2_op* (AXIS2_CALL *
+ get_op)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env);
/**
* Return the struct axis2_svc_ctx * in which this op_ctx lives.
*
* @return parent struct axis2_svc_ctx *
*/
- struct axis2_svc_ctx* (AXIS2_CALL *get_parent)(struct axis2_op_ctx *op_ctx, axis2_env_t **env);
+ struct axis2_svc_ctx* (AXIS2_CALL *
+ get_parent)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env);
/**
* When a new message is added to the <code>MEPContext</code> the logic
@@ -92,27 +101,34 @@
*
* @param msgContext
*/
- axis2_status_t (AXIS2_CALL *add_msg_ctx)(struct axis2_op_ctx *op_ctx, axis2_env_t **env, axis2_msg_ctx_t *msg_ctx);
+ axis2_status_t (AXIS2_CALL *
+ add_msg_ctx)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env,
+ axis2_msg_ctx_t *msg_ctx);
/**
* @param message_id
* @return
* @throws AxisFault
*/
- axis2_msg_ctx_t* (AXIS2_CALL *get_msg_ctx)(struct axis2_op_ctx *op_ctx,
- axis2_env_t **env, axis2_char_t *message_id);
+ axis2_msg_ctx_t* (AXIS2_CALL *
+ get_msg_ctx)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env,
+ axis2_char_t *message_id);
/**
* Checks to see if the MEP is complete. i.e. whether all the messages that
* are associated with the MEP has arrived and MEP is complete.
*
*/
- axis2_bool_t (AXIS2_CALL *get_is_complete)(struct axis2_op_ctx *op_ctx,
- axis2_env_t **env);
-
- axis2_status_t (AXIS2_CALL *set_complete)(struct axis2_op_ctx *op_ctx,
- axis2_env_t **env,
- axis2_bool_t is_complete);
+ axis2_bool_t (AXIS2_CALL *
+ get_is_complete)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_complete)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env,
+ axis2_bool_t is_complete);
/**
* Removes the pointers to this <code>op_ctx</code> in the
@@ -124,15 +140,18 @@
* and OUT_OPTIONAL_IN, it is possibe this will get called without the MEP
* being complete due to the optional nature of the MEP.
*/
- axis2_status_t (AXIS2_CALL *cleanup)(struct axis2_op_ctx *op_ctx,
- axis2_env_t **env);
-
- axis2_status_t (AXIS2_CALL *set_parent)(struct axis2_op_ctx *op_ctx,
- axis2_env_t **env,
- struct axis2_svc_ctx *svc_ctx);
-
- axis2_hash_t* (AXIS2_CALL *get_msg_ctx_map)(struct axis2_op_ctx *op_ctx,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ cleanup)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_parent)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env,
+ struct axis2_svc_ctx *svc_ctx);
+
+ axis2_hash_t* (AXIS2_CALL *
+ get_msg_ctx_map)(struct axis2_op_ctx *op_ctx,
+ axis2_env_t **env);
};
@@ -151,18 +170,40 @@
struct axis2_svc_ctx * svc_ctx);
/************************** Start of function macros **************************/
-#define AXIS2_OP_CTX_GET_BASE(op_ctx, env) ((op_ctx)->ops->get_base(op_ctx, env))
-#define AXIS2_OP_CTX_FREE(op_ctx, env) ((op_ctx)->ops->free(op_ctx, env))
-#define AXIS2_OP_CTX_INIT(op_ctx, env, conf) ((op_ctx)->ops->init(op_ctx, env, conf))
-#define AXIS2_OP_CTX_GET_OP(op_ctx, env) ((op_ctx)->ops->get_op(op_ctx, env))
-#define AXIS2_OP_CTX_GET_PARENT(op_ctx, env) ((op_ctx)->ops->get_parent(op_ctx, env))
-#define AXIS2_OP_CTX_ADD_MSG_CTX(op_ctx, env, msg_ctx) ((op_ctx)->ops->add_msg_ctx(op_ctx, env, msg_ctx))
-#define AXIS2_OP_CTX_GET_MSG_CTX(op_ctx, env, message_id) ((op_ctx)->ops->get_msg_ctx(op_ctx, env, message_id))
-#define AXIS2_OP_CTX_GET_IS_COMPLETE(op_ctx, env) ((op_ctx)->ops->get_is_complete(op_ctx, env))
-#define AXIS2_OP_CTX_SET_IS_COMPLETE(op_ctx, env, is_complete) ((op_ctx)->ops->set_complete(op_ctx, env, is_complete))
-#define AXIS2_OP_CTX_CLEANUP(op_ctx, env) ((op_ctx)->ops->cleanup(op_ctx, env))
-#define AXIS2_OP_CTX_SET_PARENT(op_ctx, env, svc_ctx) ((op_ctx)->ops->set_parent(op_ctx, env, svc_ctx))
-#define AXIS2_OP_CTX_GET_MSG_CTX_MAP(op_ctx, env) ((op_ctx)->ops->get_msg_ctx_map(op_ctx, env))
+#define AXIS2_OP_CTX_GET_BASE(op_ctx, env) \
+ ((op_ctx)->ops->get_base(op_ctx, env))
+
+#define AXIS2_OP_CTX_FREE(op_ctx, env)\
+ ((op_ctx)->ops->free(op_ctx, env))
+
+#define AXIS2_OP_CTX_INIT(op_ctx, env, conf) \
+ ((op_ctx)->ops->init(op_ctx, env, conf))
+
+#define AXIS2_OP_CTX_GET_OP(op_ctx, env)\
+ ((op_ctx)->ops->get_op(op_ctx, env))
+#define AXIS2_OP_CTX_GET_PARENT(op_ctx, env) \
+ ((op_ctx)->ops->get_parent(op_ctx, env))
+
+#define AXIS2_OP_CTX_ADD_MSG_CTX(op_ctx, env, msg_ctx) \
+ ((op_ctx)->ops->add_msg_ctx(op_ctx, env, msg_ctx))
+
+#define AXIS2_OP_CTX_GET_MSG_CTX(op_ctx, env, message_id) \
+ ((op_ctx)->ops->get_msg_ctx(op_ctx, env, message_id))
+
+#define AXIS2_OP_CTX_GET_IS_COMPLETE(op_ctx, env) \
+ ((op_ctx)->ops->get_is_complete(op_ctx, env))
+
+#define AXIS2_OP_CTX_SET_IS_COMPLETE(op_ctx, env, is_complete) \
+ ((op_ctx)->ops->set_complete(op_ctx, env, is_complete))
+
+#define AXIS2_OP_CTX_CLEANUP(op_ctx, env) \
+ ((op_ctx)->ops->cleanup(op_ctx, env))
+
+#define AXIS2_OP_CTX_SET_PARENT(op_ctx, env, svc_ctx) \
+ ((op_ctx)->ops->set_parent(op_ctx, env, svc_ctx))
+
+#define AXIS2_OP_CTX_GET_MSG_CTX_MAP(op_ctx, env) \
+ ((op_ctx)->ops->get_msg_ctx_map(op_ctx, env))
/************************** End of function macros ****************************/
Modified: webservices/axis2/trunk/c/include/axis2_param.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_param.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_param.h (original)
+++ webservices/axis2/trunk/c/include/axis2_param.h Sun Mar 19 19:55:55 2006
@@ -60,61 +60,69 @@
* Parameter name accessor
* @return name of the param
*/
- axis2_char_t* (AXIS2_CALL *get_name)(struct axis2_param *param,
- axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_name)(struct axis2_param *param,
+ axis2_env_t **env);
/**
* Parameter value accessor
* @return Object
*/
- void* (AXIS2_CALL *get_value)(struct axis2_param *param,
- axis2_env_t **env);
+ void* (AXIS2_CALL *
+ get_value)(struct axis2_param *param,
+ axis2_env_t **env);
/**
* param name mutator
* @param name
*/
- axis2_status_t (AXIS2_CALL *set_name)(struct axis2_param *param,
- axis2_env_t **env,
- axis2_char_t *name);
+ axis2_status_t (AXIS2_CALL *
+ set_name)(struct axis2_param *param,
+ axis2_env_t **env,
+ axis2_char_t *name);
/**
* Method setValue
*
* @param value
*/
- axis2_status_t (AXIS2_CALL *set_value)(struct axis2_param *param,
- axis2_env_t **env,
- void *value);
+ axis2_status_t (AXIS2_CALL *
+ set_value)(struct axis2_param *param,
+ axis2_env_t **env,
+ void *value);
/**
* Method isLocked
*
* @return boolean
*/
- axis2_bool_t (AXIS2_CALL *is_locked)(struct axis2_param *param,
- axis2_env_t **env);
+ axis2_bool_t (AXIS2_CALL *
+ is_locked)(struct axis2_param *param,
+ axis2_env_t **env);
/**
* Method setLocked
*
* @param value
*/
- axis2_status_t (AXIS2_CALL *set_locked)(struct axis2_param *param,
- axis2_env_t **env,
- axis2_bool_t value);
+ axis2_status_t (AXIS2_CALL *
+ set_locked)(struct axis2_param *param,
+ axis2_env_t **env,
+ axis2_bool_t value);
/**
* Method getParameterType
*
* @return int
*/
- int (AXIS2_CALL *get_param_type)(struct axis2_param *param,
- axis2_env_t **env);
-
- axis2_status_t (AXIS2_CALL *set_param_type)(struct axis2_param *param,
- axis2_env_t **env,
- int type);
+ int (AXIS2_CALL *
+ get_param_type)(struct axis2_param *param,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_param_type)(struct axis2_param *param,
+ axis2_env_t **env,
+ int type);
/**
* Paramter can be any thing it can be XML element with number of child
@@ -126,24 +134,26 @@
* @param element <code>OMElement<code>
*/
- axis2_status_t (AXIS2_CALL *set_param_element)(struct axis2_param *param,
- axis2_env_t **env,
- axis2_om_node_t *element);
+ axis2_status_t (AXIS2_CALL *
+ set_param_element)(struct axis2_param *param,
+ axis2_env_t **env,
+ axis2_om_node_t *element);
/**
* To get the whole paramter element
- * @return <code>OMElement<code>
+ * @return <code>axis2_om_node_t<code>
*/
- axis2_om_node_t* (AXIS2_CALL *get_param_element)
- (struct axis2_param *param,
- axis2_env_t **env);
+ axis2_om_node_t* (AXIS2_CALL *
+ get_param_element)(struct axis2_param *param,
+ axis2_env_t **env);
- axis2_status_t (AXIS2_CALL *free)(struct axis2_param *param,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_param *param,
+ axis2_env_t **env);
axis2_status_t (AXIS2_CALL *
value_free) (void *param_value,
- axis2_env_t **env);
+ axis2_env_t **env);
}axis2_param_ops_t;
/**
Modified: webservices/axis2/trunk/c/include/axis2_param_container.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_param_container.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_param_container.h (original)
+++ webservices/axis2/trunk/c/include/axis2_param_container.h Sun Mar 19 19:55:55 2006
@@ -64,43 +64,44 @@
/** De-allocate memory
* @return status code
*/
- axis2_status_t (AXIS2_CALL *free)(struct axis2_param_container *param_container,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_param_container *param_container,
+ axis2_env_t **env);
/** Add a param
* @param param param to be added
* @return status code
*/
- axis2_status_t (AXIS2_CALL *add_param)
- (struct axis2_param_container *param_container,
- axis2_env_t **env,
- axis2_param_t *param);
+ axis2_status_t (AXIS2_CALL *
+ add_param)(struct axis2_param_container *param_container,
+ axis2_env_t **env,
+ axis2_param_t *param);
/** To get a param in a given description
* @param name param name
* @return param
*/
- axis2_param_t *(AXIS2_CALL *get_param)
- (struct axis2_param_container *param_container,
- axis2_env_t **env,
- const axis2_char_t *name);
+ axis2_param_t *(AXIS2_CALL *
+ get_param) (struct axis2_param_container *param_container,
+ axis2_env_t **env,
+ const axis2_char_t *name);
/** To get all the params in a given description
* @return all the params contained
*/
- axis2_array_list_t *(AXIS2_CALL *get_params)
- (struct axis2_param_container *param_container,
- axis2_env_t **env);
-
+ axis2_array_list_t *(AXIS2_CALL *
+ get_params)(struct axis2_param_container *param_container,
+ axis2_env_t **env);
+
/** To check whether the paramter is locked at any level
* @param param_name name of the param
* @return whether param is locked
*/
- axis2_bool_t (AXIS2_CALL *is_param_locked)
- (struct axis2_param_container *param_container,
- axis2_env_t **env,
- const axis2_char_t *param_name) ;
+ axis2_bool_t (AXIS2_CALL *
+ is_param_locked)(struct axis2_param_container *param_container,
+ axis2_env_t **env,
+ const axis2_char_t *param_name) ;
}axis2_param_container_ops_t;
Modified: webservices/axis2/trunk/c/include/axis2_phase.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_phase.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_phase.h (original)
+++ webservices/axis2/trunk/c/include/axis2_phase.h Sun Mar 19 19:55:55 2006
@@ -63,90 +63,124 @@
* @param hander
* @param index
*/
- axis2_status_t (AXIS2_CALL *add_handler_at)(struct axis2_phase *phase,
- axis2_env_t **env,
- int index,
- axis2_handler_t *hander);
+ axis2_status_t (AXIS2_CALL *
+ add_handler_at)(struct axis2_phase *phase,
+ axis2_env_t **env,
+ int index,
+ axis2_handler_t *hander);
/**
* add to next empty phase
*
* @param phase
*/
- axis2_status_t (AXIS2_CALL *add_handler)(struct axis2_phase *phase,
- axis2_env_t **env,
- axis2_handler_t *handler);
- /**
+ axis2_status_t (AXIS2_CALL *
+ add_handler)(struct axis2_phase *phase,
+ axis2_env_t **env,
+ axis2_handler_t *handler);
+ /**
* If need to see how this works look at the stack!
*
* @param msg_ctx
*/
- axis2_status_t (AXIS2_CALL *invoke)(struct axis2_phase *phase,
- axis2_env_t **env,
- struct axis2_msg_ctx *msg_ctx);
+ axis2_status_t (AXIS2_CALL *
+ invoke)(struct axis2_phase *phase,
+ axis2_env_t **env,
+ struct axis2_msg_ctx *msg_ctx);
/**
* phase name accessor
* @return returns the phase name.
*/
- axis2_char_t* (AXIS2_CALL *get_name)(struct axis2_phase *phase,
- axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_name)(struct axis2_phase *phase,
+ axis2_env_t **env);
- int (AXIS2_CALL *get_handler_count)(struct axis2_phase *phase,
- axis2_env_t **env);
+ int (AXIS2_CALL *
+ get_handler_count)(struct axis2_phase *phase,
+ axis2_env_t **env);
/**
* Method setPhaseFirst
*
* @param first_handler
*/
- axis2_status_t (AXIS2_CALL *set_first_handler)(struct axis2_phase *phase,
- axis2_env_t **env, axis2_handler_t * handler);
+ axis2_status_t (AXIS2_CALL *
+ set_first_handler)(struct axis2_phase *phase,
+ axis2_env_t **env,
+ axis2_handler_t * handler);
/**
* Method setPhaseLast
*
* @param last_handler
*/
- axis2_status_t (AXIS2_CALL *set_last_handler)(struct axis2_phase *phase,
- axis2_env_t **env, axis2_handler_t * handler);
+ axis2_status_t (AXIS2_CALL *
+ set_last_handler)(struct axis2_phase *phase,
+ axis2_env_t **env,
+ axis2_handler_t * handler);
/**
* Method add_handler
*
* @param handler
*/
- axis2_status_t (AXIS2_CALL *add_handler_desc)(struct axis2_phase *phase,
- axis2_env_t **env, axis2_handler_desc_t * handler_desc);
+ axis2_status_t (AXIS2_CALL *
+ add_handler_desc)(struct axis2_phase *phase,
+ axis2_env_t **env,
+ axis2_handler_desc_t * handler_desc);
/**
* Method axis2_phase_insert_before
*
* @param handler
*/
- axis2_status_t (AXIS2_CALL *insert_before)(struct axis2_phase *phase, axis2_env_t **env, axis2_handler_t * handler);
+ axis2_status_t (AXIS2_CALL *
+ insert_before)(struct axis2_phase *phase,
+ axis2_env_t **env,
+ axis2_handler_t * handler);
/**
* Method axis2_phase_insert_after
*
* @param handler
*/
- axis2_status_t (AXIS2_CALL *insert_after)(struct axis2_phase *phase, axis2_env_t **env, axis2_handler_t * handler);
+ axis2_status_t (AXIS2_CALL *
+ insert_after)(struct axis2_phase *phase,
+ axis2_env_t **env,
+ axis2_handler_t * handler);
/**
- * This method assume that both the before and after cant be a same hander
- * That condition is not checked by this function. It should be checked befor calling this function
- *
+ * This method assume that both the before and after can't be a same
+ * handler . That condition is not checked by this function.
+ * It should be checked befor calling this function
* @param handler
*/
- axis2_status_t (AXIS2_CALL *insert_before_and_after)(struct axis2_phase *phase, axis2_env_t **env, axis2_handler_t * handler);
+ axis2_status_t (AXIS2_CALL *
+ insert_before_and_after)(struct axis2_phase *phase,
+ axis2_env_t **env,
+ axis2_handler_t * handler);
- axis2_status_t (AXIS2_CALL *insert_handler_desc)(struct axis2_phase *phase, axis2_env_t **env, axis2_handler_desc_t * handler_desc);
+ axis2_status_t (AXIS2_CALL *
+ insert_handler_desc)(struct axis2_phase *phase,
+ axis2_env_t **env,
+ axis2_handler_desc_t * handler_desc);
/**
* To get the all the handlers in the phase
*
* @return
*/
- axis2_array_list_t* (AXIS2_CALL *get_handlers)(struct axis2_phase *phase, axis2_env_t **env);
- axis2_status_t (AXIS2_CALL *invoke_start_from_handler)(struct axis2_phase *phase, axis2_env_t **env, axis2_qname_t *qname, struct axis2_msg_ctx *msg_ctx);
- axis2_status_t (AXIS2_CALL *free)(struct axis2_phase *phase,
- axis2_env_t **env);
+ axis2_array_list_t* (AXIS2_CALL *
+ get_handlers)(struct axis2_phase *phase,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ invoke_start_from_handler)(struct axis2_phase *phase,
+ axis2_env_t **env,
+ axis2_qname_t *qname,
+ struct axis2_msg_ctx *msg_ctx);
+
+
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_phase *phase,
+ axis2_env_t **env);
+
} axis2_phase_ops_t;
/**
@@ -162,23 +196,54 @@
/**
* creates phase struct
*/
-AXIS2_DECLARE(axis2_phase_t*) axis2_phase_create(axis2_env_t **env, const axis2_char_t *phase_name);
+AXIS2_DECLARE(axis2_phase_t*)
+axis2_phase_create(axis2_env_t **env,
+ const axis2_char_t *phase_name);
-#define AXIS2_PHASE_ADD_HANDLER_AT(phase, env, index, handler) ((phase)->ops->add_handler_at(phase, env, index, handler))
-#define AXIS2_PHASE_ADD_HANDLER(phase, env, handler) ((phase)->ops->add_handler(phase, env, handler))
-#define AXIS2_PHASE_ADD_HANDLER_DESC(phase, env, handler_desc) ((phase)->ops->add_handler_desc(phase, env, handler_desc))
-#define AXIS2_PHASE_INVOKE(phase, env, msg_ctx) ((phase)->ops->invoke(phase, env, msg_ctx))
-#define AXIS2_PHASE_GET_NAME(phase, env) ((phase)->ops->get_name(phase, env))
-#define AXIS2_PHASE_GET_HANDLER_COUNT(phase, env) ((phase)->ops->get_handler_count(phase, env))
-#define AXIS2_PHASE_SET_FIRST_HANDLER(phase, env, handler) ((phase)->ops->set_first_handler(phase, env, handler))
-#define AXIS2_PHASE_SET_LAST_HANDLER(phase, env, handler) ((phase)->ops->set_last_handler(phase, env, handler))
-#define AXIS2_PHASE_INSERT_BEFORE(phase, env, handler) ((phase)->ops->insert_before(phase, env, handler))
-#define AXIS2_PHASE_INSERT_AFTER(phase, env, handler) ((phase)->ops->insert_after(phase, env, handler))
-#define AXIS2_PHASE_INSERT_BEFORE_AND_AFTER(phase, env, handler) ((phase)->ops->insert_before_and_after(phase, env, handler))
-#define AXIS2_PHASE_INSERT_HANDLER_DESC(phase, env, handler_desc) ((phase)->ops->insert_handler_desc(phase, env, handler_desc))
-#define AXIS2_PHASE_GET_HANDLERS(phase, env) ((phase)->ops->get_handlers(phase, env))
-#define AXIS2_PHASE_INVOKE_START_FROM_HANDLER(phase, env, qname, msg_ctx) ((phase)->ops->invoke_start_from_handler(phase, env, qname, msg_ctx))
-#define AXIS2_PHASE_FREE(phase, env) ((phase)->ops->free(phase, env))
+#define AXIS2_PHASE_ADD_HANDLER_AT(phase, env, index, handler) \
+ ((phase)->ops->add_handler_at(phase, env, index, handler))
+
+#define AXIS2_PHASE_ADD_HANDLER(phase, env, handler) \
+ ((phase)->ops->add_handler(phase, env, handler))
+
+#define AXIS2_PHASE_ADD_HANDLER_DESC(phase, env, handler_desc) \
+ ((phase)->ops->add_handler_desc(phase, env, handler_desc))
+
+#define AXIS2_PHASE_INVOKE(phase, env, msg_ctx) \
+ ((phase)->ops->invoke(phase, env, msg_ctx))
+
+#define AXIS2_PHASE_GET_NAME(phase, env) \
+ ((phase)->ops->get_name(phase, env))
+
+#define AXIS2_PHASE_GET_HANDLER_COUNT(phase, env) \
+ ((phase)->ops->get_handler_count(phase, env))
+
+#define AXIS2_PHASE_SET_FIRST_HANDLER(phase, env, handler) \
+ ((phase)->ops->set_first_handler(phase, env, handler))
+
+#define AXIS2_PHASE_SET_LAST_HANDLER(phase, env, handler) \
+ ((phase)->ops->set_last_handler(phase, env, handler))
+
+#define AXIS2_PHASE_INSERT_BEFORE(phase, env, handler) \
+ ((phase)->ops->insert_before(phase, env, handler))
+
+#define AXIS2_PHASE_INSERT_AFTER(phase, env, handler) \
+ ((phase)->ops->insert_after(phase, env, handler))
+
+#define AXIS2_PHASE_INSERT_BEFORE_AND_AFTER(phase, env, handler) \
+ ((phase)->ops->insert_before_and_after(phase, env, handler))
+
+#define AXIS2_PHASE_INSERT_HANDLER_DESC(phase, env, handler_desc) \
+ ((phase)->ops->insert_handler_desc(phase, env, handler_desc))
+
+#define AXIS2_PHASE_GET_HANDLERS(phase, env) \
+ ((phase)->ops->get_handlers(phase, env))
+
+#define AXIS2_PHASE_INVOKE_START_FROM_HANDLER(phase, env, qname, msg_ctx) \
+ ((phase)->ops->invoke_start_from_handler(phase, env, qname, msg_ctx))
+
+#define AXIS2_PHASE_FREE(phase, env) \
+ ((phase)->ops->free(phase, env))
/** @} */