You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2005/12/23 06:20:50 UTC

svn commit: r358712 - in /webservices/axis2/trunk/c: include/ modules/core/deployment/src/

Author: damitha
Date: Thu Dec 22 21:20:34 2005
New Revision: 358712

URL: http://svn.apache.org/viewcvs?rev=358712&view=rev
Log:
New files added

Added:
    webservices/axis2/trunk/c/include/axis2_arch_file_data.h
    webservices/axis2/trunk/c/include/axis2_arch_reader.h
    webservices/axis2/trunk/c/include/axis2_ws_info.h
    webservices/axis2/trunk/c/include/axis2_ws_info_list.h
    webservices/axis2/trunk/c/modules/core/deployment/src/arch_file_data.c
    webservices/axis2/trunk/c/modules/core/deployment/src/arch_reader.c
    webservices/axis2/trunk/c/modules/core/deployment/src/ws_info.c
    webservices/axis2/trunk/c/modules/core/deployment/src/ws_info_list.c
Modified:
    webservices/axis2/trunk/c/modules/core/deployment/src/Makefile.am

Added: webservices/axis2/trunk/c/include/axis2_arch_file_data.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_arch_file_data.h?rev=358712&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_arch_file_data.h (added)
+++ webservices/axis2/trunk/c/include/axis2_arch_file_data.h Thu Dec 22 21:20:34 2005
@@ -0,0 +1,98 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_ARCH_FILE_DATA_H
+#define AXIS2_ARCH_FILE_DATA_H
+
+/**
+ * @file axis2_arch_file_data.h
+ * @brief Axis2 Arch File Data interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_qname.h>
+#include <axis2_conf.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_conf;
+    
+typedef struct axis2_arch_file_data axis2_arch_file_data_t;
+typedef struct axis2_arch_file_data_ops axis2_arch_file_data_ops_t;
+
+/** @defgroup axis2_arch_file_data Arch File Data
+ * @ingroup axis2_deployment
+ * @{
+ */
+
+/** 
+ * @brief Arch File Data ops struct
+ * Encapsulator struct for ops of axis2_arch_file_data
+ */
+AXIS2_DECLARE_DATA struct axis2_arch_file_data_ops
+{
+	/** De-allocate memory
+  	 * @return status code
+  	 */
+	axis2_status_t (AXIS2_CALL *
+    free)(axis2_arch_file_data_t *arch_file_data,
+	        axis2_env_t **env);
+    
+    
+ 
+
+};
+
+/** 
+ * @brief Arch File Data struct 
+ */  
+AXIS2_DECLARE_DATA struct axis2_arch_file_data
+{
+	axis2_arch_file_data_ops_t *ops;
+};
+
+/**
+ * Creates arch file data struct
+ * @param repos_path
+ * @return pointer to newly created arch file data
+ */
+AXIS2_DECLARE(axis2_arch_file_data_t *) 
+axis2_arch_file_data_create_with_repos_name (
+                                        axis2_env_t **env, 
+                                        axis2_char_t *repos_path);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_ARCH_FILE_DATA_FREE(arch_file_data, env) \
+		((arch_file_data->ops)->free (arch_file_data, env))  
+
+
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif  /* AXIS2_ARCH_FILE_DATA_H */

Added: webservices/axis2/trunk/c/include/axis2_arch_reader.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_arch_reader.h?rev=358712&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_arch_reader.h (added)
+++ webservices/axis2/trunk/c/include/axis2_arch_reader.h Thu Dec 22 21:20:34 2005
@@ -0,0 +1,98 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_ARCH_READER_H
+#define AXIS2_ARCH_READER_H
+
+/**
+ * @file axis2_arch_reader.h
+ * @brief Axis2 Arch Reader interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_qname.h>
+#include <axis2_conf.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_conf;
+    
+typedef struct axis2_arch_reader axis2_arch_reader_t;
+typedef struct axis2_arch_reader_ops axis2_arch_reader_ops_t;
+
+/** @defgroup axis2_arch_reader Arch Reader
+ * @ingroup axis2_deployment
+ * @{
+ */
+
+/** 
+ * @brief Arch Reader ops struct
+ * Encapsulator struct for ops of axis2_arch_reader
+ */
+AXIS2_DECLARE_DATA struct axis2_arch_reader_ops
+{
+	/** De-allocate memory
+  	 * @return status code
+  	 */
+	axis2_status_t (AXIS2_CALL *
+    free)(axis2_arch_reader_t *arch_reader,
+	        axis2_env_t **env);
+    
+ 
+                               
+ 
+
+};
+
+/** 
+ * @brief Arch Reader struct 
+ */  
+AXIS2_DECLARE_DATA struct axis2_arch_reader
+{
+	axis2_arch_reader_ops_t *ops;
+};
+
+/**
+ * Creates arch reader struct
+ * @param repos_path
+ * @return pointer to newly created arch reader
+ */
+AXIS2_DECLARE(axis2_arch_reader_t *) 
+axis2_arch_reader_create (axis2_env_t **env);
+
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_ARCH_READER_FREE(arch_reader, env) \
+		((arch_reader->ops)->free (arch_reader, env))  
+
+
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif  /* AXIS2_ARCH_READER_H */

Added: webservices/axis2/trunk/c/include/axis2_ws_info.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_ws_info.h?rev=358712&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_ws_info.h (added)
+++ webservices/axis2/trunk/c/include/axis2_ws_info.h Thu Dec 22 21:20:34 2005
@@ -0,0 +1,101 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_WS_INFO_H
+#define AXIS2_WS_INFO_H
+
+/**
+ * @file axis2_ws_info.h
+ * @brief Axis2 Ws Info interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_qname.h>
+#include <axis2_conf.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_conf;
+    
+typedef struct axis2_ws_info axis2_ws_info_t;
+typedef struct axis2_ws_info_ops axis2_ws_info_ops_t;
+
+/** @defgroup axis2_ws_info Ws Info
+ * @ingroup axis2_deployment
+ * @{
+ */
+
+/** 
+ * @brief Ws Info ops struct
+ * Encapsulator struct for ops of axis2_ws_info
+ */
+AXIS2_DECLARE_DATA struct axis2_ws_info_ops
+{
+	/** De-allocate memory
+  	 * @return status code
+  	 */
+	axis2_status_t (AXIS2_CALL *
+    free)(axis2_ws_info_t *ws_info,
+	        axis2_env_t **env);
+    
+    struct axis2_module_desc *(AXIS2_CALL *
+    get_module) (axis2_ws_info_t *ws_info,
+                                axis2_env_t **env,
+                                axis2_qname_t *module_name); 
+                               
+ 
+
+};
+
+/** 
+ * @brief Ws Info struct 
+ */  
+AXIS2_DECLARE_DATA struct axis2_ws_info
+{
+	axis2_ws_info_ops_t *ops;
+};
+
+/**
+ * Creates description builder struct
+ * @param repos_path
+ * @return pointer to newly created ws info
+ */
+AXIS2_DECLARE(axis2_ws_info_t *) 
+axis2_ws_info_create(axis2_env_t **env);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_WS_INFO_FREE(ws_info, env) \
+		((ws_info->ops)->free (ws_info, env))  
+
+#define AXIS2_WS_INFO_GET_MODULE(ws_info, env, module_name) \
+		((ws_info->ops)->get_module (ws_info, env, module_name))
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif  /* AXIS2_WS_INFO_H */

Added: webservices/axis2/trunk/c/include/axis2_ws_info_list.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_ws_info_list.h?rev=358712&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_ws_info_list.h (added)
+++ webservices/axis2/trunk/c/include/axis2_ws_info_list.h Thu Dec 22 21:20:34 2005
@@ -0,0 +1,100 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_WS_INFO_LIST_H
+#define AXIS2_WS_INFO_LIST_H
+
+/**
+ * @file axis2_ws_info_list.h
+ * @brief Axis2 Ws Info List interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_qname.h>
+#include <axis2_conf.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_conf;
+    
+typedef struct axis2_ws_info_list axis2_ws_info_list_t;
+typedef struct axis2_ws_info_list_ops axis2_ws_info_list_ops_t;
+
+/** @defgroup axis2_ws_info_list Ws Info List
+ * @ingroup axis2_deployment
+ * @{
+ */
+
+/** 
+ * @brief Ws Info List ops struct
+ * Encapsulator struct for ops of axis2_ws_info_list
+ */
+AXIS2_DECLARE_DATA struct axis2_ws_info_list_ops
+{
+	/** De-allocate memory
+  	 * @return status code
+  	 */
+	axis2_status_t (AXIS2_CALL *
+    free)(axis2_ws_info_list_t *ws_info_list,
+	        axis2_env_t **env);
+    
+   
+                               
+ 
+
+};
+
+/** 
+ * @brief Ws Info List struct 
+ */  
+AXIS2_DECLARE_DATA struct axis2_ws_info_list
+{
+	axis2_ws_info_list_ops_t *ops;
+};
+
+/**
+ * Creates ws info list struct
+ * @param repos_path
+ * @return pointer to newly created ws info list
+ */
+AXIS2_DECLARE(axis2_ws_info_list_t *) 
+axis2_ws_info_list_create_with_repos_name (
+                                        axis2_env_t **env, 
+                                        axis2_char_t *repos_path);
+
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_WS_INFO_LIST_FREE(ws_info_list, env) \
+		((ws_info_list->ops)->free (ws_info_list, env))  
+
+
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif  /* AXIS2_WS_INFO_LIST_H */

Modified: webservices/axis2/trunk/c/modules/core/deployment/src/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/src/Makefile.am?rev=358712&r1=358711&r2=358712&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/src/Makefile.am (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/src/Makefile.am Thu Dec 22 21:20:34 2005
@@ -2,7 +2,11 @@
 AM_CPPFLAGS = $(CPPFLAGS)
 libaxis2_deployment_la_SOURCES = phases_info.c \
                                     desc_builder.c \
-                                    dep_engine.c
+                                    dep_engine.c \
+                                    ws_info.c \
+                                    ws_info_list.c \
+                                    arch_reader.c \
+                                    arch_file_data.c
 
 libaxis2_deployment_la_LIBADD = 
 INCLUDES = -I${CUTEST_HOME}/include -I$(top_builddir)/include \

Added: webservices/axis2/trunk/c/modules/core/deployment/src/arch_file_data.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/src/arch_file_data.c?rev=358712&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/src/arch_file_data.c (added)
+++ webservices/axis2/trunk/c/modules/core/deployment/src/arch_file_data.c Thu Dec 22 21:20:34 2005
@@ -0,0 +1,97 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+#include <axis2_arch_file_data.h>
+#include <string.h>
+#include <axis2_class_loader.h>
+
+/** 
+ * @brief
+ */ 
+typedef struct axis2_arch_file_data_impl
+{
+	axis2_arch_file_data_t arch_file_data;
+    
+    	
+} axis2_arch_file_data_impl_t;
+
+#define AXIS2_INTF_TO_IMPL(arch_file_data) \
+    ((axis2_arch_file_data_impl_t *) arch_file_data)
+
+/************************* Function prototypes ********************************/
+
+axis2_status_t AXIS2_CALL 
+axis2_arch_file_data_free (axis2_arch_file_data_t *arch_file_data, 
+                            axis2_env_t **env);
+
+
+
+                                
+/************************** End of function prototypes ************************/
+
+axis2_arch_file_data_t * AXIS2_CALL 
+axis2_arch_file_data_create(axis2_env_t **env)
+{
+    axis2_arch_file_data_impl_t *arch_file_data_impl = NULL;
+    
+	AXIS2_ENV_CHECK(env, NULL);
+	
+	arch_file_data_impl = (axis2_arch_file_data_impl_t *) AXIS2_MALLOC((*env)->
+        allocator, sizeof(axis2_arch_file_data_impl_t));
+	
+	
+	if(NULL == arch_file_data_impl)
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); 
+        return NULL;
+    }
+    
+    arch_file_data_impl->arch_file_data.ops = NULL;
+    
+	arch_file_data_impl->arch_file_data.ops = 
+		AXIS2_MALLOC ((*env)->allocator, sizeof(axis2_arch_file_data_ops_t));
+	if(NULL == arch_file_data_impl->arch_file_data.ops)
+    {
+        axis2_arch_file_data_free(&(arch_file_data_impl->arch_file_data), env);
+		AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    
+	arch_file_data_impl->arch_file_data.ops->free =  axis2_arch_file_data_free;
+	
+	return &(arch_file_data_impl->arch_file_data);
+}
+
+/***************************Function implementation****************************/
+
+axis2_status_t AXIS2_CALL 
+axis2_arch_file_data_free (axis2_arch_file_data_t *arch_file_data, 
+                            axis2_env_t **env)
+{
+    axis2_arch_file_data_impl_t *feature_impl = NULL;
+    
+    AXIS2_FUNC_PARAM_CHECK(arch_file_data, env, AXIS2_FAILURE);
+    
+    feature_impl = AXIS2_INTF_TO_IMPL(arch_file_data);
+    
+	if(NULL != arch_file_data->ops)
+        AXIS2_FREE((*env)->allocator, arch_file_data->ops);
+    
+    AXIS2_FREE((*env)->allocator, feature_impl);
+    feature_impl = NULL;
+    
+	return AXIS2_SUCCESS;
+}

Added: webservices/axis2/trunk/c/modules/core/deployment/src/arch_reader.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/src/arch_reader.c?rev=358712&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/src/arch_reader.c (added)
+++ webservices/axis2/trunk/c/modules/core/deployment/src/arch_reader.c Thu Dec 22 21:20:34 2005
@@ -0,0 +1,98 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+#include <axis2_arch_reader.h>
+#include <string.h>
+#include <axis2_class_loader.h>
+
+/** 
+ * @brief
+ * To do the common tasks for all Builder
+ */ 
+typedef struct axis2_arch_reader_impl
+{
+	axis2_arch_reader_t arch_reader;
+    
+    	
+} axis2_arch_reader_impl_t;
+
+#define AXIS2_INTF_TO_IMPL(arch_reader) \
+    ((axis2_arch_reader_impl_t *) arch_reader)
+
+/************************* Function prototypes ********************************/
+
+axis2_status_t AXIS2_CALL 
+axis2_arch_reader_free (axis2_arch_reader_t *arch_reader, 
+                            axis2_env_t **env);
+
+
+
+                                
+/************************** End of function prototypes ************************/
+
+axis2_arch_reader_t * AXIS2_CALL 
+axis2_arch_reader_create_with_input_stream_and_dep_engine (axis2_env_t **env)
+{
+    axis2_arch_reader_impl_t *arch_reader_impl = NULL;
+    
+	AXIS2_ENV_CHECK(env, NULL);
+	
+	arch_reader_impl = (axis2_arch_reader_impl_t *) AXIS2_MALLOC((*env)->
+        allocator, sizeof(axis2_arch_reader_impl_t));
+	
+	
+	if(NULL == arch_reader_impl)
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); 
+        return NULL;
+    }
+    
+    arch_reader_impl->arch_reader.ops = NULL;
+    
+	arch_reader_impl->arch_reader.ops = 
+		AXIS2_MALLOC ((*env)->allocator, sizeof(axis2_arch_reader_ops_t));
+	if(NULL == arch_reader_impl->arch_reader.ops)
+    {
+        axis2_arch_reader_free(&(arch_reader_impl->arch_reader), env);
+		AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    
+	arch_reader_impl->arch_reader.ops->free =  axis2_arch_reader_free;
+	
+	return &(arch_reader_impl->arch_reader);
+}
+
+/***************************Function implementation****************************/
+
+axis2_status_t AXIS2_CALL 
+axis2_arch_reader_free (axis2_arch_reader_t *arch_reader, 
+                            axis2_env_t **env)
+{
+    axis2_arch_reader_impl_t *feature_impl = NULL;
+    
+    AXIS2_FUNC_PARAM_CHECK(arch_reader, env, AXIS2_FAILURE);
+    
+    feature_impl = AXIS2_INTF_TO_IMPL(arch_reader);
+    
+	if(NULL != arch_reader->ops)
+        AXIS2_FREE((*env)->allocator, arch_reader->ops);
+    
+    AXIS2_FREE((*env)->allocator, feature_impl);
+    feature_impl = NULL;
+    
+	return AXIS2_SUCCESS;
+}

Added: webservices/axis2/trunk/c/modules/core/deployment/src/ws_info.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/src/ws_info.c?rev=358712&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/src/ws_info.c (added)
+++ webservices/axis2/trunk/c/modules/core/deployment/src/ws_info.c Thu Dec 22 21:20:34 2005
@@ -0,0 +1,96 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+#include <axis2_ws_info.h>
+#include <string.h>
+
+/** 
+ * @brief
+ */
+typedef struct axis2_ws_info_impl
+{
+	axis2_ws_info_t ws_info;
+    
+    	
+} axis2_ws_info_impl_t;
+
+#define AXIS2_INTF_TO_IMPL(ws_info) \
+    ((axis2_ws_info_impl_t *) ws_info)
+
+/************************* Function prototypes ********************************/
+
+axis2_status_t AXIS2_CALL 
+axis2_ws_info_free (axis2_ws_info_t *ws_info, 
+                            axis2_env_t **env);
+
+
+
+                                
+/************************** End of function prototypes ************************/
+
+axis2_ws_info_t * AXIS2_CALL 
+axis2_ws_info_create (axis2_env_t **env)
+{
+    axis2_ws_info_impl_t *ws_info_impl = NULL;
+    
+	AXIS2_ENV_CHECK(env, NULL);
+	
+	ws_info_impl = (axis2_ws_info_impl_t *) AXIS2_MALLOC((*env)->
+        allocator, sizeof(axis2_ws_info_impl_t));
+	
+	
+	if(NULL == ws_info_impl)
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); 
+        return NULL;
+    }
+    
+    ws_info_impl->ws_info.ops = NULL;
+    
+	ws_info_impl->ws_info.ops = 
+		AXIS2_MALLOC ((*env)->allocator, sizeof(axis2_ws_info_ops_t));
+	if(NULL == ws_info_impl->ws_info.ops)
+    {
+        axis2_ws_info_free(&(ws_info_impl->ws_info), env);
+		AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    
+	ws_info_impl->ws_info.ops->free =  axis2_ws_info_free;
+	
+	return &(ws_info_impl->ws_info);
+}
+
+/***************************Function implementation****************************/
+
+axis2_status_t AXIS2_CALL 
+axis2_ws_info_free (axis2_ws_info_t *ws_info, 
+                            axis2_env_t **env)
+{
+    axis2_ws_info_impl_t *feature_impl = NULL;
+    
+    AXIS2_FUNC_PARAM_CHECK(ws_info, env, AXIS2_FAILURE);
+    
+    feature_impl = AXIS2_INTF_TO_IMPL(ws_info);
+    
+	if(NULL != ws_info->ops)
+        AXIS2_FREE((*env)->allocator, ws_info->ops);
+    
+    AXIS2_FREE((*env)->allocator, feature_impl);
+    feature_impl = NULL;
+    
+	return AXIS2_SUCCESS;
+}

Added: webservices/axis2/trunk/c/modules/core/deployment/src/ws_info_list.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/src/ws_info_list.c?rev=358712&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/src/ws_info_list.c (added)
+++ webservices/axis2/trunk/c/modules/core/deployment/src/ws_info_list.c Thu Dec 22 21:20:34 2005
@@ -0,0 +1,98 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+#include <axis2_ws_info_list.h>
+#include <string.h>
+#include <axis2_class_loader.h>
+
+/** 
+ * @brief
+ * To do the common tasks for all Builder
+ */ 
+typedef struct axis2_ws_info_list_impl
+{
+	axis2_ws_info_list_t ws_info_list;
+    
+    	
+} axis2_ws_info_list_impl_t;
+
+#define AXIS2_INTF_TO_IMPL(ws_info_list) \
+    ((axis2_ws_info_list_impl_t *) ws_info_list)
+
+/************************* Function prototypes ********************************/
+
+axis2_status_t AXIS2_CALL 
+axis2_ws_info_list_free (axis2_ws_info_list_t *ws_info_list, 
+                            axis2_env_t **env);
+
+
+
+                                
+/************************** End of function prototypes ************************/
+
+axis2_ws_info_list_t * AXIS2_CALL 
+axis2_ws_info_list_create (axis2_env_t **env)
+{
+    axis2_ws_info_list_impl_t *ws_info_list_impl = NULL;
+    
+	AXIS2_ENV_CHECK(env, NULL);
+	
+	ws_info_list_impl = (axis2_ws_info_list_impl_t *) AXIS2_MALLOC((*env)->
+        allocator, sizeof(axis2_ws_info_list_impl_t));
+	
+	
+	if(NULL == ws_info_list_impl)
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); 
+        return NULL;
+    }
+    
+    ws_info_list_impl->ws_info_list.ops = NULL;
+    
+	ws_info_list_impl->ws_info_list.ops = 
+		AXIS2_MALLOC ((*env)->allocator, sizeof(axis2_ws_info_list_ops_t));
+	if(NULL == ws_info_list_impl->ws_info_list.ops)
+    {
+        axis2_ws_info_list_free(&(ws_info_list_impl->ws_info_list), env);
+		AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    
+	ws_info_list_impl->ws_info_list.ops->free =  axis2_ws_info_list_free;
+	
+	return &(ws_info_list_impl->ws_info_list);
+}
+
+/***************************Function implementation****************************/
+
+axis2_status_t AXIS2_CALL 
+axis2_ws_info_list_free (axis2_ws_info_list_t *ws_info_list, 
+                            axis2_env_t **env)
+{
+    axis2_ws_info_list_impl_t *feature_impl = NULL;
+    
+    AXIS2_FUNC_PARAM_CHECK(ws_info_list, env, AXIS2_FAILURE);
+    
+    feature_impl = AXIS2_INTF_TO_IMPL(ws_info_list);
+    
+	if(NULL != ws_info_list->ops)
+        AXIS2_FREE((*env)->allocator, ws_info_list->ops);
+    
+    AXIS2_FREE((*env)->allocator, feature_impl);
+    feature_impl = NULL;
+    
+	return AXIS2_SUCCESS;
+}