axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r429983 - in /webservices/axis2/trunk/c/modules/core/deployment: arch_file_data.c axis2_arch_file_data.h
Date Wed, 09 Aug 2006 06:50:49 GMT
Author: pini
Date: Tue Aug  8 23:50:49 2006
New Revision: 429983

URL: http://svn.apache.org/viewvc?rev=429983&view=rev
Log:
More formatting fixes and parameter changes to const.

Modified:
    webservices/axis2/trunk/c/modules/core/deployment/arch_file_data.c
    webservices/axis2/trunk/c/modules/core/deployment/axis2_arch_file_data.h

Modified: webservices/axis2/trunk/c/modules/core/deployment/arch_file_data.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/arch_file_data.c?rev=429983&r1=429982&r2=429983&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/arch_file_data.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/arch_file_data.c Tue Aug  8 23:50:49
2006
@@ -19,14 +19,13 @@
 #include <axis2_class_loader.h>
 
 /** 
- * @brief
  * ArchiveFileData = Hot Deployment File Item.
  * To store infromation of the 
  * module or service item to be deployed
  */
 typedef struct axis2_arch_file_data_impl
 {
-   axis2_arch_file_data_t arch_file_data;
+    axis2_arch_file_data_t arch_file_data;
     axis2_file_t *file;
     int type;
     axis2_char_t *msg_recv;
@@ -41,7 +40,8 @@
     axis2_hash_t *svc_map;
     axis2_array_list_t *deployable_svcs;
        
-} axis2_arch_file_data_impl_t;
+}
+axis2_arch_file_data_impl_t;
 
 #define AXIS2_INTF_TO_IMPL(arch_file_data) \
     ((axis2_arch_file_data_impl_t *) arch_file_data)
@@ -49,80 +49,97 @@
 /************************* Function prototypes ********************************/
 
 axis2_status_t AXIS2_CALL 
-axis2_arch_file_data_free (axis2_arch_file_data_t *arch_file_data, 
-                            const axis2_env_t *env);
+axis2_arch_file_data_free(
+    axis2_arch_file_data_t *arch_file_data, 
+    const axis2_env_t *env);
 
 axis2_char_t *AXIS2_CALL
-axis2_arch_file_data_get_msg_recv(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env);
+axis2_arch_file_data_get_msg_recv(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
-axis2_arch_file_data_set_msg_recv(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *msg_recv);
+axis2_arch_file_data_set_msg_recv(
+    axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_char_t *msg_recv);
 
 axis2_char_t *AXIS2_CALL
-axis2_arch_file_data_get_name(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env);
+axis2_arch_file_data_get_name(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env);
 
 axis2_char_t *AXIS2_CALL
-axis2_arch_file_data_get_svc_name(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env);
+axis2_arch_file_data_get_svc_name(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env);
 
 int AXIS2_CALL
-axis2_arch_file_data_get_type(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env);
+axis2_arch_file_data_get_type(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env);
 
 axis2_file_t *AXIS2_CALL
-axis2_arch_file_data_get_file(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env);
+axis2_arch_file_data_get_file(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env);
 
 axis2_char_t *AXIS2_CALL
-axis2_arch_file_data_get_module_name(axis2_arch_file_data_t *file_data,
-                                            const axis2_env_t *env);
+axis2_arch_file_data_get_module_name(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
-axis2_arch_file_data_set_module_name(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *module_name);
+axis2_arch_file_data_set_module_name(
+    axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_char_t *module_name);
                                     
 axis2_char_t *AXIS2_CALL
-axis2_arch_file_data_get_module_dll_name(axis2_arch_file_data_t *file_data,
-                                            const axis2_env_t *env);
+axis2_arch_file_data_get_module_dll_name(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
-axis2_arch_file_data_set_module_dll_name(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *module_dll_name);
+axis2_arch_file_data_set_module_dll_name(
+    axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_char_t *module_dll_name);
                                     
 axis2_status_t AXIS2_CALL
-axis2_arch_file_data_add_svc(axis2_arch_file_data_t *file_data,
-                                const axis2_env_t *env,
-                                axis2_svc_t *svc_desc);
+axis2_arch_file_data_add_svc(
+    axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_svc_t *svc_desc);
 
 struct axis2_svc *AXIS2_CALL
-axis2_arch_file_data_get_svc(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *svc_name);
+axis2_arch_file_data_get_svc(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_char_t *svc_name);
 
 axis2_hash_t *AXIS2_CALL
-axis2_arch_file_data_get_svc_map(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env);
+axis2_arch_file_data_get_svc_map(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env);
 
 axis2_array_list_t *AXIS2_CALL
-axis2_arch_file_data_get_deployable_svcs(axis2_arch_file_data_t *file_data,
-                                            const axis2_env_t *env);
+axis2_arch_file_data_get_deployable_svcs(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
-axis2_arch_file_data_set_deployable_svcs(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env,
-                                    axis2_array_list_t *deployable_svcs);
+axis2_arch_file_data_set_deployable_svcs(
+    axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_array_list_t *deployable_svcs);
 
                                
 /************************** End of function prototypes ************************/
 
-AXIS2_EXTERN axis2_arch_file_data_t * AXIS2_CALL
-axis2_arch_file_data_create(const axis2_env_t *env)
+AXIS2_EXTERN axis2_arch_file_data_t *AXIS2_CALL
+axis2_arch_file_data_create(
+    const axis2_env_t *env)
 {
     axis2_arch_file_data_impl_t *arch_file_data_impl = NULL;
     
@@ -200,10 +217,11 @@
    return &(arch_file_data_impl->arch_file_data);
 }
 
-AXIS2_EXTERN axis2_arch_file_data_t * AXIS2_CALL 
-axis2_arch_file_data_create_with_type_and_file(const axis2_env_t *env,
-                                                    int type,
-                                                    axis2_file_t *file)
+AXIS2_EXTERN axis2_arch_file_data_t *AXIS2_CALL 
+axis2_arch_file_data_create_with_type_and_file(
+    const axis2_env_t *env,
+    int type,
+    axis2_file_t *file)
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     file_data_impl = (axis2_arch_file_data_impl_t *) 
@@ -217,10 +235,11 @@
     return &(file_data_impl->arch_file_data);    
 }
 
-AXIS2_EXTERN axis2_arch_file_data_t * AXIS2_CALL
-axis2_arch_file_data_create_with_type_and_name(const axis2_env_t *env,
-                                                    int type,
-                                                    const axis2_char_t *name)
+AXIS2_EXTERN axis2_arch_file_data_t *AXIS2_CALL
+axis2_arch_file_data_create_with_type_and_name(
+    const axis2_env_t *env,
+    int type,
+    const axis2_char_t *name)
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     file_data_impl = (axis2_arch_file_data_impl_t *)
@@ -237,8 +256,9 @@
 /***************************Function implementation****************************/
 
 axis2_status_t AXIS2_CALL 
-axis2_arch_file_data_free (axis2_arch_file_data_t *arch_file_data, 
-                            const axis2_env_t *env)
+axis2_arch_file_data_free(
+    axis2_arch_file_data_t *arch_file_data, 
+    const axis2_env_t *env)
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     
@@ -315,17 +335,19 @@
 }
 
 axis2_char_t *AXIS2_CALL
-axis2_arch_file_data_get_msg_recv(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env)
+axis2_arch_file_data_get_msg_recv(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(file_data)->msg_recv;
 }
 
 axis2_status_t AXIS2_CALL
-axis2_arch_file_data_set_msg_recv(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *msg_recv)
+axis2_arch_file_data_set_msg_recv(
+    axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_char_t *msg_recv)
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -342,8 +364,9 @@
 }
 
 axis2_char_t *AXIS2_CALL
-axis2_arch_file_data_get_name(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env) 
+axis2_arch_file_data_get_name(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env) 
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     
@@ -354,8 +377,9 @@
 }
 
 axis2_char_t *AXIS2_CALL
-axis2_arch_file_data_get_svc_name(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env)
+axis2_arch_file_data_get_svc_name(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env)
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     axis2_char_t *svc_name = NULL;
@@ -376,24 +400,27 @@
 }
 
 int AXIS2_CALL
-axis2_arch_file_data_get_type(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env) 
+axis2_arch_file_data_get_type(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(file_data)->type;
 }
 
 axis2_file_t *AXIS2_CALL
-axis2_arch_file_data_get_file(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env) 
+axis2_arch_file_data_get_file(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(file_data)->file;
 }
 
 axis2_char_t *AXIS2_CALL
-axis2_arch_file_data_get_module_name(axis2_arch_file_data_t *file_data,
-                                            const axis2_env_t *env)
+axis2_arch_file_data_get_module_name(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env)
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     axis2_char_t *module_name = NULL;
@@ -413,9 +440,10 @@
 }
 
 axis2_status_t AXIS2_CALL
-axis2_arch_file_data_set_module_name(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *module_name) 
+axis2_arch_file_data_set_module_name(
+    axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_char_t *module_name) 
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -432,8 +460,9 @@
 }
 
 axis2_char_t *AXIS2_CALL
-axis2_arch_file_data_get_module_dll_name(axis2_arch_file_data_t *file_data,
-                                            const axis2_env_t *env)
+axis2_arch_file_data_get_module_dll_name(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env)
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     
@@ -444,9 +473,10 @@
 }
 
 axis2_status_t AXIS2_CALL
-axis2_arch_file_data_set_module_dll_name(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *module_dll_name) 
+axis2_arch_file_data_set_module_dll_name(
+    axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_char_t *module_dll_name) 
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -463,9 +493,10 @@
 }
 
 axis2_status_t AXIS2_CALL
-axis2_arch_file_data_add_svc(axis2_arch_file_data_t *file_data,
-                                const axis2_env_t *env,
-                                axis2_svc_t *svc_desc)
+axis2_arch_file_data_add_svc(
+    axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_svc_t *svc_desc)
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     axis2_qname_t *svc_qname = NULL;
@@ -492,9 +523,10 @@
 }
 
 struct axis2_svc *AXIS2_CALL
-axis2_arch_file_data_get_svc(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *svc_name)
+axis2_arch_file_data_get_svc(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_char_t *svc_name)
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     axis2_svc_t *svc = NULL;
@@ -516,25 +548,28 @@
 }
 
 axis2_hash_t *AXIS2_CALL
-axis2_arch_file_data_get_svc_map(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env)
+axis2_arch_file_data_get_svc_map(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(file_data)->svc_map;
 }
 
 axis2_array_list_t *AXIS2_CALL
-axis2_arch_file_data_get_deployable_svcs(axis2_arch_file_data_t *file_data,
-                                            const axis2_env_t *env)
+axis2_arch_file_data_get_deployable_svcs(
+    const axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(file_data)->deployable_svcs;
 }
 
 axis2_status_t AXIS2_CALL
-axis2_arch_file_data_set_deployable_svcs(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env,
-                                    axis2_array_list_t *deployable_svcs) 
+axis2_arch_file_data_set_deployable_svcs(
+    axis2_arch_file_data_t *file_data,
+    const axis2_env_t *env,
+    axis2_array_list_t *deployable_svcs) 
 {
     axis2_arch_file_data_impl_t *file_data_impl = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);

Modified: webservices/axis2/trunk/c/modules/core/deployment/axis2_arch_file_data.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/axis2_arch_file_data.h?rev=429983&r1=429982&r2=429983&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/axis2_arch_file_data.h (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/axis2_arch_file_data.h Tue Aug  8 23:50:49
2006
@@ -17,6 +17,12 @@
 #ifndef AXIS2_ARCH_FILE_DATA_H
 #define AXIS2_ARCH_FILE_DATA_H
 
+/** @defgroup axis2_arch_file_data Arch File Data
+ * @ingroup axis2_deployment
+ * @{
+ */
+
+
 /**
  * @file axis2_arch_file_data.h
  * @brief Axis2 Arch File Data interface
@@ -38,191 +44,310 @@
 {
 #endif
 
-struct axis2_conf;
+    struct axis2_conf;
     
-typedef struct axis2_arch_file_data axis2_arch_file_data_t;
-typedef struct axis2_arch_file_data_ops axis2_arch_file_data_ops_t;
-
-/** @defgroup axis2_arch_file_data Arch File Data
- * @ingroup axis2_deployment
- * @{
- */
+    /** Type name for struct axis2_arch_fila_data */
+    typedef struct axis2_arch_file_data axis2_arch_file_data_t;
+    /** Type name for struct axis2_arch_fila_data_ops */
+    typedef struct axis2_arch_file_data_ops axis2_arch_file_data_ops_t;
 
-/** 
- * @brief Arch File Data ops struct
- * Encapsulator struct for ops of axis2_arch_file_data
- */
-AXIS2_DECLARE_DATA struct axis2_arch_file_data_ops
-{
-   /** De-allocate memory
-      * @return status code
-      */
-   axis2_status_t (AXIS2_CALL *
-    free)(axis2_arch_file_data_t *arch_file_data,
-           const axis2_env_t *env);
-    
-    axis2_char_t *(AXIS2_CALL *
-    get_msg_recv)(axis2_arch_file_data_t *file_data,
-                                        const axis2_env_t *env);
-    
-    axis2_status_t (AXIS2_CALL *
-    set_msg_recv)(axis2_arch_file_data_t *file_data,
-                                        const axis2_env_t *env,
-                                        axis2_char_t *msg_recv);
-    
     /**
-     * @return the name of the contained file.
+     * Arch File Data ops struct
+     * Encapsulator struct for ops of axis2_arch_file_data
      */
-    axis2_char_t *(AXIS2_CALL *
-    get_name)(axis2_arch_file_data_t *file_data,
-                                        const axis2_env_t *env);
+    struct axis2_arch_file_data_ops
+    {
+        /** 
+         * De-allocate memory
+         * @param arch_file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+         */
+        axis2_status_t (AXIS2_CALL *
+                free)(
+                    axis2_arch_file_data_t *arch_file_data,
+                    const axis2_env_t *env);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         */
+        axis2_char_t *(AXIS2_CALL *
+                get_msg_recv)(
+                    const axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         * @param msg_recv pointer to message receiver
+         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+         */
+        axis2_status_t (AXIS2_CALL *
+                set_msg_recv)(
+                    axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env,
+                    axis2_char_t *msg_recv);
+
+        /**
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         * @return the name of the contained file.
+         */
+        axis2_char_t *(AXIS2_CALL *
+                get_name)(
+                    const axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env);
+        /**
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         * @return the service name. if contained file is not null this is the
+         * file name. else this is the name property
+         */
+        axis2_char_t *(AXIS2_CALL *
+                get_svc_name)(
+                    const axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         */
+        int (AXIS2_CALL *
+                get_type)(
+                    const axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         */
+        axis2_file_t *(AXIS2_CALL *
+                get_file)(
+                    const axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         */
+        axis2_char_t *(AXIS2_CALL *
+                get_module_name)(
+                    const axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         * @param module_name pointer to module_name
+         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+         */
+        axis2_status_t (AXIS2_CALL *
+                set_module_name)(
+                    axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env,
+                    axis2_char_t *module_name);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         */
+        axis2_char_t *(AXIS2_CALL *
+                get_module_dll_name)(
+                    const axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+         */
+        axis2_status_t (AXIS2_CALL *
+                set_module_dll_name)(
+                    axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env,
+                    axis2_char_t *module_dll_name);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+         */
+        axis2_status_t (AXIS2_CALL *
+                add_svc)(
+                    axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env,
+                    struct axis2_svc *svc_desc);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         */
+        struct axis2_svc *(AXIS2_CALL *
+                get_svc)(
+                    const axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env,
+                    axis2_char_t *svc_name);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         */
+        axis2_hash_t *(AXIS2_CALL *
+                get_svc_map)(
+                    const axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         */
+        axis2_array_list_t *(AXIS2_CALL *
+                get_deployable_svcs)(
+                    const axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env);
+
+        /** 
+         * @param file_data pointer to arch_file_data
+         * @param env pointer to environment struct
+         * @param deployable_svcs pointer to deployable services
+         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+         */
+        axis2_status_t (AXIS2_CALL *
+                set_deployable_svcs)(
+                    axis2_arch_file_data_t *file_data,
+                    const axis2_env_t *env,
+                    axis2_array_list_t *deployable_svcs);
+
+
+    };
+
     /**
-     * @return the service name. if contained file is not null this is the
-     * file name. else this is the name property
+     * Arch File Data struct 
      */
-    axis2_char_t *(AXIS2_CALL *
-    get_svc_name)(axis2_arch_file_data_t *file_data,
-                                        const axis2_env_t *env);
-    
-    int (AXIS2_CALL *
-    get_type)(axis2_arch_file_data_t *file_data,
-                                        const axis2_env_t *env);
-    
-    axis2_file_t *(AXIS2_CALL *
-    get_file)(axis2_arch_file_data_t *file_data,
-                                        const axis2_env_t *env);
-    
-    axis2_char_t *(AXIS2_CALL *
-    get_module_name)(axis2_arch_file_data_t *file_data,
-                        const axis2_env_t *env);
-    
-    axis2_status_t (AXIS2_CALL *
-    set_module_name)(axis2_arch_file_data_t *file_data,
-                        const axis2_env_t *env,
-                        axis2_char_t *module_name);
-                        
-        axis2_char_t *(AXIS2_CALL *
-    get_module_dll_name)(axis2_arch_file_data_t *file_data,
-                        const axis2_env_t *env);
-    
-    axis2_status_t (AXIS2_CALL *
-    set_module_dll_name)(axis2_arch_file_data_t *file_data,
-                        const axis2_env_t *env,
-                        axis2_char_t *module_dll_name);
-                        
-    axis2_status_t (AXIS2_CALL *
-    add_svc)(axis2_arch_file_data_t *file_data,
-                                    const axis2_env_t *env,
-                                    struct axis2_svc *svc_desc);
-    
-    struct axis2_svc *(AXIS2_CALL *
-    get_svc)(axis2_arch_file_data_t *file_data,
-                                        const axis2_env_t *env,
-                                        axis2_char_t *svc_name);
-    
-    axis2_hash_t *(AXIS2_CALL *
-    get_svc_map)(axis2_arch_file_data_t *file_data,
-                                        const axis2_env_t *env);
-    
-    axis2_array_list_t *(AXIS2_CALL *
-    get_deployable_svcs)(axis2_arch_file_data_t *file_data,
-                                                const axis2_env_t *env);
-    
-    axis2_status_t (AXIS2_CALL *
-    set_deployable_svcs) (axis2_arch_file_data_t *file_data,
-                                        const axis2_env_t *env,
-                                        axis2_array_list_t *deployable_svcs);    
- 
-
-};
-
-/** 
- * @brief Arch File Data struct 
- */  
-AXIS2_DECLARE_DATA struct axis2_arch_file_data
-{
-   axis2_arch_file_data_ops_t *ops;
-};
+    struct axis2_arch_file_data
+    {
+        /** Ops of Arch File Data */
+        axis2_arch_file_data_ops_t *ops;
+    };
 
-/**
- * Creates arch file data struct
- * @return pointer to newly created arch file data
- */
-AXIS2_EXTERN axis2_arch_file_data_t * AXIS2_CALL
-axis2_arch_file_data_create(const axis2_env_t *env);
+    /**
+     * Creates arch file data struct
+     * @param env pointer to environment struct
+     * @return pointer to newly created arch file data
+     */
+    AXIS2_EXTERN axis2_arch_file_data_t *AXIS2_CALL
+    axis2_arch_file_data_create(
+        const axis2_env_t *env);
 
-/**
- * Creates arch file data struct
- * @param type 
- * @param file folder name of service or module
- * @return pointer to newly created arch file data
- */
-AXIS2_EXTERN axis2_arch_file_data_t * AXIS2_CALL 
-axis2_arch_file_data_create_with_type_and_file(const axis2_env_t *env,
-                                                    int type,
-                                                    axis2_file_t *file);
+    /**
+     * Creates arch file data struct
+     * @param env pointer to environment struct
+     * @param type type
+     * @param file folder name of service or module
+     * @return pointer to newly created arch file data
+     */
+    AXIS2_EXTERN axis2_arch_file_data_t *AXIS2_CALL
+    axis2_arch_file_data_create_with_type_and_file(
+        const axis2_env_t *env,
+        int type,
+        axis2_file_t *file);
 
-/**
- * Creates arch file data struct
- * @param type 
- * @param name 
- * @return pointer to newly created arch file data
- */
-AXIS2_EXTERN axis2_arch_file_data_t * AXIS2_CALL
-axis2_arch_file_data_create_with_type_and_name(const axis2_env_t *env,
-                                                    int type,
-                                                    const axis2_char_t *name);
+    /**
+     * Creates arch file data struct
+     * @param env pointer to environment struct
+     * @param type type
+     * @param name pointer to name
+     * @return pointer to newly created arch file data
+     */
+    AXIS2_EXTERN axis2_arch_file_data_t *AXIS2_CALL
+    axis2_arch_file_data_create_with_type_and_name(
+        const axis2_env_t *env,
+        int type,
+        const axis2_char_t *name);
 
 /*************************** Function macros **********************************/
 
+/** Frees the arch file data struct.
+    @sa axis2_arch_file_data_ops#free */
 #define AXIS2_ARCH_FILE_DATA_FREE(arch_file_data, env) \
       ((arch_file_data)->ops->free (arch_file_data, env))
 
+/** Gets the message receiver.
+    @sa axis2_arch_file_data_ops#get_msg_recv */
 #define AXIS2_ARCH_FILE_DATA_GET_MSG_RECV(arch_file_data, env) \
-      ((arch_file_data)->ops->get_msg_recv (arch_file_data, env))  
+      ((arch_file_data)->ops->get_msg_recv (arch_file_data, env))
 
+/** Sets the message receiver.
+    @sa axis2_arch_file_data_ops#set_msg_recv */
 #define AXIS2_ARCH_FILE_DATA_SET_MSG_RECV(arch_file_data, env, msg_recv) \
-      ((arch_file_data)->ops->set_msg_recv (arch_file_data, env, msg_recv))  
-        
+      ((arch_file_data)->ops->set_msg_recv (arch_file_data, env, msg_recv))
+
+/** Gets the name.
+    @sa axis2_arch_file_data_ops#get_name */
 #define AXIS2_ARCH_FILE_DATA_GET_NAME(arch_file_data, env) \
-      ((arch_file_data)->ops->get_name (arch_file_data, env))          
+      ((arch_file_data)->ops->get_name (arch_file_data, env))
 
+/** Gets the service name.
+    @sa axis2_arch_file_data_ops#get_svc_name */
 #define AXIS2_ARCH_FILE_DATA_GET_SVC_NAME(arch_file_data, env) \
-      ((arch_file_data)->ops->get_svc_name (arch_file_data, env)) 
+      ((arch_file_data)->ops->get_svc_name (arch_file_data, env))
 
+/** Gets the type.
+    @sa axis2_arch_file_data_ops#get_type */
 #define AXIS2_ARCH_FILE_DATA_GET_TYPE(arch_file_data, env) \
-      ((arch_file_data)->ops->get_type (arch_file_data, env)) 
-        
+      ((arch_file_data)->ops->get_type (arch_file_data, env))
+
+/** Gets the file.
+    @sa axis2_arch_file_data_ops#get_file */
 #define AXIS2_ARCH_FILE_DATA_GET_FILE(arch_file_data, env) \
-      ((arch_file_data)->ops->get_file (arch_file_data, env)) 
+      ((arch_file_data)->ops->get_file (arch_file_data, env))
 
+/** Gets the module name.
+    @sa axis2_arch_file_data_ops#get_module */
 #define AXIS2_ARCH_FILE_DATA_GET_MODULE_NAME(arch_file_data, env) \
-      ((arch_file_data)->ops->get_module_name (arch_file_data, env)) 
-        
+      ((arch_file_data)->ops->get_module_name (arch_file_data, env))
+
+/** Sets the module name.
+    @sa axis2_arch_file_data_ops#set_module_name */
 #define AXIS2_ARCH_FILE_DATA_SET_MODULE_NAME(arch_file_data, env, module_name) \
-      ((arch_file_data)->ops->set_module_name (arch_file_data, env, module_name)) 
+      ((arch_file_data)->ops->set_module_name (arch_file_data, env, module_name))
 
+/** Gets the module dll name.
+    @sa axis2_arch_file_data_ops#get_module_dll_name */
 #define AXIS2_ARCH_FILE_DATA_GET_MODULE_DLL_NAME(arch_file_data, env) \
-      ((arch_file_data)->ops->get_module_dll_name (arch_file_data, env)) 
-        
+      ((arch_file_data)->ops->get_module_dll_name (arch_file_data, env))
+
+/** Sets the module dll name.
+    @sa axis2_arch_file_data_ops#set_module_dll_name */
 #define AXIS2_ARCH_FILE_DATA_SET_MODULE_DLL_NAME(arch_file_data, env, class_name) \
       ((arch_file_data)->ops->set_module_dll_name (arch_file_data, env, class_name))
-        
+
+/** Adds the service.
+    @sa axis2_arch_file_data_ops#add_svc */
 #define AXIS2_ARCH_FILE_DATA_ADD_SVC(arch_file_data, env, svc_desc) \
-      ((arch_file_data)->ops->add_svc (arch_file_data, env, svc_desc)) 
-        
+      ((arch_file_data)->ops->add_svc (arch_file_data, env, svc_desc))
+
+/** Gets the service.
+    @sa axis2_arch_file_data_ops#get_svc */
 #define AXIS2_ARCH_FILE_DATA_GET_SVC(arch_file_data, env, svc_name) \
-      ((arch_file_data)->ops->get_svc (arch_file_data, env, svc_name)) 
+      ((arch_file_data)->ops->get_svc (arch_file_data, env, svc_name))
 
+/** Gets the service map.
+    @sa axis2_arch_file_data_ops#get_svc_map */
 #define AXIS2_ARCH_FILE_DATA_GET_SVC_MAP(arch_file_data, env) \
-      ((arch_file_data)->ops->get_svc_map (arch_file_data, env)) 
-        
+      ((arch_file_data)->ops->get_svc_map (arch_file_data, env))
+
+/** Gets the deployable services.
+    @sa axis2_arch_file_data_ops#get_deployable_svcs */
 #define AXIS2_ARCH_FILE_DATA_GET_DEPLOYABLE_SVCS(arch_file_data, env) \
-      ((arch_file_data)->ops->get_deployable_svcs (arch_file_data, env)) 
+      ((arch_file_data)->ops->get_deployable_svcs (arch_file_data, env))
 
+/** Sets the deployable services.
+    @sa axis2_arch_file_data_ops#set_deployable_svcs */
 #define AXIS2_ARCH_FILE_DATA_SET_DEPLOYABLE_SVCS(arch_file_data, env, deployable_svcs) \
-      ((arch_file_data)->ops->set_deployable_svcs (arch_file_data, env, deployable_svcs))

-        
+      ((arch_file_data)->ops->set_deployable_svcs (arch_file_data, env, deployable_svcs))
+
 /*************************** End of function macros ***************************/
 
 /** @} */



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message