axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r492943 - /webservices/axis2/trunk/c/util/include/axis2_dll_desc.h
Date Fri, 05 Jan 2007 08:45:14 GMT
Author: samisa
Date: Fri Jan  5 00:45:14 2007
New Revision: 492943

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

Modified:
    webservices/axis2/trunk/c/util/include/axis2_dll_desc.h

Modified: webservices/axis2/trunk/c/util/include/axis2_dll_desc.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_dll_desc.h?view=diff&rev=492943&r1=492942&r2=492943
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_dll_desc.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_dll_desc.h Fri Jan  5 00:45:14 2007
@@ -33,213 +33,214 @@
 extern "C"
 {
 #endif
-    
-/**
- * @defgroup axis2_dll_desc DLL description
- * @ingroup axis2_util
- * @{
- */
-
-    
-typedef struct axis2_dll_desc axis2_dll_desc_t;
-typedef struct axis2_dll_desc_ops axis2_dll_desc_ops_t;
-   
-    
-typedef int (*CREATE_FUNCT) (void **inst, const axis2_env_t *env);
-
-typedef int (*DELETE_FUNCT) (void *inst, const axis2_env_t *env);
-
-typedef enum axis2_dll_type
-{
-    /** service dll */
-    AXIS2_SVC_DLL = 0,
-    /** handler dll */
-    AXIS2_HANDLER_DLL,
-    /** message receiver dll */
-    AXIS2_MSG_RECV_DLL,
-    /** module dll */
-    AXIS2_MODULE_DLL,
-    /** transport receiver dll */
-    AXIS2_TRANSPORT_RECV_DLL,
-    /** transport sender dll */
-    AXIS2_TRANSPORT_SENDER_DLL
-       
-}axis2_dll_type_t;
-
-/**
- *   \brief DLL Description ops struct
- */
- struct axis2_dll_desc_ops
-{ 
-    axis2_status_t (AXIS2_CALL *
-    free) (axis2_dll_desc_t *dll_desc, 
-            const axis2_env_t *env);
-    
+
     /**
-     * Set path qualified platform specific dll name
-     */    
-    axis2_status_t (AXIS2_CALL *
-    set_name) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env,
-                            axis2_char_t *name);
-    
+     * @defgroup axis2_dll_desc DLL description
+     * @ingroup axis2_util
+     * @{
+     */
+
+
+    typedef struct axis2_dll_desc axis2_dll_desc_t;
+    typedef struct axis2_dll_desc_ops axis2_dll_desc_ops_t;
+
+
+    typedef int(*CREATE_FUNCT)(void **inst, const axis2_env_t *env);
+
+    typedef int(*DELETE_FUNCT)(void *inst, const axis2_env_t *env);
+
+    typedef enum axis2_dll_type
+    {
+        /** service dll */
+        AXIS2_SVC_DLL = 0,
+        /** handler dll */
+        AXIS2_HANDLER_DLL,
+        /** message receiver dll */
+        AXIS2_MSG_RECV_DLL,
+        /** module dll */
+        AXIS2_MODULE_DLL,
+        /** transport receiver dll */
+        AXIS2_TRANSPORT_RECV_DLL,
+        /** transport sender dll */
+        AXIS2_TRANSPORT_SENDER_DLL
+
+    }
+    axis2_dll_type_t;
+
     /**
-     * Return the path qualified platform specific dll name
-     */ 
-    axis2_char_t *(AXIS2_CALL *
-    get_name) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env);
-    
-    axis2_status_t (AXIS2_CALL *
-    set_type) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env,
-                            axis2_dll_type_t type);
-    
-    axis2_dll_type_t (AXIS2_CALL *
-    get_type) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env);
-    
-    axis2_status_t (AXIS2_CALL *
-    set_load_options) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env,
-                            int options);
-    
-    int (AXIS2_CALL *
-    get_load_options) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env);
-    
-    axis2_status_t (AXIS2_CALL *
-    set_dl_handler) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env,
-                            AXIS2_DLHANDLER dl_handler);
-    
-    AXIS2_DLHANDLER (AXIS2_CALL *
-    get_dl_handler) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env);
-    
-    axis2_status_t (AXIS2_CALL *
-    set_create_funct) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env,
-                            CREATE_FUNCT funct);
-    
-    CREATE_FUNCT (AXIS2_CALL *
-    get_create_funct) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env);
-    
-    axis2_status_t (AXIS2_CALL *
-    set_delete_funct) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env,
-                            DELETE_FUNCT funct);
-    
-    DELETE_FUNCT (AXIS2_CALL *
-    get_delete_funct) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env);
-                            
-    axis2_status_t (AXIS2_CALL *
-    set_timestamp) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env,
-                            AXIS2_TIME_T timestamp);
-
-    axis2_status_t (AXIS2_CALL *
-    set_error_code) (
-            axis2_dll_desc_t *dll_desc,
-            const axis2_env_t *env,
-            axis2_error_codes_t error_code);
-
-    axis2_error_codes_t (AXIS2_CALL *
-    get_error_code) (
-            axis2_dll_desc_t *dll_desc,
-            const axis2_env_t *env);
-            
-    AXIS2_TIME_T (AXIS2_CALL *
-    get_timestamp) (axis2_dll_desc_t *dll_desc,
-                            const axis2_env_t *env);                            
-     /**
-     * This function will accept the library name without any platform
-     * dependant prefixes or suffixes. It then prefix and suffix
-     * platform dependant prefix and suffix macros to the original name
-     * and return the platform specific dll name
-     *
-     * @param class_name
-     * @return platform specific dll name
+     *   \brief DLL Description ops struct
      */
-    axis2_char_t *(AXIS2_CALL *
-    create_platform_specific_dll_name)(axis2_dll_desc_t *dll_desc,
-                                        const axis2_env_t *env,
-                                        const axis2_char_t *class_name);
-
-        
-};
-   
-/** 
-* \brief DLL Description struct
-*/
- struct axis2_dll_desc
-{
-    /** DLL Description related ops */
-    axis2_dll_desc_ops_t *ops;
-    
-};
-
-
-/**
- * creates dll_desc struct
- * @param qname qname, can be NULL
- */
-AXIS2_EXTERN axis2_dll_desc_t* AXIS2_CALL 
-axis2_dll_desc_create(const axis2_env_t *env);
-
-AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_dll_desc_free_void_arg (void *dll_desc,
-                                    const axis2_env_t *env);
+    struct axis2_dll_desc_ops
+    {
+        axis2_status_t(AXIS2_CALL *
+                free)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env);
+
+        /**
+         * Set path qualified platform specific dll name
+         */
+        axis2_status_t(AXIS2_CALL *
+                set_name)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env,
+                        axis2_char_t *name);
+
+        /**
+         * Return the path qualified platform specific dll name
+         */
+        axis2_char_t *(AXIS2_CALL *
+                get_name)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env);
+
+        axis2_status_t(AXIS2_CALL *
+                set_type)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env,
+                        axis2_dll_type_t type);
+
+        axis2_dll_type_t(AXIS2_CALL *
+                get_type)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env);
+
+        axis2_status_t(AXIS2_CALL *
+                set_load_options)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env,
+                        int options);
+
+        int(AXIS2_CALL *
+                get_load_options)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env);
+
+        axis2_status_t(AXIS2_CALL *
+                set_dl_handler)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env,
+                        AXIS2_DLHANDLER dl_handler);
+
+        AXIS2_DLHANDLER(AXIS2_CALL *
+                get_dl_handler)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env);
+
+        axis2_status_t(AXIS2_CALL *
+                set_create_funct)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env,
+                        CREATE_FUNCT funct);
+
+        CREATE_FUNCT(AXIS2_CALL *
+                get_create_funct)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env);
+
+        axis2_status_t(AXIS2_CALL *
+                set_delete_funct)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env,
+                        DELETE_FUNCT funct);
+
+        DELETE_FUNCT(AXIS2_CALL *
+                get_delete_funct)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env);
+
+        axis2_status_t(AXIS2_CALL *
+                set_timestamp)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env,
+                        AXIS2_TIME_T timestamp);
+
+        axis2_status_t(AXIS2_CALL *
+                set_error_code)(
+                    axis2_dll_desc_t *dll_desc,
+                    const axis2_env_t *env,
+                    axis2_error_codes_t error_code);
+
+        axis2_error_codes_t(AXIS2_CALL *
+                get_error_code)(
+                    axis2_dll_desc_t *dll_desc,
+                    const axis2_env_t *env);
+
+        AXIS2_TIME_T(AXIS2_CALL *
+                get_timestamp)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env);
+        /**
+        * This function will accept the library name without any platform
+        * dependant prefixes or suffixes. It then prefix and suffix
+        * platform dependant prefix and suffix macros to the original name
+        * and return the platform specific dll name
+        *
+        * @param class_name
+        * @return platform specific dll name
+        */
+        axis2_char_t *(AXIS2_CALL *
+                create_platform_specific_dll_name)(axis2_dll_desc_t *dll_desc,
+                        const axis2_env_t *env,
+                        const axis2_char_t *class_name);
 
-/******************************************************************************/
+
+    };
+
+    /**
+    * \brief DLL Description struct
+    */
+    struct axis2_dll_desc
+    {
+        /** DLL Description related ops */
+        axis2_dll_desc_ops_t *ops;
+
+    };
+
+
+    /**
+     * creates dll_desc struct
+     * @param qname qname, can be NULL
+     */
+    AXIS2_EXTERN axis2_dll_desc_t* AXIS2_CALL
+    axis2_dll_desc_create(const axis2_env_t *env);
+
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_dll_desc_free_void_arg(void *dll_desc,
+            const axis2_env_t *env);
+
+    /******************************************************************************/
 
 #define AXIS2_DLL_DESC_FREE(dll_desc, env) \
     ((dll_desc)->ops->free(dll_desc, env))
 
 #define AXIS2_DLL_DESC_GET_NAME(dll_desc, env) \
     ((dll_desc)->ops->get_name(dll_desc, env))
-    
+
 #define AXIS2_DLL_DESC_SET_NAME(dll_desc, env, name) \
     ((dll_desc)->ops->set_name(dll_desc, env, name))
 
 #define AXIS2_DLL_DESC_GET_TYPE(dll_desc, env) \
     ((dll_desc)->ops->get_type(dll_desc, env))
-    
+
 #define AXIS2_DLL_DESC_SET_TYPE(dll_desc, env, type) \
     ((dll_desc)->ops->set_type(dll_desc, env, type))
 
 #define AXIS2_DLL_DESC_GET_LOAD_OPTIONS(dll_desc, env) \
     ((dll_desc)->ops->get_load_options(dll_desc, env))
-    
+
 #define AXIS2_DLL_DESC_SET_LOAD_OPTIONS(dll_desc, env, load_options) \
     ((dll_desc)->ops->set_load_options(dll_desc, env, load_options))
-    
+
 #define AXIS2_DLL_DESC_GET_DL_HANDLER(dll_desc, env) \
     ((dll_desc)->ops->get_dl_handler(dll_desc, env))
-    
+
 #define AXIS2_DLL_DESC_SET_DL_HANDLER(dll_desc, env, dl_handler) \
     ((dll_desc)->ops->set_dl_handler(dll_desc, env, dl_handler))
-    
+
 #define AXIS2_DLL_DESC_GET_CREATE_FUNCT(dll_desc, env) \
     ((dll_desc)->ops->get_create_funct(dll_desc, env))
-    
+
 #define AXIS2_DLL_DESC_SET_CREATE_FUNCT(dll_desc, env, funct) \
     ((dll_desc)->ops->set_create_funct(dll_desc, env, funct))
-    
+
 #define AXIS2_DLL_DESC_GET_DELETE_FUNCT(dll_desc, env) \
     ((dll_desc)->ops->get_delete_funct((dll_desc, env))
-    
+
 #define AXIS2_DLL_DESC_SET_DELETE_FUNCT(dll_desc, env, funct) \
     ((dll_desc)->ops->set_delete_funct(dll_desc, env, funct))
 
 #define AXIS2_DLL_DESC_GET_TIMESTAMP(dll_desc, env) \
     ((dll_desc)->ops->get_timestamp(dll_desc, env))
-    
+
 #define AXIS2_DLL_DESC_SET_TIMESTAMP(dll_desc, env, timestamp) \
     ((dll_desc)->ops->set_timestamp(dll_desc, env, timestamp))
-    
+
 #define AXIS2_DLL_DESC_SET_ERROR_CODE(dll_desc, env, error_code) \
     ((dll_desc)->ops->set_error_code(dll_desc, env, error_code))
 
@@ -249,8 +250,8 @@
 #define AXIS2_DLL_DESC_CREATE_PLATFORM_SPECIFIC_DLL_NAME(dll_desc, env, class_name) \
     ((dll_desc)->ops->create_platform_specific_dll_name(dll_desc, env, class_name))
 
-/** @} */
-    
+    /** @} */
+
 #ifdef __cplusplus
 }
 #endif



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