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 pi...@apache.org on 2006/08/08 16:01:27 UTC

svn commit: r429656 - in /webservices/axis2/trunk/c: include/axis2_svc_grp_ctx.h modules/core/context/svc_grp_ctx.c

Author: pini
Date: Tue Aug  8 07:01:27 2006
New Revision: 429656

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


Modified:
    webservices/axis2/trunk/c/include/axis2_svc_grp_ctx.h
    webservices/axis2/trunk/c/modules/core/context/svc_grp_ctx.c

Modified: webservices/axis2/trunk/c/include/axis2_svc_grp_ctx.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_svc_grp_ctx.h?rev=429656&r1=429655&r2=429656&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc_grp_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc_grp_ctx.h Tue Aug  8 07:01:27 2006
@@ -50,30 +50,30 @@
      */
     struct axis2_svc_grp_ctx_ops
     {
-   /**
-    * @param svc_grp_ctx pointer to service group context
-    * @param env pointer to environment
-    */
-        axis2_ctx_t* (AXIS2_CALL *
+        /**
+         * @param svc_grp_ctx pointer to service group context
+         * @param env pointer to environment
+         */
+        axis2_ctx_t *(AXIS2_CALL *
                 get_base)(
-               struct axis2_svc_grp_ctx *svc_grp_ctx,
+                    const axis2_svc_grp_ctx_t *svc_grp_ctx,
                     const axis2_env_t *env);
 
 
-   /**
-    * @param svc_grp_ctx pointer to service group context
-    * @param env pointer to environment struct
-    */
-        struct axis2_conf_ctx* (AXIS2_CALL *
+        /**
+         * @param svc_grp_ctx pointer to service group context
+         * @param env pointer to environment struct
+         */
+        struct axis2_conf_ctx *(AXIS2_CALL *
                 get_parent)(
-                    struct axis2_svc_grp_ctx *svc_grp_ctx,
+                    const axis2_svc_grp_ctx_t *svc_grp_ctx,
                     const axis2_env_t *env);
 
 
-   /**
-    * @param svc_grp_ctx pointer to service group context
-    * @param env pointer to environment struct
-    */
+        /**
+         * @param svc_grp_ctx pointer to service group context
+         * @param env pointer to environment struct
+         */
         axis2_status_t (AXIS2_CALL *
                 free)(
                     struct axis2_svc_grp_ctx *svc_grp_ctx,
@@ -81,9 +81,9 @@
 
         /**
          * The method is used to do the intialization of the EngineContext
-    * @param svc_grp_ctx pointer to service group context
-    * @param env pointer to environment struct
-    * @param conf pointer to conf
+         * @param svc_grp_ctx pointer to service group context
+         * @param env pointer to environment struct
+         * @param conf pointer to conf
          */
         axis2_status_t (AXIS2_CALL *
                 init)(
@@ -92,37 +92,37 @@
                     struct axis2_conf *conf);
 
 
-   /**
-    * @param svc_grp_ctx pointer to service group context
-    * @param env pointer to environment struct
-    */
-        axis2_char_t* (AXIS2_CALL *
+        /**
+         * @param svc_grp_ctx pointer to service group context
+         * @param env pointer to environment struct
+         */
+        axis2_char_t *(AXIS2_CALL *
                 get_id)(
-                    struct axis2_svc_grp_ctx *svc_grp_ctx,
+                    const axis2_svc_grp_ctx_t *svc_grp_ctx,
                     const axis2_env_t *env);
 
 
-   /**
-    * @param svc_grp_ctx pointer to service group context
-    * @param env pointer to environment struct
-    * @param id pointer to id
-    */
+        /**
+         * @param svc_grp_ctx pointer to service group context
+         * @param env pointer to environment struct
+         * @param id pointer to id
+         */
         axis2_status_t (AXIS2_CALL *
                 set_id)(
-               struct axis2_svc_grp_ctx *svc_grp_ctx,
+                    struct axis2_svc_grp_ctx *svc_grp_ctx,
                     const axis2_env_t *env,
                     axis2_char_t *id);
 
 
         /** 
-    * if the servic name is foo:bar , you should pass only bar 
-    * @param svc_grp_ctx pointer to service group context
-    * @param env pointer to environment struct
-    * @param svc_name pointer to service name
-    */
-        struct axis2_svc_ctx* (AXIS2_CALL *
+         * if the servic name is foo:bar , you should pass only bar 
+         * @param svc_grp_ctx pointer to service group context
+         * @param env pointer to environment struct
+         * @param svc_name pointer to service name
+         */
+        struct axis2_svc_ctx *(AXIS2_CALL *
                 get_svc_ctx)(
-               struct axis2_svc_grp_ctx *svc_grp_ctx,
+                    const axis2_svc_grp_ctx_t *svc_grp_ctx,
                     const axis2_env_t *env,
                     axis2_char_t *svc_name);
 
@@ -130,32 +130,32 @@
          * This will create one service context per each service in descrpition
          * if service group has 2 service init , then two service contexts will be
          * created
-    * @param svc_grp_ctx pointer to service group context
-    * @param env pointer to environment struct
+         * @param svc_grp_ctx pointer to service group context
+         * @param env pointer to environment struct
          */
         axis2_status_t (AXIS2_CALL *
                 fill_svc_ctx_map)(
-               struct axis2_svc_grp_ctx *svc_grp_ctx,
+                    struct axis2_svc_grp_ctx *svc_grp_ctx,
                     const axis2_env_t *env);
 
 
-   /**
-    * @param svc_grp_ctx pointer to service group context
-    * @param env pointer to environment struct
-    */
-        struct axis2_svc_grp* (AXIS2_CALL *
+        /**
+         * @param svc_grp_ctx pointer to service group context
+         * @param env pointer to environment struct
+         */
+        struct axis2_svc_grp *(AXIS2_CALL *
                 get_svc_grp)(
-          struct axis2_svc_grp_ctx *svc_grp_ctx,
+                    const axis2_svc_grp_ctx_t *svc_grp_ctx,
                     const axis2_env_t *env);
 
 
-   /**
-    * @param svc_grp_ctx pointer to service group context
-    * @param env pointer to environment struct
-    */
-        axis2_hash_t* (AXIS2_CALL *
+        /**
+         * @param svc_grp_ctx pointer to service group context
+         * @param env pointer to environment struct
+         */
+        axis2_hash_t *(AXIS2_CALL *
                 get_svc_ctx_map)(
-               struct axis2_svc_grp_ctx *svc_grp_ctx,
+                    const axis2_svc_grp_ctx_t *svc_grp_ctx,
                     const axis2_env_t *env);
     };
 
@@ -164,7 +164,7 @@
      */
     struct axis2_svc_grp_ctx
     {
-   /** operations of service group context */
+        /** operations of service group context */
         axis2_svc_grp_ctx_ops_t *ops;
     };
 
@@ -175,7 +175,7 @@
      * @param svc_grp pointer to service group
      * @param conf_ctx pointer to configuration context
      */
-    AXIS2_EXTERN axis2_svc_grp_ctx_t* AXIS2_CALL
+    AXIS2_EXTERN axis2_svc_grp_ctx_t *AXIS2_CALL
     axis2_svc_grp_ctx_create(
         const axis2_env_t *env,
         struct axis2_svc_grp *svc_grp,

Modified: webservices/axis2/trunk/c/modules/core/context/svc_grp_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/svc_grp_ctx.c?rev=429656&r1=429655&r2=429656&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/svc_grp_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/svc_grp_ctx.c Tue Aug  8 07:01:27 2006
@@ -35,65 +35,77 @@
     axis2_svc_grp_t *svc_grp;
     /** name of the service group associated with this context */
     axis2_char_t *svc_grp_name;
-} axis2_svc_grp_ctx_impl_t;
+}
+axis2_svc_grp_ctx_impl_t;
 
 /** Interface to implementation conversion macro */
 #define AXIS2_INTF_TO_IMPL(svc_grp_ctx) ((axis2_svc_grp_ctx_impl_t *)svc_grp_ctx)
 
 
-axis2_ctx_t* AXIS2_CALL 
-axis2_svc_grp_ctx_get_base(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                           const axis2_env_t *env);
+axis2_ctx_t *AXIS2_CALL 
+axis2_svc_grp_ctx_get_base(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env);
 
                            
-struct axis2_conf_ctx* AXIS2_CALL 
-axis2_svc_grp_ctx_get_parent(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                             const axis2_env_t *env);
+struct axis2_conf_ctx *AXIS2_CALL 
+axis2_svc_grp_ctx_get_parent(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env);
 
                              
 axis2_status_t AXIS2_CALL 
-axis2_svc_grp_ctx_free(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                        const axis2_env_t *env);
+axis2_svc_grp_ctx_free(
+    struct axis2_svc_grp_ctx *svc_grp_ctx, 
+    const axis2_env_t *env);
 
                         
 axis2_status_t AXIS2_CALL 
-axis2_svc_grp_ctx_init(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                       const axis2_env_t *env,
-                       axis2_conf_t *conf);
+axis2_svc_grp_ctx_init(
+    struct axis2_svc_grp_ctx *svc_grp_ctx, 
+    const axis2_env_t *env,
+    axis2_conf_t *conf);
 
                        
-axis2_char_t* AXIS2_CALL 
-axis2_svc_grp_ctx_get_id(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                         const axis2_env_t *env);
+axis2_char_t *AXIS2_CALL 
+axis2_svc_grp_ctx_get_id(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env);
 
                          
 axis2_status_t AXIS2_CALL 
-axis2_svc_grp_ctx_set_id(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                         const axis2_env_t *env, 
-                         axis2_char_t *id);
+axis2_svc_grp_ctx_set_id(
+    struct axis2_svc_grp_ctx *svc_grp_ctx, 
+    const axis2_env_t *env, 
+    axis2_char_t *id);
                          
-axis2_svc_ctx_t* AXIS2_CALL 
-axis2_svc_grp_ctx_get_svc_ctx(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                              const axis2_env_t *env,
-                              axis2_char_t *svc_name);
+axis2_svc_ctx_t *AXIS2_CALL 
+axis2_svc_grp_ctx_get_svc_ctx(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env,
+    axis2_char_t *svc_name);
 
                               
 axis2_status_t AXIS2_CALL 
-axis2_svc_grp_ctx_fill_svc_ctx_map(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                                   const axis2_env_t *env);
-axis2_svc_grp_t* AXIS2_CALL 
-axis2_svc_grp_ctx_get_svc_grp(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                              const axis2_env_t *env);
+axis2_svc_grp_ctx_fill_svc_ctx_map(
+    struct axis2_svc_grp_ctx *svc_grp_ctx, 
+    const axis2_env_t *env);
+
+axis2_svc_grp_t *AXIS2_CALL 
+axis2_svc_grp_ctx_get_svc_grp(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env);
                               
-axis2_hash_t* AXIS2_CALL 
-axis2_svc_grp_ctx_get_svc_ctx_map(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                                  const axis2_env_t *env);
-
-
-AXIS2_EXTERN axis2_svc_grp_ctx_t* AXIS2_CALL
-axis2_svc_grp_ctx_create(const axis2_env_t *env, 
-                        axis2_svc_grp_t *svc_grp, 
-                         struct axis2_conf_ctx *conf_ctx) 
+axis2_hash_t *AXIS2_CALL 
+axis2_svc_grp_ctx_get_svc_ctx_map(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env);
+
+AXIS2_EXTERN axis2_svc_grp_ctx_t *AXIS2_CALL
+axis2_svc_grp_ctx_create(
+    const axis2_env_t *env, 
+    axis2_svc_grp_t *svc_grp, 
+    struct axis2_conf_ctx *conf_ctx) 
 {
     axis2_svc_grp_ctx_impl_t *svc_grp_ctx_impl = NULL;
     
@@ -185,18 +197,20 @@
     return &(svc_grp_ctx_impl->svc_grp_ctx);
 }
 
-axis2_ctx_t* AXIS2_CALL 
-axis2_svc_grp_ctx_get_base(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                           const axis2_env_t *env)
+axis2_ctx_t *AXIS2_CALL 
+axis2_svc_grp_ctx_get_base(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_grp_ctx)->base;
 }
 
 
-struct axis2_conf_ctx* AXIS2_CALL 
-axis2_svc_grp_ctx_get_parent(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                             const axis2_env_t *env) 
+struct axis2_conf_ctx *AXIS2_CALL 
+axis2_svc_grp_ctx_get_parent(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_grp_ctx)->parent;
@@ -205,8 +219,9 @@
 
 
 axis2_status_t AXIS2_CALL 
-axis2_svc_grp_ctx_free (struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                        const axis2_env_t *env)
+axis2_svc_grp_ctx_free(
+    struct axis2_svc_grp_ctx *svc_grp_ctx, 
+    const axis2_env_t *env)
 {
     axis2_svc_grp_ctx_impl_t *svc_grp_ctx_impl = NULL;
     
@@ -258,14 +273,14 @@
     return AXIS2_SUCCESS;
 }
 
-
 /**
  * The method is used to do the intialization of the EngineContext
  */
 axis2_status_t AXIS2_CALL 
-axis2_svc_grp_ctx_init(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                       const axis2_env_t *env,
-                       axis2_conf_t *conf) 
+axis2_svc_grp_ctx_init(
+    struct axis2_svc_grp_ctx *svc_grp_ctx, 
+    const axis2_env_t *env,
+    axis2_conf_t *conf) 
 {
     axis2_svc_grp_ctx_impl_t *svc_grp_ctx_impl = NULL;
     
@@ -283,18 +298,20 @@
 }
 
 
-axis2_char_t* AXIS2_CALL 
-axis2_svc_grp_ctx_get_id(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                        const axis2_env_t *env) 
+axis2_char_t *AXIS2_CALL 
+axis2_svc_grp_ctx_get_id(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_grp_ctx)->id;
 }
 
 axis2_status_t AXIS2_CALL 
-axis2_svc_grp_ctx_set_id(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                         const axis2_env_t *env, 
-                         axis2_char_t *id) 
+axis2_svc_grp_ctx_set_id(
+    struct axis2_svc_grp_ctx *svc_grp_ctx, 
+    const axis2_env_t *env, 
+    axis2_char_t *id) 
 {
     axis2_svc_grp_ctx_impl_t *svc_grp_ctx_impl = NULL;
     
@@ -317,10 +334,11 @@
 }
 
 /** if the servic name is foo:bar , you should pass only bar */
-axis2_svc_ctx_t* AXIS2_CALL 
-axis2_svc_grp_ctx_get_svc_ctx(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                              const axis2_env_t *env,
-                              axis2_char_t *svc_name) 
+axis2_svc_ctx_t *AXIS2_CALL 
+axis2_svc_grp_ctx_get_svc_ctx(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env,
+    axis2_char_t *svc_name) 
 {
     axis2_svc_grp_ctx_impl_t *svc_grp_ctx_impl = NULL;
     
@@ -337,8 +355,9 @@
  * created
  */
 axis2_status_t AXIS2_CALL 
-axis2_svc_grp_ctx_fill_svc_ctx_map(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                                   const axis2_env_t *env)
+axis2_svc_grp_ctx_fill_svc_ctx_map(
+    struct axis2_svc_grp_ctx *svc_grp_ctx, 
+    const axis2_env_t *env)
 {
     axis2_svc_grp_ctx_impl_t *svc_grp_ctx_impl = NULL;
     axis2_hash_index_t *hi = NULL;
@@ -374,17 +393,19 @@
     return AXIS2_SUCCESS;
 }
 
-axis2_svc_grp_t* AXIS2_CALL 
-axis2_svc_grp_ctx_get_svc_grp(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                              const axis2_env_t *env) 
+axis2_svc_grp_t *AXIS2_CALL 
+axis2_svc_grp_ctx_get_svc_grp(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_grp_ctx)->svc_grp;
 }
 
-axis2_hash_t* AXIS2_CALL 
-axis2_svc_grp_ctx_get_svc_ctx_map(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                                  const axis2_env_t *env)
+axis2_hash_t *AXIS2_CALL 
+axis2_svc_grp_ctx_get_svc_ctx_map(
+    const axis2_svc_grp_ctx_t *svc_grp_ctx, 
+    const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_grp_ctx)->svc_ctx_map;



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