axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r430329 - in /webservices/axis2/trunk/c/modules/core/deployment: axis2_ws_info_list.h ws_info_list.c
Date Thu, 10 Aug 2006 09:10:59 GMT
Author: pini
Date: Thu Aug 10 02:10:58 2006
New Revision: 430329

URL: http://svn.apache.org/viewvc?rev=430329&view=rev
Log:
Fixed some formatting problems.

Modified:
    webservices/axis2/trunk/c/modules/core/deployment/axis2_ws_info_list.h
    webservices/axis2/trunk/c/modules/core/deployment/ws_info_list.c

Modified: webservices/axis2/trunk/c/modules/core/deployment/axis2_ws_info_list.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/axis2_ws_info_list.h?rev=430329&r1=430328&r2=430329&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/axis2_ws_info_list.h (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/axis2_ws_info_list.h Thu Aug 10 02:10:58
2006
@@ -17,6 +17,11 @@
 #ifndef AXIS2_WS_INFO_LIST_H
 #define AXIS2_WS_INFO_LIST_H
 
+/** @defgroup axis2_ws_info_list Ws Info List
+ * @ingroup axis2_deployment
+ * @{
+ */
+
 /**
  * @file axis2_ws_info_list.h
  * @brief Axis2 Ws Info List interface
@@ -40,157 +45,197 @@
 extern "C"
 {
 #endif
-    
-struct axis2_ws_info;
-struct axis2_dep_engine;
-typedef struct axis2_ws_info_list axis2_ws_info_list_t;
-typedef struct axis2_ws_info_list_ops axis2_ws_info_list_ops_t;
 
-/** @defgroup axis2_ws_info_list Ws Info List
- * @ingroup axis2_deployment
- * @{
- */
+    struct axis2_ws_info;
+    struct axis2_dep_engine;
 
-/** 
- * @brief Ws Info List ops struct
- * Encapsulator struct for ops of axis2_ws_info_list
- */
-AXIS2_DECLARE_DATA struct axis2_ws_info_list_ops
-{
-   /** De-allocate memory
-      * @return status code
-      */
-   axis2_status_t (AXIS2_CALL *
-    free) (axis2_ws_info_list_t *ws_info_list,
-           const axis2_env_t *env);
-
-    /**
-     * This method is used to initialize the vector
-     */
-    axis2_status_t (AXIS2_CALL *
-    init) (axis2_ws_info_list_t *info_list,
-                                const axis2_env_t *env);
-    
-    /**
-     * First it check whether the file is already available in the
-     * system call isFileExist , if it is not deployed yet then it will add
-     * that to jarlist and to the deployment engine as new service or module
-     * in adding new item to jarlist it first create optimice and requird object to
-     * keep those infor call WSInfo and that will be added to jarist and actual
-     * jar file will be added to DeploymentEngine
-     * <p/>
-     * If it is alredy exsit then it check whether it has been updated
-     * then change the last update date of the wsInfo and added two entries to 
-     * DeploymentEngine one for New Deployment and other for undeployment
-     * @param file actual jar files for either Module or service
-     * @param type indicate either Service or Module
-     */
-    axis2_status_t (AXIS2_CALL *
-    add_ws_info_item) (axis2_ws_info_list_t *info_list,
-                                        const axis2_env_t *env,
-                                        axis2_file_t *file, 
-                                        int type);
-    
-    /**
-     * This method is used to check whether the file exist and if so
-     * it will return related wsinfo object to the file, else return null;
-     *
-     * @param filename
-     */
-    axis2_ws_info_t *(AXIS2_CALL *
-    get_file_item) (axis2_ws_info_list_t *info_list,
-                                        const axis2_env_t *env,
-                                        axis2_char_t *file_name);
-    
-    /**
-     * compare the last update dates of both files and if those differ
-     * it will assumed as the file has been modified
-     *
-     * @param file
-     * @param ws_info
-     */
-    axis2_bool_t (AXIS2_CALL *
-    is_modified) (axis2_ws_info_list_t *info_list,
-                                    const axis2_env_t *env,
-                                    axis2_file_t *file, 
-                                    struct axis2_ws_info *ws_info);
-    
-    /**
-     * to check whether the file is alredy in the list
-     *
-     * @param filename
-     */
-    axis2_bool_t (AXIS2_CALL *
-    is_file_exist) (axis2_ws_info_list_t *info_list,
-                                        const axis2_env_t *env,
-                                        axis2_char_t *file_name);
-    
-    /**
-     * this is to check , undeploye WS
-     * What this relly does is it check older jars files and
-     * current jars. If name of the old jar file does not exit in the currentjar
-     * list then it is assumed that the jar file has been removed
-     * that is hot undeployment
-     */
-    axis2_status_t (AXIS2_CALL *
-    check_for_undeploy) (axis2_ws_info_list_t *info_list,
-                                            const axis2_env_t *env);
-    
-    
-    /**
-     *
-     */
-    axis2_status_t (AXIS2_CALL *
-    update) (axis2_ws_info_list_t *info_list,
-                                const axis2_env_t *env);    
-       
-};
-    
-/** 
- * @brief Ws Info List struct 
- */  
-AXIS2_DECLARE_DATA struct axis2_ws_info_list
-{
-    axis2_ws_info_list_ops_t *ops;
-};
-
-/**
- * Creates ws info list struct
- * @param repos_path
- * @return pointer to newly created ws info list
- */
-AXIS2_EXTERN axis2_ws_info_list_t * AXIS2_CALL 
-axis2_ws_info_list_create_with_dep_engine (const axis2_env_t *env,
-                                            struct axis2_dep_engine *dep_engine);
+    /** Type name for struct axis2_ws_info_list */
+    typedef struct axis2_ws_info_list axis2_ws_info_list_t;
+    /** Type name for struct axis2_ws_info_list_ops  */
+    typedef struct axis2_ws_info_list_ops axis2_ws_info_list_ops_t;
+
+    /**
+     * Ws Info List ops struct
+     * Encapsulator struct for ops of axis2_ws_info_list
+     */
+    struct axis2_ws_info_list_ops
+    {
+        /** 
+         * De-allocate memory
+         * @param ws_info_list pointer to ws info list
+         * @param env pointer to environment struct
+         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+         */
+        axis2_status_t (AXIS2_CALL *
+                free)(
+                    axis2_ws_info_list_t *ws_info_list,
+                    const axis2_env_t *env);
+
+        /**
+         * This method is used to initialize the vector
+         * @param info_list pointer to ws info list
+         * @param env pointer to environment struct
+         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+         */
+        axis2_status_t (AXIS2_CALL *
+                init)(
+                    axis2_ws_info_list_t *info_list,
+                    const axis2_env_t *env);
+
+        /**
+         * First it check whether the file is already available in the
+         * system call isFileExist , if it is not deployed yet then it will add
+         * that to jarlist and to the deployment engine as new service or module
+         * in adding new item to jarlist it first create optimice and requird object to
+         * keep those infor call WSInfo and that will be added to jarist and actual
+         * jar file will be added to DeploymentEngine
+         * <p/>
+         * If it is alredy exsit then it check whether it has been updated
+         * then change the last update date of the wsInfo and added two entries to 
+         * DeploymentEngine one for New Deployment and other for undeployment
+         * @param info_list pointer to ws info list
+         * @param env pointer to environment struct
+         * @param file actual jar files for either Module or service
+         * @param type indicate either Service or Module
+         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+         */
+        axis2_status_t (AXIS2_CALL *
+                add_ws_info_item)(
+                    axis2_ws_info_list_t *info_list,
+                    const axis2_env_t *env,
+                    axis2_file_t *file,
+                    int type);
+
+        /**
+         * This method is used to check whether the file exist and if so
+         * it will return related wsinfo object to the file, else return null;
+         * @param info_list pointer to ws info list
+         * @param env pointer to environment struct
+         * @param file_name pointer to file name
+         */
+        axis2_ws_info_t *(AXIS2_CALL *
+                get_file_item)(
+                    axis2_ws_info_list_t *info_list,
+                    const axis2_env_t *env,
+                    axis2_char_t *file_name);
+
+        /**
+         * compare the last update dates of both files and if those differ
+         * it will assumed as the file has been modified
+         * @param info_list pointer to ws info list
+         * @param env pointer to environment struct
+         * @param file pointer to file
+         * @param ws_info pointer to ws info
+         */
+        axis2_bool_t (AXIS2_CALL *
+                is_modified)(
+                    axis2_ws_info_list_t *info_list,
+                    const axis2_env_t *env,
+                    axis2_file_t *file,
+                    struct axis2_ws_info *ws_info);
+
+        /**
+         * to check whether the file is alredy in the list
+         * @param info_list pointer to ws info list
+         * @param env pointer to environment struct
+         * @param file_name pointer to file name
+         */
+        axis2_bool_t (AXIS2_CALL *
+                is_file_exist)(
+                    axis2_ws_info_list_t *info_list,
+                    const axis2_env_t *env,
+                    axis2_char_t *file_name);
+
+        /**
+         * this is to check , undeploye WS
+         * What this relly does is it check older jars files and
+         * current jars. If name of the old jar file does not exit in the currentjar
+         * list then it is assumed that the jar file has been removed
+         * that is hot undeployment
+         * @param env pointer to environment struct
+         * @param file_name pointer to file name
+         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+         */
+        axis2_status_t (AXIS2_CALL *
+                check_for_undeploy)(
+                    axis2_ws_info_list_t *info_list,
+                    const axis2_env_t *env);
+
+
+        /**
+         * @param env pointer to environment struct
+         * @param file_name pointer to file name
+         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+         */
+        axis2_status_t (AXIS2_CALL *
+                update)(
+                    axis2_ws_info_list_t *info_list,
+                    const axis2_env_t *env);
+
+    };
+
+    /**
+     * Ws Info List struct 
+     */
+    struct axis2_ws_info_list
+    {
+        /** Operations of ws info list */
+        axis2_ws_info_list_ops_t *ops;
+    };
+
+    /**
+     * Creates ws info list struct
+     * @param env pointer to environment struct
+     * @param dep_engine pointer to deployment engine
+     * @return pointer to newly created ws info list
+     */
+    AXIS2_EXTERN axis2_ws_info_list_t *AXIS2_CALL
+    axis2_ws_info_list_create_with_dep_engine(
+        const axis2_env_t *env,
+        struct axis2_dep_engine *dep_engine);
 
 
 /*************************** Function macros **********************************/
 
+/** Frees the ws info list.
+    @sa axis2_ws_info_list_ops#free */
 #define AXIS2_WS_INFO_LIST_FREE(ws_info_list, env) \
-      ((ws_info_list)->ops->free (ws_info_list, env)) 
+      ((ws_info_list)->ops->free (ws_info_list, env))
 
+/** Initialize the ws info list.
+    @sa axis2_ws_info_list_ops#init */
 #define AXIS2_WS_INFO_LIST_INIT(ws_info_list, env) \
       ((ws_info_list)->ops->init (ws_info_list, env))
 
+/** Add ws info item.
+    @sa axis2_ws_info_list_ops#add_ws_info_item */
 #define AXIS2_WS_INFO_LIST_ADD_WS_INFO_ITEM(ws_info_list, env, file, type) \
       ((ws_info_list)->ops->add_ws_info_item (ws_info_list, env, file, type))
 
+/** Get file item.
+    @sa axis2_ws_info_list_ops#get_file_item */
 #define AXIS2_WS_INFO_LIST_GET_FILE_ITEM(ws_info_list, env, file_name) \
       ((ws_info_list)->ops->get_file_item (ws_info_list, env, file_name))
-        
+
+/** Is modified.
+    @sa axis2_ws_info_list_ops#is_modified */
 #define AXIS2_WS_INFO_LIST_IS_MODIFIED(ws_info_list, env, file, ws_info) \
       ((ws_info_list)->ops->is_modified (ws_info_list, env, file, ws_info))
-        
+
+/** Is file exist.
+    @sa axis2_ws_info_list_ops#is_file_exist */
 #define AXIS2_WS_INFO_LIST_IS_FILE_EXIST(ws_info_list, env, file_name) \
       ((ws_info_list)->ops->is_file_exist (ws_info_list, env, file_name))
-        
+
+/** Check for undeploy.
+    @sa axis2_ws_info_list_ops#check_for_undeploy */
 #define AXIS2_WS_INFO_LIST_CHECK_FOR_UNDEPLOY(ws_info_list, env) \
       ((ws_info_list)->ops->check_for_undeploy (ws_info_list, env))
-        
+
+/** Update.
+    @sa axis2_ws_info_list_ops#update */
 #define AXIS2_WS_INFO_LIST_UPDATE(ws_info_list, env) \
       ((ws_info_list)->ops->update (ws_info_list, env))
-        
-
 
 
 /*************************** End of function macros ***************************/

Modified: webservices/axis2/trunk/c/modules/core/deployment/ws_info_list.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/ws_info_list.c?rev=430329&r1=430328&r2=430329&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/ws_info_list.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/ws_info_list.c Thu Aug 10 02:10:58 2006
@@ -20,12 +20,11 @@
 /* #include <axis2_dep_engine.h> */
 
 /** 
- * @brief
  * To do the common tasks for all Builder
  */ 
 typedef struct axis2_ws_info_list_impl
 {
-   axis2_ws_info_list_t ws_info_list;
+    axis2_ws_info_list_t ws_info_list;
     /**
      * This is to store all the jar files in a specified folder (WEB_INF)
      */
@@ -40,7 +39,8 @@
      */
     struct axis2_dep_engine *deployer;
        
-} axis2_ws_info_list_impl_t;
+}
+axis2_ws_info_list_impl_t;
 
 #define AXIS2_INTF_TO_IMPL(ws_info_list) \
     ((axis2_ws_info_list_impl_t *) ws_info_list)
@@ -48,51 +48,57 @@
 /************************* Function prototypes ********************************/
 
 axis2_status_t AXIS2_CALL 
-axis2_ws_info_list_free (axis2_ws_info_list_t *ws_info_list, 
-                            const axis2_env_t *env);
+axis2_ws_info_list_free(
+    axis2_ws_info_list_t *ws_info_list, 
+    const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
-axis2_ws_info_list_init(axis2_ws_info_list_t *info_list,
-                            const axis2_env_t *env);
+axis2_ws_info_list_init(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
-axis2_ws_info_list_add_ws_info_item(axis2_ws_info_list_t *info_list,
-                                    const axis2_env_t *env,
-                                    axis2_file_t *file, 
-                                    int type);
+axis2_ws_info_list_add_ws_info_item(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env,
+    axis2_file_t *file, 
+    int type);
 
 axis2_ws_info_t *AXIS2_CALL
-axis2_ws_info_list_get_file_item(axis2_ws_info_list_t *info_list,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *file_name);
+axis2_ws_info_list_get_file_item(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env,
+    axis2_char_t *file_name);
 
 axis2_bool_t AXIS2_CALL
-axis2_ws_info_list_is_modified(axis2_ws_info_list_t *info_list,
-                                const axis2_env_t *env,
-                                axis2_file_t *file, 
-                                axis2_ws_info_t *ws_info);
+axis2_ws_info_list_is_modified(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env,
+    axis2_file_t *file, 
+    axis2_ws_info_t *ws_info);
 
 axis2_bool_t AXIS2_CALL
-axis2_ws_info_list_is_file_exist(axis2_ws_info_list_t *info_list,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *file_name);
+axis2_ws_info_list_is_file_exist(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env,
+    axis2_char_t *file_name);
 
 axis2_status_t AXIS2_CALL
-axis2_ws_info_list_check_for_undeploy(axis2_ws_info_list_t *info_list,
-                                        const axis2_env_t *env);
-
+axis2_ws_info_list_check_for_undeploy(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
-axis2_ws_info_list_update(axis2_ws_info_list_t *info_list,
-                            const axis2_env_t *env);
-
+axis2_ws_info_list_update(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env);
 
-                                
 /************************** End of function prototypes ************************/
 
-AXIS2_EXTERN axis2_ws_info_list_t * AXIS2_CALL 
-axis2_ws_info_list_create_with_dep_engine (const axis2_env_t *env,
-                                            struct axis2_dep_engine *dep_engine)
+AXIS2_EXTERN axis2_ws_info_list_t *AXIS2_CALL 
+axis2_ws_info_list_create_with_dep_engine(
+    const axis2_env_t *env,
+    struct axis2_dep_engine *dep_engine)
 {
     axis2_ws_info_list_impl_t *ws_info_list_impl = NULL;
     
@@ -160,8 +166,9 @@
 /***************************Function implementation****************************/
 
 axis2_status_t AXIS2_CALL 
-axis2_ws_info_list_free (axis2_ws_info_list_t *ws_info_list, 
-                            const axis2_env_t *env)
+axis2_ws_info_list_free(
+    axis2_ws_info_list_t *ws_info_list, 
+    const axis2_env_t *env)
 {
     axis2_ws_info_list_impl_t *info_list_impl = NULL;
     
@@ -215,8 +222,9 @@
 }
 
 axis2_status_t AXIS2_CALL
-axis2_ws_info_list_init(axis2_ws_info_list_t *info_list,
-                            const axis2_env_t *env) 
+axis2_ws_info_list_init(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env) 
 {
     axis2_ws_info_list_impl_t *info_list_impl = NULL;
     int size = 0;
@@ -243,10 +251,11 @@
 }
 
 axis2_status_t AXIS2_CALL
-axis2_ws_info_list_add_ws_info_item(axis2_ws_info_list_t *info_list,
-                                    const axis2_env_t *env,
-                                    axis2_file_t *file, 
-                                    int type) 
+axis2_ws_info_list_add_ws_info_item(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env,
+    axis2_file_t *file, 
+    int type) 
 {
     axis2_ws_info_list_impl_t *info_list_impl = NULL;
     axis2_status_t status = AXIS2_FAILURE;
@@ -338,9 +347,10 @@
 }
 
 axis2_ws_info_t *AXIS2_CALL
-axis2_ws_info_list_get_file_item(axis2_ws_info_list_t *info_list,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *file_name) 
+axis2_ws_info_list_get_file_item(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env,
+    axis2_char_t *file_name) 
 {
     axis2_ws_info_list_impl_t *info_list_impl = NULL;
     int i = 0;
@@ -367,10 +377,11 @@
 }
 
 axis2_bool_t AXIS2_CALL
-axis2_ws_info_list_is_modified(axis2_ws_info_list_t *info_list,
-                                const axis2_env_t *env,
-                                axis2_file_t *file, 
-                                axis2_ws_info_t *ws_info) 
+axis2_ws_info_list_is_modified(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env,
+    axis2_file_t *file, 
+    axis2_ws_info_t *ws_info) 
 {
     long last_modified_date = 0;
     
@@ -383,9 +394,10 @@
 }
 
 axis2_bool_t AXIS2_CALL
-axis2_ws_info_list_is_file_exist(axis2_ws_info_list_t *info_list,
-                                    const axis2_env_t *env,
-                                    axis2_char_t *file_name) 
+axis2_ws_info_list_is_file_exist(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env,
+    axis2_char_t *file_name) 
 {
     axis2_ws_info_t *ws_info = NULL;
     
@@ -396,8 +408,9 @@
 }
 
 axis2_status_t AXIS2_CALL
-axis2_ws_info_list_check_for_undeploy(axis2_ws_info_list_t *info_list,
-                                        const axis2_env_t *env) 
+axis2_ws_info_list_check_for_undeploy(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env) 
 {
     axis2_ws_info_list_impl_t *info_list_impl = NULL;
     int list_size = 0;
@@ -472,8 +485,9 @@
 }
 
 axis2_status_t AXIS2_CALL
-axis2_ws_info_list_update(axis2_ws_info_list_t *info_list,
-                            const axis2_env_t *env) 
+axis2_ws_info_list_update(
+    axis2_ws_info_list_t *info_list,
+    const axis2_env_t *env) 
 {
     axis2_ws_info_list_impl_t *info_list_impl = NULL;
     axis2_status_t status = AXIS2_FAILURE;



---------------------------------------------------------------------
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