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/04 15:20:47 UTC
svn commit: r428720 - in /webservices/axis2/trunk/c:
include/axis2_conf_ctx.h modules/core/context/conf_ctx.c
Author: pini
Date: Fri Aug 4 06:20:46 2006
New Revision: 428720
URL: http://svn.apache.org/viewvc?rev=428720&view=rev
Log:
Formatting fixes and parameter changes to to const.
Modified:
webservices/axis2/trunk/c/include/axis2_conf_ctx.h
webservices/axis2/trunk/c/modules/core/context/conf_ctx.c
Modified: webservices/axis2/trunk/c/include/axis2_conf_ctx.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_conf_ctx.h?rev=428720&r1=428719&r2=428720&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_conf_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_conf_ctx.h Fri Aug 4 06:20:46 2006
@@ -68,7 +68,7 @@
*/
axis2_ctx_t* (AXIS2_CALL *
get_base)(
- struct axis2_conf_ctx *conf_ctx,
+ const axis2_conf_ctx_t *conf_ctx,
const axis2_env_t *env);
/**
@@ -77,7 +77,7 @@
*/
struct axis2_conf* (AXIS2_CALL *
get_conf)(
- struct axis2_conf_ctx *conf_ctx,
+ const axis2_conf_ctx_t *conf_ctx,
const axis2_env_t *env);
/**
@@ -86,7 +86,7 @@
*/
axis2_hash_t* (AXIS2_CALL *
get_op_ctx_map)(
- struct axis2_conf_ctx *conf_ctx,
+ const axis2_conf_ctx_t *conf_ctx,
const axis2_env_t *env);
/**
@@ -95,7 +95,7 @@
*/
axis2_hash_t* (AXIS2_CALL *
get_svc_ctx_map)(
- struct axis2_conf_ctx *conf_ctx,
+ const axis2_conf_ctx_t *conf_ctx,
const axis2_env_t *env);
/**
@@ -104,7 +104,7 @@
*/
axis2_hash_t* (AXIS2_CALL *
get_svc_grp_ctx_map)(
- struct axis2_conf_ctx *conf_ctx,
+ const axis2_conf_ctx_t *conf_ctx,
const axis2_env_t *env);
/**
@@ -130,7 +130,7 @@
*/
struct axis2_op_ctx* (AXIS2_CALL *
get_op_ctx)(
- struct axis2_conf_ctx *conf_ctx,
+ const axis2_conf_ctx_t *conf_ctx,
const axis2_env_t *env,
axis2_char_t *message_id);
@@ -157,7 +157,7 @@
*/
struct axis2_svc_ctx* (AXIS2_CALL *
get_svc_ctx)(
- struct axis2_conf_ctx *conf_ctx,
+ const axis2_conf_ctx_t *conf_ctx,
const axis2_env_t *env,
axis2_char_t *svc_id);
@@ -184,7 +184,7 @@
*/
struct axis2_svc_grp_ctx* (AXIS2_CALL *
get_svc_grp_ctx)(
- struct axis2_conf_ctx *conf_ctx,
+ const axis2_conf_ctx_t *conf_ctx,
const axis2_env_t *env,
axis2_char_t *svc_grp_id);
@@ -196,7 +196,7 @@
*/
axis2_char_t* (AXIS2_CALL *
get_root_dir)(
- struct axis2_conf_ctx *conf_ctx,
+ const axis2_conf_ctx_t *conf_ctx,
const axis2_env_t *env);
/**
Modified: webservices/axis2/trunk/c/modules/core/context/conf_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/conf_ctx.c?rev=428720&r1=428719&r2=428720&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/conf_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/conf_ctx.c Fri Aug 4 06:20:46 2006
@@ -49,95 +49,107 @@
axis2_status_t AXIS2_CALL
-axis2_conf_ctx_set_conf(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_conf_t *conf);
-
+axis2_conf_ctx_set_conf(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_conf_t *conf);
+
axis2_ctx_t* AXIS2_CALL
-axis2_conf_ctx_get_base(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env);
-
+axis2_conf_ctx_get_base(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env);
+
axis2_conf_t* AXIS2_CALL
-axis2_conf_ctx_get_conf(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env);
-
+axis2_conf_ctx_get_conf(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env);
+
axis2_hash_t* AXIS2_CALL
-axis2_conf_ctx_get_op_ctx_map(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env);
-
+axis2_conf_ctx_get_op_ctx_map(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env);
+
axis2_hash_t* AXIS2_CALL
-axis2_conf_ctx_get_svc_ctx_map(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env);
-
+axis2_conf_ctx_get_svc_ctx_map(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env);
+
axis2_hash_t* AXIS2_CALL
-axis2_conf_ctx_get_svc_grp_ctx_map(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env);
-
-axis2_status_t AXIS2_CALL
-axis2_conf_ctx_register_op_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *message_id,
- axis2_op_ctx_t *op_ctx);
+axis2_conf_ctx_get_svc_grp_ctx_map(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL
+axis2_conf_ctx_register_op_ctx(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *message_id,
+ axis2_op_ctx_t *op_ctx);
-
axis2_op_ctx_t* AXIS2_CALL
-axis2_conf_ctx_get_op_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *message_id);
-
-
-axis2_status_t AXIS2_CALL
-axis2_conf_ctx_register_svc_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *svc_id,
- axis2_svc_ctx_t *svc_ctx);
+axis2_conf_ctx_get_op_ctx(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *message_id);
+
+axis2_status_t AXIS2_CALL
+axis2_conf_ctx_register_svc_ctx(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *svc_id,
+ axis2_svc_ctx_t *svc_ctx);
-
axis2_svc_ctx_t* AXIS2_CALL
-axis2_conf_ctx_get_svc_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *svc_id);
-
-axis2_status_t AXIS2_CALL
-axis2_conf_ctx_register_svc_grp_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *svc_grp_id,
- axis2_svc_grp_ctx_t *svc_grp_ctx);
+axis2_conf_ctx_get_svc_ctx(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *svc_id);
+
+axis2_status_t AXIS2_CALL
+axis2_conf_ctx_register_svc_grp_ctx(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *svc_grp_id,
+ axis2_svc_grp_ctx_t *svc_grp_ctx);
-
axis2_svc_grp_ctx_t* AXIS2_CALL
-axis2_conf_ctx_get_svc_grp_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *svc_grp_id);
+axis2_conf_ctx_get_svc_grp_ctx(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *svc_grp_id);
-
axis2_char_t* AXIS2_CALL
-axis2_conf_ctx_get_root_dir(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env);
-
-axis2_status_t AXIS2_CALL
-axis2_conf_ctx_set_root_dir(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *path);
-
-
-axis2_status_t AXIS2_CALL
-axis2_conf_ctx_init(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_conf_t *conf);
-
-axis2_status_t AXIS2_CALL
-axis2_conf_ctx_free(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env);
-
-axis2_svc_grp_ctx_t* AXIS2_CALL
-axis2_conf_ctx_fill_ctxs(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_msg_ctx_t *msg_ctx);
+axis2_conf_ctx_get_root_dir(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL
+axis2_conf_ctx_set_root_dir(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *path);
+axis2_status_t AXIS2_CALL
+axis2_conf_ctx_init(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_conf_t *conf);
+
+axis2_status_t AXIS2_CALL
+axis2_conf_ctx_free(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env);
+
+axis2_svc_grp_ctx_t* AXIS2_CALL
+axis2_conf_ctx_fill_ctxs(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_msg_ctx_t *msg_ctx);
AXIS2_EXTERN axis2_conf_ctx_t* AXIS2_CALL
- axis2_conf_ctx_create(const axis2_env_t *env, axis2_conf_t *conf)
+axis2_conf_ctx_create(
+ const axis2_env_t *env,
+ axis2_conf_t *conf)
{
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
@@ -265,9 +277,10 @@
}
axis2_status_t AXIS2_CALL
-axis2_conf_ctx_set_conf(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_conf_t *conf)
+axis2_conf_ctx_set_conf(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_conf_t *conf)
{
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_INTF_TO_IMPL(conf_ctx)->conf = conf; /* we just maitain a shalow copy here */
@@ -275,50 +288,56 @@
}
axis2_ctx_t* AXIS2_CALL
-axis2_conf_ctx_get_base(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env)
+axis2_conf_ctx_get_base(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
return AXIS2_INTF_TO_IMPL(conf_ctx)->base;
}
axis2_conf_t* AXIS2_CALL
-axis2_conf_ctx_get_conf(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env)
+axis2_conf_ctx_get_conf(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
return AXIS2_INTF_TO_IMPL(conf_ctx)->conf;
}
axis2_hash_t* AXIS2_CALL
-axis2_conf_ctx_get_op_ctx_map(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env)
+axis2_conf_ctx_get_op_ctx_map(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
return AXIS2_INTF_TO_IMPL(conf_ctx)->op_ctx_map;
}
axis2_hash_t* AXIS2_CALL
-axis2_conf_ctx_get_svc_ctx_map(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env)
+axis2_conf_ctx_get_svc_ctx_map(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
return AXIS2_INTF_TO_IMPL(conf_ctx)->svc_ctx_map;
}
axis2_hash_t* AXIS2_CALL
-axis2_conf_ctx_get_svc_grp_ctx_map(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env)
+axis2_conf_ctx_get_svc_grp_ctx_map(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
return AXIS2_INTF_TO_IMPL(conf_ctx)->svc_grp_ctx_map;
}
axis2_status_t AXIS2_CALL
-axis2_conf_ctx_register_op_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *message_id,
- axis2_op_ctx_t *op_ctx)
+axis2_conf_ctx_register_op_ctx(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *message_id,
+ axis2_op_ctx_t *op_ctx)
{
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
@@ -336,9 +355,10 @@
}
axis2_op_ctx_t* AXIS2_CALL
-axis2_conf_ctx_get_op_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *message_id)
+axis2_conf_ctx_get_op_ctx(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *message_id)
{
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
axis2_op_ctx_t *rv = NULL;
@@ -360,10 +380,11 @@
}
axis2_status_t AXIS2_CALL
-axis2_conf_ctx_register_svc_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *svc_id,
- axis2_svc_ctx_t *svc_ctx)
+axis2_conf_ctx_register_svc_ctx(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *svc_id,
+ axis2_svc_ctx_t *svc_ctx)
{
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
@@ -381,9 +402,10 @@
}
axis2_svc_ctx_t* AXIS2_CALL
-axis2_conf_ctx_get_svc_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *svc_id)
+axis2_conf_ctx_get_svc_ctx(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *svc_id)
{
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
axis2_svc_ctx_t *rv = NULL;
@@ -403,10 +425,11 @@
}
axis2_status_t AXIS2_CALL
-axis2_conf_ctx_register_svc_grp_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *svc_grp_id,
- axis2_svc_grp_ctx_t *svc_grp_ctx)
+axis2_conf_ctx_register_svc_grp_ctx(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *svc_grp_id,
+ axis2_svc_grp_ctx_t *svc_grp_ctx)
{
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
@@ -424,9 +447,10 @@
}
axis2_svc_grp_ctx_t* AXIS2_CALL
-axis2_conf_ctx_get_svc_grp_ctx(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *svc_grp_id)
+axis2_conf_ctx_get_svc_grp_ctx(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *svc_grp_id)
{
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
axis2_svc_grp_ctx_t *rv = NULL;
@@ -446,8 +470,9 @@
}
axis2_char_t* AXIS2_CALL
-axis2_conf_ctx_get_root_dir(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env)
+axis2_conf_ctx_get_root_dir(
+ const axis2_conf_ctx_t *conf_ctx,
+ const axis2_env_t *env)
{
axis2_char_t *rv = NULL;
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
@@ -460,9 +485,10 @@
}
axis2_status_t AXIS2_CALL
-axis2_conf_ctx_set_root_dir(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_char_t *path)
+axis2_conf_ctx_set_root_dir(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_char_t *path)
{
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
@@ -491,9 +517,10 @@
}
axis2_status_t AXIS2_CALL
-axis2_conf_ctx_init(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_conf_t *conf)
+axis2_conf_ctx_init(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_conf_t *conf)
{
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
axis2_hash_index_t *hi = NULL;
@@ -542,8 +569,9 @@
}
axis2_status_t AXIS2_CALL
-axis2_conf_ctx_free (struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env)
+axis2_conf_ctx_free(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env)
{
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
@@ -643,9 +671,10 @@
}
axis2_svc_grp_ctx_t* AXIS2_CALL
-axis2_conf_ctx_fill_ctxs(struct axis2_conf_ctx *conf_ctx,
- const axis2_env_t *env,
- axis2_msg_ctx_t *msg_ctx)
+axis2_conf_ctx_fill_ctxs(
+ struct axis2_conf_ctx *conf_ctx,
+ const axis2_env_t *env,
+ axis2_msg_ctx_t *msg_ctx)
{
axis2_conf_ctx_impl_t *conf_ctx_impl = NULL;
axis2_char_t *svc_grp_ctx_id = NULL;
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org