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/10/21 10:29:47 UTC
svn commit: r327117 [1/2] - in /webservices/axis2/trunk/c: include/
modules/util/src/
Author: samisa
Date: Fri Oct 21 01:28:57 2005
New Revision: 327117
URL: http://svn.apache.org/viewcvs?rev=327117&view=rev
Log:
Added doxygen comments to the util structs and also fixed indentation in all headers and the util c files
Modified:
webservices/axis2/trunk/c/include/axis2.h
webservices/axis2/trunk/c/include/axis2_allocator.h
webservices/axis2/trunk/c/include/axis2_context_msg_context.h
webservices/axis2/trunk/c/include/axis2_defines.h
webservices/axis2/trunk/c/include/axis2_description_module.h
webservices/axis2/trunk/c/include/axis2_description_operation.h
webservices/axis2/trunk/c/include/axis2_description_param_include.h
webservices/axis2/trunk/c/include/axis2_description_parameter.h
webservices/axis2/trunk/c/include/axis2_description_service.h
webservices/axis2/trunk/c/include/axis2_description_servicegroup.h
webservices/axis2/trunk/c/include/axis2_engine_msg_receiver.h
webservices/axis2/trunk/c/include/axis2_environment.h
webservices/axis2/trunk/c/include/axis2_error.h
webservices/axis2/trunk/c/include/axis2_hash.h
webservices/axis2/trunk/c/include/axis2_log.h
webservices/axis2/trunk/c/include/axis2_om_attribute.h
webservices/axis2/trunk/c/include/axis2_om_comment.h
webservices/axis2/trunk/c/include/axis2_om_doctype.h
webservices/axis2/trunk/c/include/axis2_om_document.h
webservices/axis2/trunk/c/include/axis2_om_element.h
webservices/axis2/trunk/c/include/axis2_om_namespace.h
webservices/axis2/trunk/c/include/axis2_om_node.h
webservices/axis2/trunk/c/include/axis2_om_output.h
webservices/axis2/trunk/c/include/axis2_om_processing_instruction.h
webservices/axis2/trunk/c/include/axis2_om_stax_builder.h
webservices/axis2/trunk/c/include/axis2_om_text.h
webservices/axis2/trunk/c/include/axis2_qname.h
webservices/axis2/trunk/c/include/axis2_stream.h
webservices/axis2/trunk/c/include/axis2_string.h
webservices/axis2/trunk/c/modules/util/src/axis2_allocator.c
webservices/axis2/trunk/c/modules/util/src/axis2_environment.c
webservices/axis2/trunk/c/modules/util/src/axis2_error.c
webservices/axis2/trunk/c/modules/util/src/axis2_hash.c
webservices/axis2/trunk/c/modules/util/src/axis2_log.c
webservices/axis2/trunk/c/modules/util/src/axis2_stream.c
webservices/axis2/trunk/c/modules/util/src/axis2_string.c
Modified: webservices/axis2/trunk/c/include/axis2.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2.h (original)
+++ webservices/axis2/trunk/c/include/axis2.h Fri Oct 21 01:28:57 2005
@@ -10,7 +10,8 @@
#include <stdio.h>
#ifdef __cplusplus
-extern "C" {
+extern "C"
+{
#endif
@@ -18,10 +19,10 @@
* @{
*/
-/** @} */
+/** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_H */
+#endif /* AXIS2_H */
Modified: webservices/axis2/trunk/c/include/axis2_allocator.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_allocator.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_allocator.h (original)
+++ webservices/axis2/trunk/c/include/axis2_allocator.h Fri Oct 21 01:28:57 2005
@@ -17,36 +17,66 @@
#ifndef AXIS2_ALLOCATOR_H
#define AXIS2_ALLOCATOR_H
+/**
+ * @file axis2_allocator.h
+ * @brief Axis2 memory allocator interface
+ */
+
#include <axis2_defines.h>
#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-typedef struct axis2_allocator
+extern "C"
{
- void *(*axis2_allocator_malloc)(size_t size);
- void *(*axis2_allocator_realloc)(void *ptr,size_t size);
- void (*axis2_allocator_free)(void *ptr);
-}axis2_allocator_t;
+#endif
/**
-* if the parsed allocator is null a default allocator is created
-* otherwise the parsed allocator is returned. If there isn't enough
-* memory for allocation NULL is returned.
-* @param allocator user defined allcator
-*/
+ * @defgroup axis2_allocator Memory Allocator
+ * @ingroup axis2_util
+ * @{
+ */
+
+/**
+ * \brief Axis2 memory allocator
+ *
+ * Encapsulator for memory allocating routines
+ */
+ typedef struct axis2_allocator
+ {
+ /**
+ * allocates memory
+ * @param size size of the memory block to be allocated
+ * @return pointer to the allocated memory block
+ */
+ AXIS2_DECLARE(void *) (*axis2_allocator_malloc) (size_t size);
+ /**
+ * re-llocates memory
+ * @param ptr memory block who's size to be changed
+ * @param size size of the memory block to be allocated
+ * @return pointer to the allocated memory block
+ */
+ AXIS2_DECLARE(void *) (*axis2_allocator_realloc) (void *ptr, size_t size);
+ /**
+ * frees memory
+ * @param ptr pointer to be freed
+ */
+ AXIS2_DECLARE(void) (*axis2_allocator_free) (void *ptr);
+ } axis2_allocator_t;
+
+ /**
+ * Initializes (creates) an allocator.
+ * @param allocator user defined allcator. Optional, can be NULL. If NULL, a default allocator will be returned.
+ * @return initialized allocator. NULL on error.
+ */
+ AXIS2_DECLARE(axis2_allocator_t *) axis2_allocator_init (axis2_allocator_t * allocator);
-axis2_allocator_t *
- axis2_allocator_init(axis2_allocator_t *allocator);
-
#define axis2_malloc(allocator, size) ((allocator)->axis2_allocator_malloc(size))
#define axis2_realloc(allocator, ptr, size) ((allocator)->axis2_allocator_realloc(ptr, size))
#define axis2_free(allocator, ptr) ((allocator)->axis2_allocator_free(ptr))
+/** @} */
+
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_ALLOCATOR_H */
+#endif /* AXIS2_ALLOCATOR_H */
Modified: webservices/axis2/trunk/c/include/axis2_context_msg_context.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_context_msg_context.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_context_msg_context.h (original)
+++ webservices/axis2/trunk/c/include/axis2_context_msg_context.h Fri Oct 21 01:28:57 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#ifndef AXIS2_ENGINE_MSG_CONTEXT_H
#define AXIS2_ENGINE_MSG_CONTEXT_H
@@ -22,12 +22,12 @@
* @file axis2_context_msg_context.h
* @brief axis2 ENGINE CORE msg_context
*/
-
+
#include <axis2_core.h>
#include <axis2_context_msg_context.h>
#ifdef __cplusplus
-extern "C"
+extern "C"
{
#endif
@@ -36,16 +36,16 @@
* @{
*/
-/** @} */
+/** @} */
/**
* @defgroup axis2_context_msg_context ENGINE Msg_context
* @ingroup axis2_context
* @{
*/
-
+
/************************** Start of function macros **************************/
-
+
#define axis2_context_msg_ctx_free(env, msg_ctx) \
(axis2_context_msg_ctx_get_ops(env, \
msg_ctx)->free (env, msg_ctx));
@@ -54,27 +54,25 @@
/************************** Start of function pointers ************************/
-typedef axis2_status_t (*axis2_context_msg_ctx_free_t)
- (axis2_environment_t *env
- , axis2_context_msg_ctx_t *msg_ctx);
+ typedef axis2_status_t (*axis2_context_msg_ctx_free_t)
+ (axis2_environment_t * env, axis2_context_msg_ctx_t * msg_ctx);
/**************************** End of function pointers ************************/
-struct axis2_context_msg_ctx_ops_s
-{
- axis2_context_msg_ctx_free_t free;
-};
+ struct axis2_context_msg_ctx_ops_s
+ {
+ axis2_context_msg_ctx_free_t free;
+ };
-axis2_context_msg_ctx_t *axis2_context_msg_ctx_get_ops
- (axis2_environment_t *env
- , axis2_context_msg_ctx_t *msg_ctx);
+ axis2_context_msg_ctx_t *axis2_context_msg_ctx_get_ops
+ (axis2_environment_t * env, axis2_context_msg_ctx_t * msg_ctx);
-axis2_context_msg_ctx_t
- *axis2_context_msg_ctx_create (axis2_environment_t *env);
+ axis2_context_msg_ctx_t
+ * axis2_context_msg_ctx_create (axis2_environment_t * env);
/** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_ENGINE_MSG_CONTEXT_H */
+#endif /* AXIS2_ENGINE_MSG_CONTEXT_H */
Modified: webservices/axis2/trunk/c/include/axis2_defines.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_defines.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_defines.h (original)
+++ webservices/axis2/trunk/c/include/axis2_defines.h Fri Oct 21 01:28:57 2005
@@ -5,20 +5,21 @@
* @file axis2_defines.h
* @brief Useful definitions, which may have platform concerns
*/
-
+
#include <stddef.h>
#ifdef __cplusplus
-extern "C" {
+extern "C"
+{
#endif
/**
* Type definitions
*/
-typedef char axis2_char_t;
-typedef int axis2_bool_t;
-typedef int axis2_status_t;
-typedef unsigned int axis2_ssize_t;
+ typedef char axis2_char_t;
+ typedef int axis2_bool_t;
+ typedef int axis2_status_t;
+ typedef unsigned int axis2_ssize_t;
/**
* Boolean values
@@ -29,7 +30,7 @@
/**
* Exporting
*/
-#if defined(WIN32)
+#if defined(WIN32)
#define AXIS2_EXPORT __declspec(dllexport)
#else
#define AXIS2_EXPORT
@@ -38,7 +39,7 @@
/**
* Importing
*/
-#if defined(WIN32)
+#if defined(WIN32)
#define AXIS2_IMPORT __declspec(dllimport)
#else
#define AXIS2_IMPORT
@@ -49,10 +50,10 @@
*/
#if defined(__GNUC__)
#define AXIS2_CALL __attribute__((cdecl))
-#else
+#else
#if defined(__unix)
#define AXIS2_CALL
-#else /* WIN32 */
+#else /* WIN32 */
#define AXIS2_CALL __stdcall
#endif
#endif
@@ -80,7 +81,7 @@
*/
# define AXIS2_DECLARE_EXPORT
-#endif /* def DOXYGEN */
+#endif /* def DOXYGEN */
#if !defined(WIN32)
/**
@@ -132,4 +133,4 @@
}
#endif
-#endif /* AXIS2_DEFINES_H */
+#endif /* AXIS2_DEFINES_H */
Modified: webservices/axis2/trunk/c/include/axis2_description_module.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_description_module.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_description_module.h (original)
+++ webservices/axis2/trunk/c/include/axis2_description_module.h Fri Oct 21 01:28:57 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#ifndef AXIS2_DESCRIPTION_MODULE_H
#define AXIS2_DESCRIPTION_MODULE_H
@@ -21,7 +21,7 @@
* @file axis2_description_module.h
* @brief Parameter handling
*/
-
+
#include <axis2_qname.h>
#include <axis2_description_operation.h>
#include <axis2_engine_config.h>
@@ -29,83 +29,85 @@
/*#include <axis2_om_node.h> */
#ifdef __cplusplus
-extern "C"
+extern "C"
{
#endif
-
+
/** @defgroup axis2_description DESCRIPTION (Axis2 Information model)
* @ingroup axis2
* @{
*/
-/** @} */
+/** @} */
/**
* @defgroup axis2_description_module DESCRIPTION Module
* @ingroup axis2_description
* @{
*/
-
-/***************************** Start of function macros ***********************/
-/***************************** End of function macros *************************/
+/***************************** Start of function macros ***********************/
+
+/***************************** End of function macros *************************/
/**
* This holds the information about a Module
*/
-typedef struct
-{
- axis2_qname_t *qname;
- axis2_engine_config_t *parent;
- axis2_description_param_t *paras;
- axis2_description_operation_t *operation_desc;
+ typedef struct
+ {
+ axis2_qname_t *qname;
+ axis2_engine_config_t *parent;
+ axis2_description_param_t *paras;
+ axis2_description_operation_t *operation_desc;
-} axis2_description_module_t;
+ } axis2_description_module_t;
-void axis2_description_module_free (axis2_description_module_t *
- module_description);
+ void axis2_description_module_free (axis2_description_module_t *
+ module_description);
/** Create a module description */
-axis2_description_module_t *axis2_description_module_create ();
+ axis2_description_module_t *axis2_description_module_create ();
/** To set a name */
-void setName (axis2_description_module_t * module_description,
- axis2_qname_t * name);
+ void setName (axis2_description_module_t * module_description,
+ axis2_qname_t * name);
-axis2_qname_t
- *axis2_description_module_get_name (axis2_description_module_t *
- module_desc);
+ axis2_qname_t
+ * axis2_description_module_get_name (axis2_description_module_t *
+ module_desc);
/** To add an parameter*/
-void axis2_description_module_add_parameter (axis2_description_module_t *
- module_desc,
- axis2_description_param_t *param);
+ void axis2_description_module_add_parameter (axis2_description_module_t *
+ module_desc,
+ axis2_description_param_t *
+ param);
/** To get all the parameters*/
-axis2_description_param_t *axis2_description_module_get_parameters (axis2_description_module_t *
- module_desc);
+ axis2_description_param_t
+ *axis2_description_module_get_parameters (axis2_description_module_t *
+ module_desc);
/** To add an operation */
-void axis2_description_module_add_operation (axis2_description_module_t *
- module_desc,
- axis2_description_operation_t *
- operation);
+ void axis2_description_module_add_operation (axis2_description_module_t *
+ module_desc,
+ axis2_description_operation_t
+ * operation);
/** To get all the module_operations*/
-axis2_description_operation_t
- * axis2_description_module_get_operations (axis2_description_module_t *
- module_desc);
-
-void axis2_description_module_set_parent (axis2_description_module_t *
- module_descr,
- axis2_engine_config_t *
- parent);
-
-axis2_engine_config_t
- *axis2_description_module_get_parent (axis2_description_module_t *
- module_desc);
+ axis2_description_operation_t
+ *
+ axis2_description_module_get_operations (axis2_description_module_t *
+ module_desc);
+
+ void axis2_description_module_set_parent (axis2_description_module_t *
+ module_descr,
+ axis2_engine_config_t * parent);
+
+ axis2_engine_config_t
+ * axis2_description_module_get_parent (axis2_description_module_t *
+ module_desc);
/** @} */
#ifdef __cplusplus
}
#endif
-#endif /*AXIS2_DESCRIPTION_MODULE_H */
+#endif /*AXIS2_DESCRIPTION_MODULE_H */
Modified: webservices/axis2/trunk/c/include/axis2_description_operation.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_description_operation.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_description_operation.h (original)
+++ webservices/axis2/trunk/c/include/axis2_description_operation.h Fri Oct 21 01:28:57 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#ifndef AXIS2_DESCRIPTION_OPERATION_H
#define AXIS2_DESCRIPTION_OPERATION_H
@@ -21,14 +21,14 @@
* @file axis2_description_operation.h
* @brief axis2 DESCRIPTION CORE operation
*/
-
+
#include <axis2_core.h>
#include <axis2_description_param_include.h>
#include <axis2_description_service.h>
#include <axis2_engine_msg_receiver.h>
#ifdef __cplusplus
-extern "C"
+extern "C"
{
#endif
@@ -37,16 +37,16 @@
* @{
*/
-/** @} */
+/** @} */
/**
* @defgroup axis2_description_operation DESCRIPTION Operation
* @ingroup axis2_description
* @{
*/
-
+
/************************** Start of function macros **************************/
-
+
#define axis2_description_operation_free(env, operation_desc) \
(axis2_description_operation_get_ops(env, \
operation_desc)->free (env, operation_desc));
@@ -70,7 +70,7 @@
#define axis2_description_operation_get_parent(env, operation_desc) \
(axis2_description_operation_get_ops(env, \
operation_desc)->get_parent (env, operation_desc));
-
+
#define axis2_description_operation_get_name(env, operation_desc) \
(axis2_description_operation_get_ops(env, operation_desc)->get_name \
(env, operation_desc));
@@ -80,103 +80,124 @@
(axis2_description_operation_get_ops(env, \
operation_desc)->set_msg_exchange_pattern (env, \
operation_desc, msg_exchange_pattern));
-
+
#define axis2_description_operation_get_msg_exchange_pattern(env, operation_desc) \
(axis2_description_operation_get_ops(env, \
operation_desc)->get_msg_exchange_pattern (env, operation_desc));
-
+
#define axis2_description_operation_set_msg_receiver(env, \
operation_desc, msg_receiver) (axis2_description_operation_get_ops(env, \
operation_desc)->set_msg_receiver (env, operation_desc, msg_receiver));
-
+
#define axis2_description_operation_get_msg_receiver(env, operation_desc) \
(axis2_description_operation_get_ops(env, \
operation_desc)->get_msg_receiver (env, operation_desc));
-
+
/************************** End of function macros ****************************/
/************************** Start of function pointers ************************/
-typedef axis2_status_t (*axis2_description_operation_free_t)
- (axis2_environment_t *env
- , axis2_description_operation_t *operation_desc);
-
-typedef axis2_status_t (*axis2_description_operation_add_param_t)
- (axis2_environment_t *env, axis2_description_operation_t *operation_desc
- , axis2_description_param_t *param);
-
-typedef axis2_description_param_t *(*axis2_description_operation_get_param_t)
- (axis2_environment_t *env, axis2_description_operation_t *operation_desc
- , const axis2_char_t *name);
-
-typedef axis2_hash_t *(*axis2_description_operation_get_params_t)
- (axis2_environment_t *env, axis2_description_operation_t *operation_desc);
-
-typedef axis2_status_t (*axis2_description_operation_set_parent_t)
- (axis2_environment_t *env
- , axis2_description_operation_t *operation_desc
- , axis2_description_service_t *service_desc);
-
-typedef axis2_description_service_t *(*axis2_description_operation_get_parent_t)
- (axis2_environment_t *env
- , axis2_description_operation_t *operation_desc);
-
-typedef axis2_qname_t *(*axis2_description_operation_get_name_t)
- (axis2_environment_t *env, axis2_description_operation_t *operation_desc);
-
-typedef axis2_status_t (*axis2_description_operation_set_msg_exchange_pattern_t)
- (axis2_environment_t *env, axis2_description_operation_t *operation_desc
- , axis2_char_t *pattern);
-
-typedef axis2_char_t *(*axis2_description_operation_get_msg_exchange_pattern_t)
- (axis2_environment_t *env, axis2_description_operation_t *operation_desc);
-
-typedef axis2_status_t (*axis2_description_operation_set_msg_receiver_t)
- (axis2_environment_t *env, axis2_description_operation_t *operation_desc
- , axis2_engine_msg_receiver_t *msg_receiver);
-
-typedef axis2_engine_msg_receiver_t *(*axis2_description_operation_get_msg_receiver_t)
- (axis2_environment_t *env, axis2_description_operation_t *operation_desc);
-
+ typedef axis2_status_t (*axis2_description_operation_free_t)
+ (axis2_environment_t * env,
+ axis2_description_operation_t * operation_desc);
+
+ typedef axis2_status_t (*axis2_description_operation_add_param_t)
+ (axis2_environment_t * env,
+ axis2_description_operation_t * operation_desc,
+ axis2_description_param_t * param);
+
+ typedef axis2_description_param_t
+ *(*axis2_description_operation_get_param_t) (axis2_environment_t *
+ env,
+ axis2_description_operation_t
+ * operation_desc,
+ const axis2_char_t *
+ name);
+
+ typedef axis2_hash_t *(*axis2_description_operation_get_params_t)
+ (axis2_environment_t * env,
+ axis2_description_operation_t * operation_desc);
+
+ typedef axis2_status_t (*axis2_description_operation_set_parent_t)
+ (axis2_environment_t * env,
+ axis2_description_operation_t * operation_desc,
+ axis2_description_service_t * service_desc);
+
+ typedef axis2_description_service_t
+ *(*axis2_description_operation_get_parent_t) (axis2_environment_t *
+ env,
+ axis2_description_operation_t
+ * operation_desc);
+
+ typedef axis2_qname_t *(*axis2_description_operation_get_name_t)
+ (axis2_environment_t * env,
+ axis2_description_operation_t * operation_desc);
+
+ typedef
+ axis2_status_t
+ (*axis2_description_operation_set_msg_exchange_pattern_t)
+ (axis2_environment_t * env,
+ axis2_description_operation_t * operation_desc,
+ axis2_char_t * pattern);
+
+ typedef axis2_char_t
+ *(*axis2_description_operation_get_msg_exchange_pattern_t)
+ (axis2_environment_t * env,
+ axis2_description_operation_t * operation_desc);
+
+ typedef axis2_status_t (*axis2_description_operation_set_msg_receiver_t)
+ (axis2_environment_t * env,
+ axis2_description_operation_t * operation_desc,
+ axis2_engine_msg_receiver_t * msg_receiver);
+
+ typedef axis2_engine_msg_receiver_t
+ *(*axis2_description_operation_get_msg_receiver_t)
+ (axis2_environment_t * env,
+ axis2_description_operation_t * operation_desc);
+
/**************************** End of function pointers ************************/
-struct axis2_description_operation_ops_s
-{
- axis2_description_operation_free_t free;
-
- axis2_description_operation_add_param_t add_param;
-
- axis2_description_operation_get_param_t get_param;
-
- axis2_description_operation_get_params_t get_params;
-
- axis2_description_operation_set_parent_t set_parent;
-
- axis2_description_operation_get_parent_t get_parent;
-
- axis2_description_operation_get_name_t get_name;
-
- axis2_description_operation_set_msg_exchange_pattern_t set_msg_exchange_pattern;
-
- axis2_description_operation_get_msg_exchange_pattern_t get_msg_exchange_pattern;
-
- axis2_description_operation_set_msg_receiver_t set_msg_receiver;
-
- axis2_description_operation_get_msg_receiver_t get_msg_receiver;
-};
-
-axis2_description_operation_ops_t *axis2_description_operation_get_ops
- (axis2_environment_t *env
- , axis2_description_operation_t *operation_desc);
+ struct axis2_description_operation_ops_s
+ {
+ axis2_description_operation_free_t free;
+
+ axis2_description_operation_add_param_t add_param;
+
+ axis2_description_operation_get_param_t get_param;
+
+ axis2_description_operation_get_params_t get_params;
+
+ axis2_description_operation_set_parent_t set_parent;
+
+ axis2_description_operation_get_parent_t get_parent;
+
+ axis2_description_operation_get_name_t get_name;
+
+ axis2_description_operation_set_msg_exchange_pattern_t
+ set_msg_exchange_pattern;
+
+ axis2_description_operation_get_msg_exchange_pattern_t
+ get_msg_exchange_pattern;
+
+ axis2_description_operation_set_msg_receiver_t set_msg_receiver;
+
+ axis2_description_operation_get_msg_receiver_t get_msg_receiver;
+ };
+
+ axis2_description_operation_ops_t *axis2_description_operation_get_ops
+ (axis2_environment_t * env,
+ axis2_description_operation_t * operation_desc);
-axis2_description_operation_t
- *axis2_description_operation_create (axis2_environment_t *env);
+ axis2_description_operation_t
+ * axis2_description_operation_create (axis2_environment_t * env);
-axis2_description_operation_t *axis2_description_operation_create_with_name
- (axis2_environment_t *env, axis2_qname_t *name);
+ axis2_description_operation_t
+ *axis2_description_operation_create_with_name (axis2_environment_t *
+ env,
+ axis2_qname_t * name);
/** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_DESCRIPTION_OPERATION_H */
+#endif /* AXIS2_DESCRIPTION_OPERATION_H */
Modified: webservices/axis2/trunk/c/include/axis2_description_param_include.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_description_param_include.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_description_param_include.h (original)
+++ webservices/axis2/trunk/c/include/axis2_description_param_include.h Fri Oct 21 01:28:57 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#ifndef AXIS2_DESCRIPTION_PARAM_INCLUDE_H
#define AXIS2_DESCRIPTION_PARAM_INCLUDE_H
@@ -21,7 +21,7 @@
* @file axis2_description_param_include.h
* @brief Parameter handling
*/
-
+
#include <axis2.h>
#include <axis2_error.h>
#include <axis2_defines.h>
@@ -35,7 +35,7 @@
#include <axis2_description_parameter.h>
#ifdef __cplusplus
-extern "C"
+extern "C"
{
#endif
@@ -44,32 +44,32 @@
* @{
*/
-/** @} */
+/** @} */
/**
* @defgroup axis2_description_parameter_include DESCRIPTION ParameterInclude
* @ingroup axis2_description
* @{
- */
+ */
/*************************** Function macros **********************************/
#define axis2_description_param_include_free(env, param_include) \
(axis2_description_param_include_get_ops(env, param_include)->free (env, \
param_include))
-
+
#define axis2_description_param_include_add_param(env, param_include, \
param) (axis2_description_param_include_get_ops(env, \
param_include)->add_param (env, param_include, param))
-
+
#define axis2_description_param_include_get_param(env, param_include) \
(axis2_description_param_include_get_ops(env, \
param_include)->get_param (env, param_include))
-
+
#define axis2_description_param_include_get_params(env, param_include) \
(axis2_description_param_include_get_ops(env, \
param_include)->get_params (env, param_include))
-
+
#define axis2_description_param_include_is_param_locked(env, \
param_include) (axis2_description_param_include_get_ops(env, \
param_include)->is_param_locked (env, param_include))
@@ -81,43 +81,46 @@
/** Deallocate memory
* @return status code
*/
-typedef axis2_status_t (*axis2_description_param_include_free_t)
- (axis2_environment_t *env
- , axis2_description_param_include_t *param_include);
+ typedef axis2_status_t (*axis2_description_param_include_free_t)
+ (axis2_environment_t * env,
+ axis2_description_param_include_t * param_include);
/** Add a parameter
* @param parameters
* @return status code
*/
-typedef axis2_status_t (*axis2_description_param_include_add_param_t)
- (axis2_environment_t *env
- , axis2_description_param_include_t *param_include
- ,const axis2_description_param_t *param);
+ typedef axis2_status_t (*axis2_description_param_include_add_param_t)
+ (axis2_environment_t * env,
+ axis2_description_param_include_t * param_include,
+ const axis2_description_param_t * param);
/** To get a parameter in a given description
* @param parameter name
* @return parameter
*/
-typedef axis2_description_param_t *(*axis2_description_param_include_get_param_t)
- (axis2_environment_t *env
- , axis2_description_param_include_t *param_include
- , const axis2_char_t *name);
+ typedef axis2_description_param_t
+ *(*axis2_description_param_include_get_param_t) (axis2_environment_t *
+ env,
+ axis2_description_param_include_t
+ * param_include,
+ const axis2_char_t *
+ name);
/** To get all the parameters in a given description
* @return all the parameters contained
*/
-typedef axis2_hash_t *(*axis2_description_param_include_get_params_t)
- (axis2_environment_t *env
- , axis2_description_param_include_t *param_include);
+ typedef axis2_hash_t *(*axis2_description_param_include_get_params_t)
+ (axis2_environment_t * env,
+ axis2_description_param_include_t * param_include);
/** To check whether the paramter is locked at any level
* @param parameter name
* @return whether parameter is locked
*/
-typedef axis2_bool_t (*axis2_description_param_include_is_param_locked_t)
- (axis2_environment_t *env
- , axis2_description_param_include_t *param_include
- , const axis2_char_t *param_name);
+ typedef axis2_bool_t (*axis2_description_param_include_is_param_locked_t)
+ (axis2_environment_t * env,
+ axis2_description_param_include_t * param_include,
+ const axis2_char_t * param_name);
/****************************** End of function pointers **********************/
@@ -125,38 +128,39 @@
* Paramter can be any thing it can be XML element with number of child
* elements
*/
-struct axis2_description_param_include_ops_s
-{
- axis2_description_param_include_free_t free;
-
- axis2_description_param_include_add_param_t add_param;
-
- axis2_description_param_include_get_param_t get_param;
-
- axis2_description_param_include_get_params_t get_params;
-
- axis2_description_param_include_is_param_locked_t is_param_locked;
-
-};
+ struct axis2_description_param_include_ops_s
+ {
+ axis2_description_param_include_free_t free;
+
+ axis2_description_param_include_add_param_t add_param;
+
+ axis2_description_param_include_get_param_t get_param;
+
+ axis2_description_param_include_get_params_t get_params;
+
+ axis2_description_param_include_is_param_locked_t is_param_locked;
+
+ };
/** This will return the operations struct of the
* axis2_description_param_include_t struct
* @return operations for axis2_description_param_include_t
*/
-axis2_description_param_include_ops_t *axis2_description_param_include_get_ops
- (axis2_environment_t *env
- , axis2_description_param_include_t *param_include);
+ axis2_description_param_include_ops_t
+ *axis2_description_param_include_get_ops (axis2_environment_t * env,
+ axis2_description_param_include_t
+ * param_include);
/**
* Create axis2_description_param_include_t
* @return axis2_description_param_include_t
*/
-axis2_description_param_include_t *axis2_description_param_include_create
- (axis2_environment_t *env);
+ axis2_description_param_include_t *axis2_description_param_include_create
+ (axis2_environment_t * env);
/** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_DESCRIPTION_PARAM_INCLUDE_H*/
+#endif /* AXIS2_DESCRIPTION_PARAM_INCLUDE_H */
Modified: webservices/axis2/trunk/c/include/axis2_description_parameter.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_description_parameter.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_description_parameter.h (original)
+++ webservices/axis2/trunk/c/include/axis2_description_parameter.h Fri Oct 21 01:28:57 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#ifndef AXIS2_PARAMETER_H
#define AXIS2_PARAMETER_H
@@ -26,7 +26,7 @@
/*#include <axis2_om_element.h>*/
#ifdef __cplusplus
-extern "C"
+extern "C"
{
#endif
@@ -35,14 +35,14 @@
* @{
*/
-/** @} */
+/** @} */
/**
* @defgroup axis2_description_parameter DESCRIPTION Parameter
* @ingroup axis2_description
* @{
- */
-
+ */
+
/************************* Start of function macros ***************************/
#define axis2_description_param_free(env, param) \
@@ -54,21 +54,21 @@
#define axis2_description_param_get_name(env, param) \
(axis2_description_param_get_ops(env, param)->get_name (env, param))
-
+
#define axis2_description_param_set_value(env, param, value) \
(axis2_description_param_get_ops(env, param)->set_value (env \
, param, value))
#define axis2_description_param_get_value(env, param) \
(axis2_description_param_get_ops(env, param)->get_value (env, param))
-
+
#define axis2_description_param_is_locked(env, param) \
(axis2_description_param_get_ops(env, param)->is_locked (env, param))
-
+
#define axis2_description_param_set_locked(env, param, locked) \
(axis2_description_param_get_ops(env, param)->set_locked (env \
, param, locked))
-
+
/*********************** End of function macros *******************************/
/***********************Start of function pointers ****************************/
@@ -77,56 +77,56 @@
* memeory deallocation operation
* @return Status code
*/
-typedef axis2_status_t (*axis2_description_param_free_t)
- (axis2_environment_t *env, axis2_description_param_t * param);
+ typedef axis2_status_t (*axis2_description_param_free_t)
+ (axis2_environment_t * env, axis2_description_param_t * param);
/**
* parameter name set operation
* @param parameter name
* @return Status code
*/
-typedef axis2_status_t (*axis2_description_param_set_name_t)
- (axis2_environment_t *env, axis2_description_param_t * param
- , const axis2_char_t *name);
+ typedef axis2_status_t (*axis2_description_param_set_name_t)
+ (axis2_environment_t * env, axis2_description_param_t * param,
+ const axis2_char_t * name);
/**
* parameter name get operation
* @return parameter name
*/
-typedef axis2_char_t *(*axis2_description_param_get_name_t)
- (axis2_environment_t *env, axis2_description_param_t * param);
+ typedef axis2_char_t *(*axis2_description_param_get_name_t)
+ (axis2_environment_t * env, axis2_description_param_t * param);
/**
* parameter value set operation
* @param parameter value
* @return Status code
*/
-typedef axis2_status_t (*axis2_description_param_set_value_t)
- (axis2_environment_t *env, axis2_description_param_t * param
- , void *value);
+ typedef axis2_status_t (*axis2_description_param_set_value_t)
+ (axis2_environment_t * env, axis2_description_param_t * param,
+ void *value);
/**
* parameter value get operation
* @return parameter value
*/
-typedef void *(*axis2_description_param_get_value_t)
- (axis2_environment_t *env, axis2_description_param_t * param);
+ typedef void *(*axis2_description_param_get_value_t)
+ (axis2_environment_t * env, axis2_description_param_t * param);
/**
* parameter lock check operation
* @return whether parameter is locked or not
*/
-typedef axis2_bool_t (*axis2_description_param_is_locked_t)
- (axis2_environment_t *env, axis2_description_param_t * param);
+ typedef axis2_bool_t (*axis2_description_param_is_locked_t)
+ (axis2_environment_t * env, axis2_description_param_t * param);
/**
* parameter lock set operation
* @param lock boolean value
* @return Status code
*/
-typedef axis2_status_t (*axis2_description_param_set_locked_t)
- (axis2_environment_t *env, axis2_description_param_t * param
- , const axis2_bool_t locked);
+ typedef axis2_status_t (*axis2_description_param_set_locked_t)
+ (axis2_environment_t * env, axis2_description_param_t * param,
+ const axis2_bool_t locked);
/**
* Paramter can be any thing, it can be XML element with number of child
@@ -141,74 +141,78 @@
/*typedef axis2_status_t (*axis2_description_param_set_param_element_t)
(axis2_environment_t *env, axis2_description_param_t *param
, axis2_om_element_t * om_element);
-*/
+*/
/**
* param element get operation
* @return parameter element
*/
-typedef axis2_description_param_t
- *(*axis2_description_param_get_param_element_t) (axis2_environment_t *env
- , axis2_description_param_t *param);
+ typedef axis2_description_param_t
+ *
+ (*axis2_description_param_get_param_element_t) (axis2_environment_t *
+ env,
+ axis2_description_param_t
+ * param);
/**
* parameter type set operation
* @param parameter type
* @return Status code
*/
-typedef axis2_status_t (*axis2_description_param_set_type_t)
- (axis2_environment_t *env, axis2_description_param_t * param
- , const int type);
+ typedef axis2_status_t (*axis2_description_param_set_type_t)
+ (axis2_environment_t * env, axis2_description_param_t * param,
+ const int type);
/**
* parameter type get operation
* @return parameter type
*/
-typedef int (*axis2_description_param_get_type_t)
- (axis2_environment_t *env, axis2_description_param_t *param);
+ typedef int (*axis2_description_param_get_type_t)
+ (axis2_environment_t * env, axis2_description_param_t * param);
/************************ End of function pointers ****************************/
-typedef enum axis2_parameter_types {
- AXIS2_PARAMETER_INVALID = -1,
- AXIS2_PARAMETER_DOM = 10,
- AXIS2_PARAMETER_TEXT = 20,
-
-} axis2_parameter_types_t;
+ typedef enum axis2_parameter_types
+ {
+ AXIS2_PARAMETER_INVALID = -1,
+ AXIS2_PARAMETER_DOM = 10,
+ AXIS2_PARAMETER_TEXT = 20,
+
+ } axis2_parameter_types_t;
/** @struct axis2_description_parameter_ops
@brief DESCRIPTION parameter operations struct
Encapsulator struct for operations of axis2_description_param_t
*/
-struct axis2_description_param_ops_s
-{
- axis2_description_param_free_t free;
- axis2_description_param_set_name_t set_name;
- axis2_description_param_get_name_t get_name;
- axis2_description_param_set_value_t set_value;
- axis2_description_param_get_value_t get_value;
- axis2_description_param_is_locked_t is_locked;
- axis2_description_param_set_locked_t set_locked;
- /*axis2_description_param_set_param_element_t set_param_element;*/
- axis2_description_param_get_param_element_t get_param_element;
- axis2_description_param_set_type_t set_type;
- axis2_description_param_get_type_t get_type;
-};
+ struct axis2_description_param_ops_s
+ {
+ axis2_description_param_free_t free;
+ axis2_description_param_set_name_t set_name;
+ axis2_description_param_get_name_t get_name;
+ axis2_description_param_set_value_t set_value;
+ axis2_description_param_get_value_t get_value;
+ axis2_description_param_is_locked_t is_locked;
+ axis2_description_param_set_locked_t set_locked;
+ /*axis2_description_param_set_param_element_t set_param_element; */
+ axis2_description_param_get_param_element_t get_param_element;
+ axis2_description_param_set_type_t set_type;
+ axis2_description_param_get_type_t get_type;
+ };
/** This will return the operations struct of the
* axis2_description_param_t struct
* @return operations for axis2_description_param_t
*/
-axis2_description_param_ops_t *axis2_description_param_get_ops
- (axis2_environment_t *env, axis2_description_param_t *param);
+ axis2_description_param_ops_t *axis2_description_param_get_ops
+ (axis2_environment_t * env, axis2_description_param_t * param);
/**
* Create axis2_description_param_t
* @return axis2_description_param_t
*/
-axis2_description_param_t *axis2_description_param_create
- (axis2_environment_t *env);
+ axis2_description_param_t *axis2_description_param_create
+ (axis2_environment_t * env);
/**
* Create parameter with name and value
@@ -216,9 +220,9 @@
* @param parameter value
* @return axis2_description_param_t
*/
-axis2_description_param_t *axis2_description_param_create_with_name_value
- (axis2_environment_t *env, const axis2_char_t *name
- , const axis2_char_t *value);
+ axis2_description_param_t *axis2_description_param_create_with_name_value
+ (axis2_environment_t * env, const axis2_char_t * name,
+ const axis2_char_t * value);
/** @} */
@@ -226,4 +230,4 @@
}
#endif
-#endif /* AXIS2_PARAMETER_H */
+#endif /* AXIS2_PARAMETER_H */
Modified: webservices/axis2/trunk/c/include/axis2_description_service.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_description_service.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_description_service.h (original)
+++ webservices/axis2/trunk/c/include/axis2_description_service.h Fri Oct 21 01:28:57 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#ifndef AXIS2_DESCRIPTION_SERVICE_H
#define AXIS2_DESCRIPTION_SERVICE_H
@@ -21,7 +21,7 @@
* @file axis2_description_service.h
* @brief axis2 DESCRIPTION CORE service
*/
-
+
#include <axis2_core.h>
#include <axis2_description_param_include.h>
#include <axis2_description_operation.h>
@@ -29,7 +29,7 @@
#include <axis2_qname.h>
#ifdef __cplusplus
-extern "C"
+extern "C"
{
#endif
@@ -38,7 +38,7 @@
* @{
*/
-/** @} */
+/** @} */
/**
* @defgroup axis2_description_service DESCRIPTION Service
@@ -47,7 +47,7 @@
*/
/**************************** Start of function macros ************************/
-
+
#define axis2_description_service_free(env, service_desc) \
(axis2_description_service_get_ops(env, service_desc)->free \
(env, service_desc));
@@ -55,11 +55,11 @@
#define axis2_description_service_add_param(env, service_desc, param) \
(axis2_description_service_get_ops(env, service_desc)->add_param \
(env, service_desc, param));
-
+
#define axis2_description_service_get_param(env, service_desc) \
(axis2_description_service_get_ops(env, service_desc)->get_param \
(env, service_desc));
-
+
#define axis2_description_service_get_params(env, service_desc) \
(axis2_description_service_get_ops(env, service_desc)->get_params \
(env, service_desc));
@@ -71,7 +71,7 @@
#define axis2_description_service_get_operation_with_qname(env, service_desc) \
(axis2_description_service_get_ops(env, service_desc)->get_operation_with_qname \
(env, service_desc));
-
+
#define axis2_description_service_get_operation_with_name(env, service_desc) \
(axis2_description_service_get_ops(env, service_desc)->get_operation_with_name \
(env, service_desc));
@@ -79,56 +79,68 @@
#define axis2_description_service_get_operations(env, service_desc) \
(axis2_description_service_get_ops(env, service_desc)->get_operations \
(env, service_desc));
-
+
#define axis2_description_service_set_parent(env, service_desc \
, servicegroup_desc) (axis2_description_service_get_ops(env, \
service_desc)->set_parent (env, service_desc, servicegroup_desc));
-
+
#define axis2_description_service_get_parent(env, service_desc) \
(axis2_description_service_get_ops(env, service_desc)->get_parent \
(env, service_desc));
-
-/**************************** End of function macros **************************/
+
+/**************************** End of function macros **************************/
/**************************** Function pointers *******************************/
-
-typedef axis2_status_t (*axis2_description_service_free_t)
- (axis2_environment_t *env, axis2_description_service_t *service_desc);
-typedef axis2_status_t (*axis2_description_service_add_param_t)
- (axis2_environment_t *env, axis2_description_service_t *service_desc
- , axis2_description_param_t *param);
-
-typedef axis2_description_param_t *(*axis2_description_service_get_param_t)
- (axis2_environment_t *env, axis2_description_service_t *service_desc
- , const axis2_char_t *name);
-
-typedef axis2_hash_t *(*axis2_description_service_get_params_t)
- (axis2_environment_t *env, axis2_description_service_t *service_desc);
-
-typedef axis2_status_t (*axis2_description_service_add_operation_t)
- (axis2_environment_t *env, axis2_description_service_t *service_desc
- , axis2_description_operation_t *operation_desc);
-
-typedef axis2_description_operation_t *(*axis2_description_service_get_operation_with_qname_t)
- (axis2_environment_t *env, axis2_description_service_t *service_desc
- , axis2_qname_t *operation_name);
-
-typedef axis2_description_operation_t
- *(*axis2_description_service_get_operation_with_name_t)
- (axis2_environment_t *env, axis2_description_service_t *service_desc
- , const axis2_char_t* operation_name);
-
-typedef axis2_hash_t *(*axis2_description_service_get_operations_t)
- (axis2_environment_t *env, axis2_description_service_t *service_desc);
-
-typedef axis2_status_t (*axis2_description_service_set_parent_t)
- (axis2_environment_t *env, axis2_description_service_t *service_desc
- ,axis2_description_servicegroup_t *servicegroup_desc);
-
-typedef axis2_description_servicegroup_t
- *(*axis2_description_service_get_parent_t)
- (axis2_environment_t *env, axis2_description_service_t *service_desc);
+ typedef axis2_status_t (*axis2_description_service_free_t)
+ (axis2_environment_t * env,
+ axis2_description_service_t * service_desc);
+
+ typedef axis2_status_t (*axis2_description_service_add_param_t)
+ (axis2_environment_t * env,
+ axis2_description_service_t * service_desc,
+ axis2_description_param_t * param);
+
+ typedef axis2_description_param_t
+ *(*axis2_description_service_get_param_t) (axis2_environment_t * env,
+ axis2_description_service_t
+ * service_desc,
+ const axis2_char_t * name);
+
+ typedef axis2_hash_t *(*axis2_description_service_get_params_t)
+ (axis2_environment_t * env,
+ axis2_description_service_t * service_desc);
+
+ typedef axis2_status_t (*axis2_description_service_add_operation_t)
+ (axis2_environment_t * env,
+ axis2_description_service_t * service_desc,
+ axis2_description_operation_t * operation_desc);
+
+ typedef axis2_description_operation_t
+ *(*axis2_description_service_get_operation_with_qname_t)
+ (axis2_environment_t * env,
+ axis2_description_service_t * service_desc,
+ axis2_qname_t * operation_name);
+
+ typedef axis2_description_operation_t
+ * (*axis2_description_service_get_operation_with_name_t)
+ (axis2_environment_t * env,
+ axis2_description_service_t * service_desc,
+ const axis2_char_t * operation_name);
+
+ typedef axis2_hash_t *(*axis2_description_service_get_operations_t)
+ (axis2_environment_t * env,
+ axis2_description_service_t * service_desc);
+
+ typedef axis2_status_t (*axis2_description_service_set_parent_t)
+ (axis2_environment_t * env,
+ axis2_description_service_t * service_desc,
+ axis2_description_servicegroup_t * servicegroup_desc);
+
+ typedef axis2_description_servicegroup_t
+ * (*axis2_description_service_get_parent_t)
+ (axis2_environment_t * env,
+ axis2_description_service_t * service_desc);
/************************ End function pointers *******************************/
@@ -136,47 +148,49 @@
* @brief operations for the axis2_description_service_t
* This contain all the operations for axis2_description_service struct
*/
-struct axis2_description_service_ops_s
-{
- axis2_description_service_free_t free;
-
- axis2_description_service_add_operation_t add_operation;
+ struct axis2_description_service_ops_s
+ {
+ axis2_description_service_free_t free;
+
+ axis2_description_service_add_operation_t add_operation;
+
+ axis2_description_service_add_param_t add_param;
- axis2_description_service_add_param_t add_param;
+ axis2_description_service_get_param_t get_param;
- axis2_description_service_get_param_t get_param;
+ axis2_description_service_get_params_t get_params;
- axis2_description_service_get_params_t get_params;
+ axis2_description_service_get_operation_with_qname_t
+ get_operation_with_qname;
- axis2_description_service_get_operation_with_qname_t
- get_operation_with_qname;
+ axis2_description_service_get_operation_with_name_t
+ get_operation_with_name;
- axis2_description_service_get_operation_with_name_t get_operation_with_name;
+ axis2_description_service_get_operations_t get_operations;
- axis2_description_service_get_operations_t get_operations;
-
- axis2_description_service_set_parent_t set_parent;
+ axis2_description_service_set_parent_t set_parent;
- axis2_description_service_get_parent_t get_parent;
+ axis2_description_service_get_parent_t get_parent;
-};
+ };
/** To get the operation struct for axis_description_service_t call this
* function
* @return operation struct for service
*/
-axis2_description_service_ops_t * axis2_description_service_get_ops
- (axis2_environment_t *env, axis2_description_service_t *service_desc);
+ axis2_description_service_ops_t *axis2_description_service_get_ops
+ (axis2_environment_t * env,
+ axis2_description_service_t * service_desc);
/** Create a service with qualified name
* @param qualified name
* @return service struct
*/
-axis2_description_service_t *axis2_description_service_create_with_qname
- (axis2_environment_t *env, axis2_qname_t *qname);
+ axis2_description_service_t *axis2_description_service_create_with_qname
+ (axis2_environment_t * env, axis2_qname_t * qname);
/** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_DESCRIPTION_SERVICE_H */
+#endif /* AXIS2_DESCRIPTION_SERVICE_H */
Modified: webservices/axis2/trunk/c/include/axis2_description_servicegroup.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_description_servicegroup.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_description_servicegroup.h (original)
+++ webservices/axis2/trunk/c/include/axis2_description_servicegroup.h Fri Oct 21 01:28:57 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#ifndef AXIS2_DESCRIPTION_SERVICEGROUP_H
#define AXIS2_DESCRIPTION_SERVICEGROUP_H
@@ -21,13 +21,13 @@
* @file axis2_description_servicegroup.h
* @brief axis2 DESCRIPTION CORE servicegroup
*/
-
+
#include <axis2_core.h>
#include <axis2_description_param_include.h>
#include <axis2_description_service.h>
#ifdef __cplusplus
-extern "C"
+extern "C"
{
#endif
@@ -36,7 +36,7 @@
* @{
*/
-/** @} */
+/** @} */
/**
* @defgroup axis2_description_servicegroup DESCRIPTION Servicegroup
@@ -45,39 +45,40 @@
*/
/**************************** Start of function macros ************************/
-
+
#define axis2_description_servicegroup_add_service(env, servicegroup_desc \
, service_desc) (axis2_description_service_get_ops(env, \
servicegroup_desc)->get_param (env, servicegroup_desc, service_desc));
-
-/**************************** End of function macros **************************/
+
+/**************************** End of function macros **************************/
/**************************** Function pointers *******************************/
/** Add a service to the serivce group
* @param service to be added
* @return status code
*/
-typedef axis2_status_t (*axis2_description_servicegroup_add_service_t)
- (axis2_environment_t *env
- , axis2_description_servicegroup_t *servicegroup_desc
- , axis2_description_service_t *service_desc);
+ typedef axis2_status_t (*axis2_description_servicegroup_add_service_t)
+ (axis2_environment_t * env,
+ axis2_description_servicegroup_t * servicegroup_desc,
+ axis2_description_service_t * service_desc);
/*************************** End of function pointers *************************/
-struct axis2_description_servicegroup_ops_s
-{
- axis2_description_servicegroup_add_service_t add_service;
-};
-
-axis2_description_servicegroup_ops_t *axis2_description_servicegroup_get_ops
- (axis2_environment_t *env
- , axis2_description_servicegroup_t *servicegroup_desc);
+ struct axis2_description_servicegroup_ops_s
+ {
+ axis2_description_servicegroup_add_service_t add_service;
+ };
+
+ axis2_description_servicegroup_ops_t
+ *axis2_description_servicegroup_get_ops (axis2_environment_t * env,
+ axis2_description_servicegroup_t
+ * servicegroup_desc);
-axis2_description_servicegroup_t *axis2_description_servicegroup_create
- (axis2_environment_t *env);
+ axis2_description_servicegroup_t *axis2_description_servicegroup_create
+ (axis2_environment_t * env);
/** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_DESCRIPTION_SERVICEGROUP_H */
+#endif /* AXIS2_DESCRIPTION_SERVICEGROUP_H */
Modified: webservices/axis2/trunk/c/include/axis2_engine_msg_receiver.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_engine_msg_receiver.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_engine_msg_receiver.h (original)
+++ webservices/axis2/trunk/c/include/axis2_engine_msg_receiver.h Fri Oct 21 01:28:57 2005
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#ifndef AXIS2_ENGINE_MSG_RECEIVER_H
#define AXIS2_ENGINE_MSG_RECEIVER_H
@@ -22,11 +22,11 @@
* @file axis2_engine_msg_receiver.h
* @brief axis2 ENGINE CORE msg_receiver
*/
-
+
#include <axis2_core.h>
#ifdef __cplusplus
-extern "C"
+extern "C"
{
#endif
@@ -35,16 +35,16 @@
* @{
*/
-/** @} */
+/** @} */
/**
* @defgroup axis2_engine_msg_receiver ENGINE Msg_receiver
* @ingroup axis2_engine
* @{
*/
-
+
/************************** Start of function macros **************************/
-
+
#define axis2_engine_msg_receiver_free(env, msg_receiver) \
(axis2_engine_msg_receiver_get_ops(env, \
msg_receiver)->free (env, msg_receiver));
@@ -57,33 +57,34 @@
/************************** Start of function pointers ************************/
-typedef axis2_status_t (*axis2_engine_msg_receiver_free_t)
- (axis2_environment_t *env
- , axis2_engine_msg_receiver_t *msg_receiver);
-
-typedef axis2_status_t (*axis2_engine_msg_receiver_receive_t)
- (axis2_environment_t *env, axis2_engine_msg_receiver_t *msg_receiver
- , axis2_context_msg_ctx_t *msg_ctx);
+ typedef axis2_status_t (*axis2_engine_msg_receiver_free_t)
+ (axis2_environment_t * env,
+ axis2_engine_msg_receiver_t * msg_receiver);
+
+ typedef axis2_status_t (*axis2_engine_msg_receiver_receive_t)
+ (axis2_environment_t * env,
+ axis2_engine_msg_receiver_t * msg_receiver,
+ axis2_context_msg_ctx_t * msg_ctx);
/**************************** End of function pointers ************************/
-struct axis2_engine_msg_receiver_ops_s
-{
- axis2_engine_msg_receiver_free_t free;
-
- axis2_engine_msg_receiver_receive_t receive;
-};
-
-axis2_engine_msg_receiver_t *axis2_engine_msg_receiver_get_ops
- (axis2_environment_t *env
- , axis2_engine_msg_receiver_t *msg_receiver);
+ struct axis2_engine_msg_receiver_ops_s
+ {
+ axis2_engine_msg_receiver_free_t free;
+
+ axis2_engine_msg_receiver_receive_t receive;
+ };
+
+ axis2_engine_msg_receiver_t *axis2_engine_msg_receiver_get_ops
+ (axis2_environment_t * env,
+ axis2_engine_msg_receiver_t * msg_receiver);
-axis2_engine_msg_receiver_t
- *axis2_engine_msg_receiver_create (axis2_environment_t *env);
+ axis2_engine_msg_receiver_t
+ * axis2_engine_msg_receiver_create (axis2_environment_t * env);
/** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_ENGINE_MSG_RECEIVER_H */
+#endif /* AXIS2_ENGINE_MSG_RECEIVER_H */
Modified: webservices/axis2/trunk/c/include/axis2_environment.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_environment.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_environment.h (original)
+++ webservices/axis2/trunk/c/include/axis2_environment.h Fri Oct 21 01:28:57 2005
@@ -17,6 +17,11 @@
#ifndef AXIS2_ENVIRONMENT_H
#define AXIS2_ENVIRONMENT_H
+/**
+ * @file axis2_environment.h
+ * @brief Axis2 environment that acts as a container for error, log and memory allocator routines
+ */
+
#include <axis2_allocator.h>
#include <axis2_error.h>
#include <axis2_stream.h>
@@ -24,29 +29,78 @@
#include <axis2_string.h>
#ifdef __cplusplus
-extern "C" {
+extern "C"
+{
#endif
-struct axis2_environment;
-struct axis2_environment_ops;
-
-typedef struct axis2_environment_ops {
-int test;
-} axis2_environment_ops_t;
-
-typedef struct axis2_environment {
- struct axis2_environment_ops *ops;
- axis2_allocator_t *allocator; /* memory allocation routines */
- axis2_error_t *error; /* error handling */
- axis2_stream_t *stream; /* IO routines */
- axis2_log_t *log; /* logging routines */
- axis2_string_t *string; /* string routines */
-} axis2_environment_t;
+/** @defgroup axis2_util Axis2 utilities
+ * @ingroup axis2
+ * @{
+ */
+
+/** @} */
+
+ struct axis2_environment;
+ struct axis2_environment_ops;
+
+/**
+ * @defgroup axis2_environment Environment Container
+ * @ingroup axis2_util
+ * @{
+ */
+
+ /**
+ * \brief Axis2 Environment operations struct
+ *
+ * Encapsulator struct for operations of axis2_environment
+ */
+ typedef struct axis2_environment_ops
+ {
+ /** This is a dummy member */
+ int dummy;
+ } axis2_environment_ops_t;
+
+ /**
+ * \brief Axis2 Environment struct
+ *
+ * Environment acts as a container for error, log, memory allocator and other routines
+ */
+ typedef struct axis2_environment
+ {
+ /** Environment related operations */
+ axis2_environment_ops_t *ops;
+ /** Memory allocation routines */
+ axis2_allocator_t *allocator;
+ /** Error handling */
+ axis2_error_t *error;
+ /** IO routines */
+ axis2_stream_t *stream;
+ /** Logging routines */
+ axis2_log_t *log;
+ /** String routines */
+ axis2_string_t *string;
+ } axis2_environment_t;
+
+ /**
+ * Creates an environment struct
+ * @param allocator pointer to an instance of allocator struct. Mandatory, cannot be NULL
+ * @param error pointer to an instance of error struct. Optional, can be NULL. If NULL default error handler would be used.
+ * @param stream pointer to an instance of stream struct. Optional, can be NULL. If NULL default stream handler would be used.
+ * @param log pointer to an instance of log struct. Optional, can be NULL. If NULL default log handler would be used.
+ * @param string pointer to an instance of string struct. Optional, can be NULL. If NULL default string handler would be used.
+ * @return pointer to the newly created environment struct
+ */
+ AXIS2_DECLARE(axis2_environment_t *) axis2_environment_create (axis2_allocator_t *
+ allocator,
+ axis2_error_t * error,
+ axis2_stream_t * stream,
+ axis2_log_t * log,
+ axis2_string_t * string);
-axis2_environment_t *axis2_environment_create(axis2_allocator_t *allocator, axis2_error_t *error, axis2_stream_t *stream, axis2_log_t *log, axis2_string_t *string);
+/** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_ENVIRONMENT_H */
+#endif /* AXIS2_ENVIRONMENT_H */
Modified: webservices/axis2/trunk/c/include/axis2_error.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_error.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_error.h (original)
+++ webservices/axis2/trunk/c/include/axis2_error.h Fri Oct 21 01:28:57 2005
@@ -21,49 +21,108 @@
#include <axis2_allocator.h>
#ifdef __cplusplus
-extern "C" {
+extern "C"
+{
#endif
-struct axis2_error;
-struct axis2_error_ops;
+ struct axis2_error;
+ struct axis2_error_ops;
-typedef struct axis2_error_ops {
- axis2_char_t* (*get_message)();
-} axis2_error_ops_t;
-
-typedef struct axis2_error {
- struct axis2_error_ops *ops;
- int errorno;
-} axis2_error_t;
-
-axis2_error_t *axis2_error_create(axis2_allocator_t* allocator);
-
-#define axis2_error_get_message(error) ((error)->ops->get_message())
-
-typedef enum axis2_status_codes {
- AXIS2_FAILURE = 0,
- AXIS2_SUCCESS
-} axis2_status_codes_t;
-
-typedef enum axis2_error_codes {
- AXIS2_ERROR_NONE = 0,
- AXIS2_ERROR_NO_MEMORY,
- AXIS2_ERROR_INVALID_NULL_PARAMETER,
- AXIS2_ERROR_INVALID_ITERATOR_STATE,
- AXIS2_ERROR_INVALID_NODE_TYPE,
- AXIS2_ERROR_PULL_PARSER_ELEMENT_NULL,
- AXIS2_ERROR_PULL_PARSER_VALUE_NULL,
- AXIS2_ERROR_BUILDER_DONE_CANNOT_PULL,
- AXIS2_ERROR_INVALID_BUILDER_STATE_LAST_NODE_NULL,
- AXIS2_ERROR_INVALID_BUILDER_STATE_CANNOT_DISCARD,
- AXIS2_ERROR_INVALID_DOCUMENT_STATE_ROOT_NULL,
- AXIS2_ERROR_INVALID_DOCUMENT_STATE_UNDEFINED_NAMESPACE,
- AXIS2_ERROR_UNALLOCATED_MEMEORY_RELEASE_REQUESTED
-} axis2_error_codes_t;
+/**
+ * @defgroup axis2_error Error
+ * @ingroup axis2_util
+ * @{
+ */
+
+ /**
+ * \brief Axis2 error operations struct
+ *
+ * Encapsulator struct for operations of axis2_error
+ */
+ typedef struct axis2_error_ops
+ {
+ /**
+ * get error message for the last error
+ * @return error message for the last error. NULL on error.
+ */
+ AXIS2_DECLARE(axis2_char_t *) (*axis2_error_ops_get_message) ();
+ } axis2_error_ops_t;
+
+ /**
+ * \brief Axis2 Error struct
+ *
+ * Error holds the last errorno
+ */
+ typedef struct axis2_error
+ {
+ /** error related operations */
+ struct axis2_error_ops *ops;
+ /** last error number */
+ int errorno;
+ } axis2_error_t;
+
+ /**
+ * Creates an error struct
+ * @param allocator allocator to be used. Mandatory, cannot be NULL
+ * @return pointer to the newly created error struct
+ */
+ AXIS2_DECLARE(axis2_error_t *) axis2_error_create (axis2_allocator_t * allocator);
+
+#define axis2_error_get_message(error) ((error)->ops->axis2_error_ops_get_message())
+
+ /**
+ * \brief Axis2 status codes
+ *
+ * Possible status values for Axis2
+ */
+ typedef enum axis2_status_codes
+ {
+ /** Failure state */
+ AXIS2_FAILURE = 0,
+ /** Success state */
+ AXIS2_SUCCESS
+ } axis2_status_codes_t;
+
+ /**
+ * \brief Axis2 error codes
+ *
+ * Set of error codes for Axis2
+ */
+ typedef enum axis2_error_codes
+ {
+ /** No error */
+ AXIS2_ERROR_NONE = 0,
+ /** Out of memory */
+ AXIS2_ERROR_NO_MEMORY,
+ /** NULL paramater was passed when a non NULL parameter was expected */
+ AXIS2_ERROR_INVALID_NULL_PARAMETER,
+ /** Iterator state invalid e.g. next called before calling first */
+ AXIS2_ERROR_INVALID_ITERATOR_STATE,
+ /** Node type is different from what is expected */
+ AXIS2_ERROR_INVALID_NODE_TYPE,
+ /** Pull parser returned NULL element */
+ AXIS2_ERROR_PULL_PARSER_ELEMENT_NULL,
+ /** Pull parser returned NULL value */
+ AXIS2_ERROR_PULL_PARSER_VALUE_NULL,
+ /** Builder done with pulling. Cannot pull any more */
+ AXIS2_ERROR_BUILDER_DONE_CANNOT_PULL,
+ /** Bulder's last node is NULL when it is not supposed to be NULL */
+ AXIS2_ERROR_INVALID_BUILDER_STATE_LAST_NODE_NULL,
+ /** Discard faile because the builder state is invalid */
+ AXIS2_ERROR_INVALID_BUILDER_STATE_CANNOT_DISCARD,
+ /** Document root is NULL, when it is not supposed to be NULL */
+ AXIS2_ERROR_INVALID_DOCUMENT_STATE_ROOT_NULL,
+ /** Undefined namespace used */
+ AXIS2_ERROR_INVALID_DOCUMENT_STATE_UNDEFINED_NAMESPACE,
+ /** Trying to release unallocated memory */
+ AXIS2_ERROR_UNALLOCATED_MEMEORY_RELEASE_REQUESTED
+ } axis2_error_codes_t;
+/** @} */
+
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_ERROR_H */
+#endif /* AXIS2_ERROR_H */
Modified: webservices/axis2/trunk/c/include/axis2_hash.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_hash.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_hash.h (original)
+++ webservices/axis2/trunk/c/include/axis2_hash.h Fri Oct 21 01:28:57 2005
@@ -26,12 +26,13 @@
#include <axis2_environment.h>
#ifdef __cplusplus
-extern "C" {
+extern "C"
+{
#endif
/**
* @defgroup axis2_hash Hash Tables
- * @ingroup axis2
+ * @ingroup axis2_util
* @{
*/
@@ -50,12 +51,12 @@
/**
* Abstract type for hash tables.
*/
-typedef struct axis2_hash_t axis2_hash_t;
+ typedef struct axis2_hash_t axis2_hash_t;
/**
* Abstract type for scanning hash tables.
*/
-typedef struct axis2_hash_index_t axis2_hash_index_t;
+ typedef struct axis2_hash_index_t axis2_hash_index_t;
/**
* Callback functions for calculating hash values.
@@ -63,19 +64,21 @@
* @param klen The length of the key, or AXIS2_HASH_KEY_STRING to use the string
* length. If AXIS2_HASH_KEY_STRING then returns the actual key length.
*/
-typedef unsigned int (*axis2_hashfunc_t)(const char *key, axis2_ssize_t *klen);
+ typedef unsigned int (*axis2_hashfunc_t) (const char *key,
+ axis2_ssize_t * klen);
/**
* The default hash function.
*/
-unsigned int axis2_hashfunc_default(const char *key, axis2_ssize_t *klen);
+ unsigned int axis2_hashfunc_default (const char *key,
+ axis2_ssize_t * klen);
/**
* Create a hash table.
* @param environment The environment to allocate the hash table out of
* @return The hash table just created
*/
-axis2_hash_t *axis2_hash_make(axis2_environment_t *environment);
+ axis2_hash_t *axis2_hash_make (axis2_environment_t * environment);
/**
* Create a hash table with a custom hash function
@@ -83,8 +86,8 @@
* @param hash_func A custom hash function.
* @return The hash table just created
*/
-axis2_hash_t *axis2_hash_make_custom(axis2_environment_t *environment,
- axis2_hashfunc_t hash_func);
+ axis2_hash_t *axis2_hash_make_custom (axis2_environment_t * environment,
+ axis2_hashfunc_t hash_func);
/**
* Make a copy of a hash table
@@ -93,8 +96,8 @@
* @return The hash table just created
* @remark Makes a shallow copy
*/
-axis2_hash_t *axis2_hash_copy(axis2_environment_t *environment,
- const axis2_hash_t *h);
+ axis2_hash_t *axis2_hash_copy (axis2_environment_t * environment,
+ const axis2_hash_t * h);
/**
* Associate a value with a key in a hash table.
@@ -104,8 +107,8 @@
* @param val Value to associate with the key
* @remark If the value is NULL the hash entry is deleted.
*/
-void axis2_hash_set(axis2_hash_t *ht, const void *key,
- axis2_ssize_t klen, const void *val);
+ void axis2_hash_set (axis2_hash_t * ht, const void *key,
+ axis2_ssize_t klen, const void *val);
/**
* Look up the value associated with a key in a hash table.
@@ -114,8 +117,8 @@
* @param klen Length of the key. Can be AXIS2_HASH_KEY_STRING to use the string length.
* @return Returns NULL if the key is not present.
*/
-void *axis2_hash_get(axis2_hash_t *ht, const void *key,
- axis2_ssize_t klen);
+ void *axis2_hash_get (axis2_hash_t * ht, const void *key,
+ axis2_ssize_t klen);
/**
* Start iterating over the entries in a hash table.
@@ -145,7 +148,8 @@
* }
* </PRE>
*/
-axis2_hash_index_t *axis2_hash_first(axis2_environment_t *environment, axis2_hash_t *ht);
+ axis2_hash_index_t *axis2_hash_first (axis2_environment_t * environment,
+ axis2_hash_t * ht);
/**
* Continue iterating over the entries in a hash table.
@@ -153,7 +157,7 @@
* @return a pointer to the updated iteration state. NULL if there are no more
* entries.
*/
-axis2_hash_index_t *axis2_hash_next(axis2_hash_index_t *hi);
+ axis2_hash_index_t *axis2_hash_next (axis2_hash_index_t * hi);
/**
* Get the current entry's details from the iteration state.
@@ -164,15 +168,15 @@
* @remark The return pointers should point to a variable that will be set to the
* corresponding data, or they may be NULL if the data isn't interesting.
*/
-void axis2_hash_this(axis2_hash_index_t *hi, const void **key,
- axis2_ssize_t *klen, void **val);
+ void axis2_hash_this (axis2_hash_index_t * hi, const void **key,
+ axis2_ssize_t * klen, void **val);
/**
* Get the number of key/value pairs in the hash table.
* @param ht The hash table
* @return The number of key/value pairs in the hash table.
*/
-unsigned int axis2_hash_count(axis2_hash_t *ht);
+ unsigned int axis2_hash_count (axis2_hash_t * ht);
/**
* Merge two hash tables into one new hash table. The values of the overlay
@@ -183,9 +187,9 @@
* @param base The table that represents the initial values of the new table
* @return A new hash table containing all of the data from the two passed in
*/
-axis2_hash_t *axis2_hash_overlay(axis2_environment_t *environment,
- const axis2_hash_t *overlay,
- const axis2_hash_t *base);
+ axis2_hash_t *axis2_hash_overlay (axis2_environment_t * environment,
+ const axis2_hash_t * overlay,
+ const axis2_hash_t * base);
/**
* Merge two hash tables into one new hash table. If the same key
@@ -201,21 +205,17 @@
* @param data Client data to pass to the merger function
* @return A new hash table containing all of the data from the two passed in
*/
-axis2_hash_t *axis2_hash_merge(axis2_environment_t *environment,
- const axis2_hash_t *h1,
- const axis2_hash_t *h2,
- void * (*merger)(axis2_environment_t *environment,
+ axis2_hash_t *axis2_hash_merge (axis2_environment_t * environment,
+ const axis2_hash_t * h1,
+ const axis2_hash_t * h2,
+ void *(*merger) (axis2_environment_t *
+ environment,
const void *key,
axis2_ssize_t klen,
const void *h1_val,
const void *h2_val,
const void *data),
- const void *data);
-
-/**
- * Get a pointer to the environment which the hash table was created in
- */
-/*AXIS2_POOL_DECLARE_ACCESSOR(hash);*/
+ const void *data);
/** @} */
@@ -223,4 +223,4 @@
}
#endif
-#endif /* !AXIS2_HASH_H */
+#endif /* !AXIS2_HASH_H */
Modified: webservices/axis2/trunk/c/include/axis2_log.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_log.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_log.h (original)
+++ webservices/axis2/trunk/c/include/axis2_log.h Fri Oct 21 01:28:57 2005
@@ -20,40 +20,81 @@
#include <axis2_allocator.h>
#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef enum axis2_log_levels
+extern "C"
{
- AXIS2_LOG_DEBUG = 0,
- AXIS2_LOG_INFO,
- AXIS2_LOG_WARNING,
- AXIS2_LOG_ERROR,
- AXIS2_LOG_CRITICAL
-} axis2_log_levels_t;
-
-struct axis2_log;
-struct axis2_log_ops;
-
-typedef struct axis2_log_ops
-{
- int (*write) (const void *buffer, size_t count);
-} axis2_log_ops_t;
+#endif
-typedef struct axis2_log
-{
- struct axis2_log_ops *ops;
- axis2_log_levels_t level;
- int enabled; /*boolean */
-} axis2_log_t;
+ struct axis2_log;
+ struct axis2_log_ops;
-axis2_log_t *axis2_log_create (axis2_allocator_t * allocator,
- axis2_log_ops_t * operations);
+/**
+ * @defgroup axis2_log Log
+ * @ingroup axis2_util
+ * @{
+ */
+
+/**
+ * \brief Axis2 log levels
+ */
+ typedef enum axis2_log_levels
+ {
+ /** Debug level, logs everything */
+ AXIS2_LOG_DEBUG = 0,
+ /** Info level, logs information */
+ AXIS2_LOG_INFO,
+ /** Warning level, logs only warnings */
+ AXIS2_LOG_WARNING,
+ /** Error level, logs only errors */
+ AXIS2_LOG_ERROR,
+ /** Critical level, logs only critical errors */
+ AXIS2_LOG_CRITICAL
+ } axis2_log_levels_t;
+
+ /**
+ * \brief Axis2 log operations struct
+ *
+ * Encapsulator struct for operations of axis2_log
+ */
+ typedef struct axis2_log_ops
+ {
+ /**
+ * writes to the log
+ * @param buffer buffer to be written to log
+ * @param size size of the buffer to be written to log
+ * @return satus of the operation. AXIS2_SUCCESS on success else AXIS2_FAILURE
+ */
+ AXIS2_DECLARE(axis2_status_t) (*axis2_log_ops_write) (const void *buffer, size_t count);
+ } axis2_log_ops_t;
+
+ /**
+ * \brief Axis2 Log struct
+ *
+ * Log is the encapsulating struct for all log related data and operations
+ */
+ typedef struct axis2_log
+ {
+ /** Log related operations */
+ struct axis2_log_ops *ops;
+ /** Log level */
+ axis2_log_levels_t level;
+ /** Is logging enabled? */
+ axis2_bool_t enabled;
+ } axis2_log_t;
+
+ /**
+ * Creates a log struct
+ * @param allocator allocator to be used. Mandatory, cannot be NULL
+ * @return pointer to the newly created log struct
+ */
+ AXIS2_DECLARE(axis2_log_t *) axis2_log_create (axis2_allocator_t * allocator,
+ axis2_log_ops_t * operations);
-#define axis2_log_write(log, buffer, count) ((log)->ops->write(buffer, count))
+#define axis2_log_write(log, buffer, count) ((log)->ops->axis2_log_ops_write(buffer, count))
+/** @} */
+
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_LOG_H */
+#endif /* AXIS2_LOG_H */
Modified: webservices/axis2/trunk/c/include/axis2_om_attribute.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_attribute.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_attribute.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_attribute.h Fri Oct 21 01:28:57 2005
@@ -27,7 +27,8 @@
#include <axis2_om_output.h>
#ifdef __cplusplus
-extern "C" {
+extern "C"
+{
#endif
/**
@@ -38,25 +39,29 @@
/** @cond */
-struct axis2_om_attribute;
-struct axis2_om_attribute_ops;
+ struct axis2_om_attribute;
+ struct axis2_om_attribute_ops;
/** @endcond */
-
+
/** \struct axis2_om_attribute
* \brief OM attribute operations struct
*
* Encapsulator struct for axis2_om_attribute_t
*/
-typedef struct axis2_om_attribute_ops
-{
+ typedef struct axis2_om_attribute_ops
+ {
/**
* Free an axis2_om_attribute struct
* @param environment Environment .MUST NOT be NULL, if NULL behaviour is undefined.
* @return Status code
*/
- axis2_status_t (*axis2_om_attribute_ops_free)(axis2_environment_t *environment, struct axis2_om_attribute *om_attribute);
+ axis2_status_t (*axis2_om_attribute_ops_free) (axis2_environment_t *
+ environment,
+ struct
+ axis2_om_attribute *
+ om_attribute);
/**
* Creates and returns a qname struct for this attribute
@@ -65,7 +70,11 @@
* @return returns null on error
*/
- axis2_qname_t *(*axis2_om_attribute_ops_get_qname)(axis2_environment_t *environment,struct axis2_om_attribute *om_attribute);
+ axis2_qname_t
+ *(*axis2_om_attribute_ops_get_qname) (axis2_environment_t *
+ environment,
+ struct axis2_om_attribute *
+ om_attribute);
/**
* Serialize operation
@@ -74,9 +83,14 @@
* @return Status code
*/
- int (*axis2_om_attribute_ops_serialize)(axis2_environment_t *environment,struct axis2_om_attribute *om_attribute,axis2_om_output_t *om_output);
+ int (*axis2_om_attribute_ops_serialize) (axis2_environment_t *
+ environment,
+ struct axis2_om_attribute *
+ om_attribute,
+ axis2_om_output_t *
+ om_output);
-}axis2_om_attribute_ops_t;
+ } axis2_om_attribute_ops_t;
/** \struct axis2_om_attribute
* \brief OM attribute struct
@@ -84,18 +98,18 @@
* Handles the XML attribute in OM
*/
-typedef struct axis2_om_attribute
-{
+ typedef struct axis2_om_attribute
+ {
/** operations of attributes */
- axis2_om_attribute_ops_t *ops;
+ axis2_om_attribute_ops_t *ops;
/** localname of this attribute */
- axis2_char_t *localname;
+ axis2_char_t *localname;
/** value of this attribute */
- axis2_char_t *value;
+ axis2_char_t *value;
/** attribute namespace */
- axis2_om_namespace_t *ns;
-}axis2_om_attribute_t;
+ axis2_om_namespace_t *ns;
+ } axis2_om_attribute_t;
/**
* creates an om_attribute structure
@@ -106,7 +120,14 @@
* @return The a pointer to newly created attribute struct
*/
-axis2_om_attribute_t *axis2_om_attribute_create(axis2_environment_t *environment ,const axis2_char_t *localname,const axis2_char_t *value, axis2_om_namespace_t *ns);
+ axis2_om_attribute_t *axis2_om_attribute_create (axis2_environment_t *
+ environment,
+ const axis2_char_t *
+ localname,
+ const axis2_char_t *
+ value,
+ axis2_om_namespace_t *
+ ns);
/* macros */
#define axis2_om_attribute_free(environment, om_attribute) ((om_attribute)->ops->axis2_om_attribute_ops_free(environment, om_attribute))
@@ -119,4 +140,4 @@
}
#endif
-#endif /* AXIS2_OM_ATTRIBUTE_H */
+#endif /* AXIS2_OM_ATTRIBUTE_H */
Modified: webservices/axis2/trunk/c/include/axis2_om_comment.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_comment.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_comment.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_comment.h Fri Oct 21 01:28:57 2005
@@ -25,7 +25,8 @@
#include <axis2_om_node.h>
#ifdef __cplusplus
-extern "C" {
+extern "C"
+{
#endif
/**
@@ -35,39 +36,42 @@
*/
/** @cond */
-struct axis2_om_comment;
-struct axis2_om_comment_ops;
+ struct axis2_om_comment;
+ struct axis2_om_comment_ops;
/** @endcond */
-
+
/** @struct axis2_om_comment_ops
* @brief OM comment operations struct
* Encapsulator struct for operations of axis2_om_comment_t
*/
-
-typedef struct axis2_om_comment_ops
-{
+
+ typedef struct axis2_om_comment_ops
+ {
/**
* Free a axis2_comment struct
* @param environment Environment .MUST NOT be NULL, if NULL behaviour is undefined.
* @param comment pointer to the axis2_commnet
* @returns status code
*/
- axis2_status_t (*axis2_om_comment_ops_free)(axis2_environment_t *environment, struct axis2_om_comment *comment);
+ axis2_status_t (*axis2_om_comment_ops_free) (axis2_environment_t *
+ environment,
+ struct axis2_om_comment *
+ comment);
-} axis2_om_comment_ops_t;
+ } axis2_om_comment_ops_t;
/** \struct axis2_om_comment
\brief OM comment struct
Handles the XML comment in OM
*/
-typedef struct axis2_om_comment
-{
+ typedef struct axis2_om_comment
+ {
/** operations struct */
- axis2_om_comment_ops_t *ops;
- /** value */
- char *value;
-} axis2_om_comment_t;
+ axis2_om_comment_ops_t *ops;
+ /** value */
+ char *value;
+ } axis2_om_comment_t;
/**
* Create a comment struct and stores in in a node struct and returns a pointer
@@ -79,7 +83,11 @@
* this node struct pointer
* @return pointer to a node_t struct containing the comment struct
*/
-axis2_om_comment_t *axis2_om_comment_create(axis2_environment_t *environment, const axis2_char_t *value, axis2_om_node_t **comment_node);
+ axis2_om_comment_t *axis2_om_comment_create (axis2_environment_t *
+ environment,
+ const axis2_char_t * value,
+ axis2_om_node_t **
+ comment_node);
#define axis2_om_comment_free(environment, comment) ((comment)->ops->axis2_om_comment_ops_free(environment, comment))
/** @} */
@@ -88,4 +96,4 @@
}
#endif
-#endif /* AXIS2_OM_COMMENT_H */
+#endif /* AXIS2_OM_COMMENT_H */
Modified: webservices/axis2/trunk/c/include/axis2_om_doctype.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_om_doctype.h?rev=327117&r1=327116&r2=327117&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_om_doctype.h (original)
+++ webservices/axis2/trunk/c/include/axis2_om_doctype.h Fri Oct 21 01:28:57 2005
@@ -25,7 +25,8 @@
#include <axis2_om_node.h>
#ifdef __cplusplus
-extern "C" {
+extern "C"
+{
#endif
/**
@@ -35,36 +36,39 @@
*/
/** @cond */
-struct axis2_om_doctype;
-struct axis2_om_doctype_ops;
+ struct axis2_om_doctype;
+ struct axis2_om_doctype_ops;
/** @endcond */
-
+
/** @struct axis2_om_doctype_ops
@brief OM doctype operations struct
Encapsulator struct for operations of axis2_om_doctype_t
*/
-typedef struct axis2_om_doctype_ops
-{
- /**
+ typedef struct axis2_om_doctype_ops
+ {
+ /**
* free the axis2_om_doctype_t struct
* @param environment Environment .MUST NOT be NULL, if NULL behaviour is undefined.
* @param om_doc pointer to axis2_om_doctype_t struct
* @returns status code
*/
- axis2_status_t (*axis2_om_doctype_ops_free)(axis2_environment_t *environment, struct axis2_om_doctype *om_doctype);
-} axis2_om_doctype_ops_t;
+ axis2_status_t (*axis2_om_doctype_ops_free) (axis2_environment_t *
+ environment,
+ struct axis2_om_doctype *
+ om_doctype);
+ } axis2_om_doctype_ops_t;
/** \struct axis2_om_doctype
\brief OM doctype struct
Handles the XML document type in OM
*/
-typedef struct axis2_om_doctype
-{
- axis2_om_doctype_ops_t* ops;
- char *value;
-}axis2_om_doctype_t;
+ typedef struct axis2_om_doctype
+ {
+ axis2_om_doctype_ops_t *ops;
+ char *value;
+ } axis2_om_doctype_t;
/**
* Create a doctype struct and stores in in a node struct and returns a pointer
@@ -76,7 +80,11 @@
* @return pointer to a axis2_om_node_t struct containing the doctype struct
*/
-axis2_om_doctype_t *axis2_om_doctype_create(axis2_environment_t *environment, axis2_om_node_t *parent, const axis2_char_t *value, axis2_om_node_t **node);
+ axis2_om_doctype_t *axis2_om_doctype_create (axis2_environment_t *
+ environment,
+ axis2_om_node_t * parent,
+ const axis2_char_t * value,
+ axis2_om_node_t ** node);
#define axis2_om_doctype_free(environment, doctype) ((doctype)->ops->axis2_om_doctype_ops_free(environment, doctype))
@@ -85,4 +93,4 @@
}
#endif
-#endif /* AXIS2_OM_DOCTYPE_H */
+#endif /* AXIS2_OM_DOCTYPE_H */