summaryrefslogtreecommitdiffstats
path: root/src/core/description/svc_grp.c
diff options
context:
space:
mode:
authorGravatar nandika2010-02-16 12:09:36 +0000
committerGravatar nandika2010-02-16 12:09:36 +0000
commit950c199823fa924aadcabd05d581384bfb71544d (patch)
treecb602064d3fa8e8d3b5ee8107af473a0963c9159 /src/core/description/svc_grp.c
parentb1d21c3f63bfd09d642aa1cc56bfbc4784e4e6c5 (diff)
downloadaxis2c-950c199823fa924aadcabd05d581384bfb71544d.tar.gz
axis2c-950c199823fa924aadcabd05d581384bfb71544d.tar.bz2
is_module_engaged method added
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@910493 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/core/description/svc_grp.c')
-rw-r--r--src/core/description/svc_grp.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/core/description/svc_grp.c b/src/core/description/svc_grp.c
index 157b77a..c69811c 100644
--- a/src/core/description/svc_grp.c
+++ b/src/core/description/svc_grp.c
@@ -598,3 +598,28 @@ axis2_svc_grp_get_base(
return svc_grp->base;
}
+AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+axis2_svc_grp_is_module_engaged(
+ const axis2_svc_grp_t *svc_grp,
+ const axutil_env_t *env,
+ const axutil_qname_t *module_name)
+{
+ int i = 0;
+ axutil_qname_t *modu = NULL;
+ axis2_char_t *modu_local = NULL;
+ axis2_char_t *module_name_local = NULL;
+ int size = 0;
+
+ size = axutil_array_list_size(svc_grp->module_qname_list, env);
+ for(i = 0; size; i++)
+ {
+ modu = axutil_array_list_get(svc_grp->module_qname_list, env, i);
+ modu_local = axutil_qname_get_localpart(modu, env);
+ module_name_local = axutil_qname_get_localpart(module_name, env);
+ if(!axutil_strcmp(modu_local, module_name_local))
+ {
+ return AXIS2_TRUE;
+ }
+ }
+ return AXIS2_FALSE;
+}