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 15:16:40 UTC
svn commit: r429646 - in /webservices/axis2/trunk/c: include/axis2_svc_ctx.h
modules/core/context/svc_ctx.c
Author: pini
Date: Tue Aug 8 06:16:39 2006
New Revision: 429646
URL: http://svn.apache.org/viewvc?rev=429646&view=rev
Log:
Formatting fixes and parameter changes to const.
Modified:
webservices/axis2/trunk/c/include/axis2_svc_ctx.h
webservices/axis2/trunk/c/modules/core/context/svc_ctx.c
Modified: webservices/axis2/trunk/c/include/axis2_svc_ctx.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_svc_ctx.h?rev=429646&r1=429645&r2=429646&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc_ctx.h Tue Aug 8 06:16:39 2006
@@ -49,74 +49,77 @@
*/
struct axis2_svc_ctx_ops
{
- /**
- * @param svc_ctx pointer to service context
- * @param env pointer to environment struct
- */
- axis2_ctx_t* (AXIS2_CALL *
+ /**
+ * @param svc_ctx pointer to service context
+ * @param env pointer to environment struct
+ */
+ axis2_ctx_t *(AXIS2_CALL *
get_base)(
- struct axis2_svc_ctx *svc_ctx,
+ const axis2_svc_ctx_t *svc_ctx,
const axis2_env_t *env);
- /**
- * @param svc_ctx pointer to service context
- * @param env pointer to environment struct
- */
- struct axis2_svc_grp_ctx* (AXIS2_CALL *
+ /**
+ * @param svc_ctx pointer to service context
+ * @param env pointer to environment struct
+ */
+ struct axis2_svc_grp_ctx *(AXIS2_CALL *
get_parent)(
- struct axis2_svc_ctx *svc_ctx,
+ const axis2_svc_ctx_t *svc_ctx,
const axis2_env_t *env);
- /**
- * @param svc_ctx pointer to service context
- * @param env pointer to environment struct
- */
+ /**
+ * @param svc_ctx pointer to service context
+ * @param env pointer to environment struct
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
axis2_status_t (AXIS2_CALL *
free)(
- struct axis2_svc_ctx *svc_ctx,
+ struct axis2_svc_ctx *svc_ctx,
const axis2_env_t *env);
/**
* The method is used to do the intialization of the EngineContext
- * @param svc_ctx pointer to service context
- * @param env pointer to environment struct
- * @param conf pointer to conf
+ * @param svc_ctx pointer to service context
+ * @param env pointer to environment struct
+ * @param conf pointer to conf
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t (AXIS2_CALL *
init)(
- struct axis2_svc_ctx *svc_ctx,
+ struct axis2_svc_ctx *svc_ctx,
const axis2_env_t *env,
struct axis2_conf *conf);
/**
- * @param svc_ctx pointer to service context
- * @param env pointer to environment struct
+ * @param svc_ctx pointer to service context
+ * @param env pointer to environment struct
* @return Returns the svc_id.
*/
- axis2_char_t* (AXIS2_CALL *
+ axis2_char_t *(AXIS2_CALL *
get_svc_id)(
- const struct axis2_svc_ctx *svc_ctx,
+ const axis2_svc_ctx_t *svc_ctx,
const axis2_env_t *env);
- /**
- * @param svc_ctx pointer to service context
- * @param env pointer to environment struct
- */
- struct axis2_svc* (AXIS2_CALL *
+ /**
+ * @param svc_ctx pointer to service context
+ * @param env pointer to environment struct
+ */
+ struct axis2_svc *(AXIS2_CALL *
get_svc)(
- struct axis2_svc_ctx *svc_ctx,
+ const axis2_svc_ctx_t *svc_ctx,
const axis2_env_t *env);
- /**
- * @param svc_ctx pointer to service context
- * @param env pointer to environment struct
- * @param svc pointer to service
- */
+ /**
+ * @param svc_ctx pointer to service context
+ * @param env pointer to environment struct
+ * @param svc pointer to service
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
axis2_status_t (AXIS2_CALL *
set_svc)(
axis2_svc_ctx_t *svc_ctx,
@@ -124,24 +127,24 @@
struct axis2_svc *svc);
- /**
- * @param svc_ctx pointer to service context
- * @param env pointer to environment struct
- */
- struct axis2_conf_ctx* (AXIS2_CALL *
+ /**
+ * @param svc_ctx pointer to service context
+ * @param env pointer to environment struct
+ */
+ struct axis2_conf_ctx *(AXIS2_CALL *
get_conf_ctx)(
- struct axis2_svc_ctx *svc_ctx,
+ const axis2_svc_ctx_t *svc_ctx,
const axis2_env_t *env);
- /**
- * @param svc_ctx pointer to service context
- * @param env pointer to environment struct
- * @param qname pointer to qname
- */
- struct axis2_op_ctx* (AXIS2_CALL *
+ /**
+ * @param svc_ctx pointer to service context
+ * @param env pointer to environment struct
+ * @param qname pointer to qname
+ */
+ struct axis2_op_ctx *(AXIS2_CALL *
create_op_ctx)(
- struct axis2_svc_ctx *svc_ctx,
+ struct axis2_svc_ctx *svc_ctx,
const axis2_env_t *env,
axis2_qname_t *qname);
};
@@ -151,7 +154,7 @@
*/
struct axis2_svc_ctx
{
- /** operations of service context */
+ /** operations of service context */
axis2_svc_ctx_ops_t *ops;
};
@@ -161,9 +164,11 @@
* @param svc pointer to service
* @param svc_grp_ctx pointer to service group context
*/
- AXIS2_EXTERN axis2_svc_ctx_t* AXIS2_CALL axis2_svc_ctx_create(const axis2_env_t *env,
- struct axis2_svc *svc,
- struct axis2_svc_grp_ctx *svc_grp_ctx);
+ AXIS2_EXTERN axis2_svc_ctx_t *AXIS2_CALL
+ axis2_svc_ctx_create(
+ const axis2_env_t *env,
+ struct axis2_svc *svc,
+ struct axis2_svc_grp_ctx *svc_grp_ctx);
/************************** Start of function macros **************************/
Modified: webservices/axis2/trunk/c/modules/core/context/svc_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/svc_ctx.c?rev=429646&r1=429645&r2=429646&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/svc_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/svc_ctx.c Tue Aug 8 06:16:39 2006
@@ -38,48 +38,58 @@
/** Interface to implementation conversion macro */
#define AXIS2_INTF_TO_IMPL(svc_ctx) ((axis2_svc_ctx_impl_t *)svc_ctx)
-axis2_ctx_t* AXIS2_CALL
-axis2_svc_ctx_get_base(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env);
+axis2_ctx_t *AXIS2_CALL
+axis2_svc_ctx_get_base(
+ const axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env);
-struct axis2_svc_grp_ctx * AXIS2_CALL
-axis2_svc_ctx_get_parent(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env);
+struct axis2_svc_grp_ctx *AXIS2_CALL
+axis2_svc_ctx_get_parent(
+ const axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env);
axis2_status_t AXIS2_CALL
-axis2_svc_ctx_free(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env);
+axis2_svc_ctx_free(
+ struct axis2_svc_ctx *svc_ctx,
+ const axis2_env_t *env);
axis2_status_t AXIS2_CALL
-axis2_svc_ctx_init(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env,
- axis2_conf_t *conf);
+axis2_svc_ctx_init(
+ struct axis2_svc_ctx *svc_ctx,
+ const axis2_env_t *env,
+ axis2_conf_t *conf);
-axis2_char_t* AXIS2_CALL
-axis2_svc_ctx_get_svc_id(const struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env);
+axis2_char_t *AXIS2_CALL
+axis2_svc_ctx_get_svc_id(
+ const axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env);
-axis2_svc_t* AXIS2_CALL
-axis2_svc_ctx_get_svc(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env);
+axis2_svc_t *AXIS2_CALL
+axis2_svc_ctx_get_svc(
+ const axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env);
axis2_status_t AXIS2_CALL
-axis2_svc_ctx_set_svc(axis2_svc_ctx_t *svc_ctx,
- const axis2_env_t *env,
- axis2_svc_t *svc);
+axis2_svc_ctx_set_svc(
+ axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env,
+ axis2_svc_t *svc);
-struct axis2_conf_ctx* AXIS2_CALL
-axis2_svc_ctx_get_conf_ctx(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env);
+struct axis2_conf_ctx *AXIS2_CALL
+axis2_svc_ctx_get_conf_ctx(
+ const axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env);
-axis2_op_ctx_t* AXIS2_CALL
-axis2_svc_ctx_create_op_ctx(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env,
- axis2_qname_t *qname);
-
-AXIS2_EXTERN axis2_svc_ctx_t* AXIS2_CALL
-axis2_svc_ctx_create(const axis2_env_t *env,
+axis2_op_ctx_t *AXIS2_CALL
+axis2_svc_ctx_create_op_ctx(
+ struct axis2_svc_ctx *svc_ctx,
+ const axis2_env_t *env,
+ axis2_qname_t *qname);
+
+AXIS2_EXTERN axis2_svc_ctx_t *AXIS2_CALL
+axis2_svc_ctx_create(
+ const axis2_env_t *env,
axis2_svc_t *svc,
struct axis2_svc_grp_ctx *svc_grp_ctx)
{
@@ -146,28 +156,29 @@
return &(svc_ctx_impl->svc_ctx);
}
-axis2_ctx_t* AXIS2_CALL
-axis2_svc_ctx_get_base(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env)
+axis2_ctx_t *AXIS2_CALL
+axis2_svc_ctx_get_base(
+ const axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
return AXIS2_INTF_TO_IMPL(svc_ctx)->base;
}
-struct axis2_svc_grp_ctx * AXIS2_CALL
-axis2_svc_ctx_get_parent(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env)
+struct axis2_svc_grp_ctx *AXIS2_CALL
+axis2_svc_ctx_get_parent(
+ const axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
return AXIS2_INTF_TO_IMPL(svc_ctx)->parent;
}
-
-
axis2_status_t AXIS2_CALL
-axis2_svc_ctx_free (struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env)
+axis2_svc_ctx_free(
+ struct axis2_svc_ctx *svc_ctx,
+ const axis2_env_t *env)
{
axis2_svc_ctx_impl_t *svc_ctx_impl = NULL;
@@ -198,9 +209,10 @@
* The method is used to do the intialization of the EngineContext
*/
axis2_status_t AXIS2_CALL
-axis2_svc_ctx_init(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env,
- axis2_conf_t *conf)
+axis2_svc_ctx_init(
+ struct axis2_svc_ctx *svc_ctx,
+ const axis2_env_t *env,
+ axis2_conf_t *conf)
{
axis2_svc_ctx_impl_t *svc_ctx_impl = NULL;
@@ -220,27 +232,30 @@
/**
* @return Returns the svc_id.
*/
-axis2_char_t* AXIS2_CALL
-axis2_svc_ctx_get_svc_id(const struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env)
+axis2_char_t *AXIS2_CALL
+axis2_svc_ctx_get_svc_id(
+ const axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
return AXIS2_INTF_TO_IMPL(svc_ctx)->svc_id;
}
-axis2_svc_t* AXIS2_CALL
-axis2_svc_ctx_get_svc(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env)
+axis2_svc_t *AXIS2_CALL
+axis2_svc_ctx_get_svc(
+ const axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
return AXIS2_INTF_TO_IMPL(svc_ctx)->svc;
}
axis2_status_t AXIS2_CALL
-axis2_svc_ctx_set_svc(axis2_svc_ctx_t *svc_ctx,
- const axis2_env_t *env,
- axis2_svc_t *svc)
+axis2_svc_ctx_set_svc(
+ axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env,
+ axis2_svc_t *svc)
{
axis2_svc_ctx_impl_t *svc_ctx_impl = NULL;
@@ -258,18 +273,20 @@
return AXIS2_SUCCESS;
}
-struct axis2_conf_ctx* AXIS2_CALL
-axis2_svc_ctx_get_conf_ctx(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env)
+struct axis2_conf_ctx *AXIS2_CALL
+axis2_svc_ctx_get_conf_ctx(
+ const axis2_svc_ctx_t *svc_ctx,
+ const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
return AXIS2_SVC_GRP_CTX_GET_PARENT(AXIS2_INTF_TO_IMPL(svc_ctx)->parent, env);
}
-axis2_op_ctx_t* AXIS2_CALL
-axis2_svc_ctx_create_op_ctx(struct axis2_svc_ctx *svc_ctx,
- const axis2_env_t *env,
- axis2_qname_t *qname)
+axis2_op_ctx_t *AXIS2_CALL
+axis2_svc_ctx_create_op_ctx(
+ struct axis2_svc_ctx *svc_ctx,
+ const axis2_env_t *env,
+ axis2_qname_t *qname)
{
axis2_svc_ctx_impl_t *svc_ctx_impl = NULL;
axis2_op_t *op = NULL;
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org