axutil_generic_obj.h

00001 
00002 /*
00003  * Licensed to the Apache Software Foundation (ASF) under one or more
00004  * contributor license agreements.  See the NOTICE file distributed with
00005  * this work for additional information regarding copyright ownership.
00006  * The ASF licenses this file to You under the Apache License, Version 2.0
00007  * (the "License"); you may not use this file except in compliance with
00008  * the License.  You may obtain a copy of the License at
00009  *
00010  *      http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  */
00018 
00019 #ifndef AXUTIL_GENERIC_OBJ_H
00020 #define AXUTIL_GENERIC_OBJ_H
00021 
00022 #include <axutil_utils_defines.h>
00023 #include <axutil_error.h>
00024 #include <axutil_env.h>
00025 #include <axutil_utils.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C"
00029 {
00030 #endif
00031 
00032     typedef struct axutil_generic_obj axutil_generic_obj_t;
00033 
00044     AXIS2_EXTERN axutil_generic_obj_t *AXIS2_CALL
00045     axutil_generic_obj_create(
00046         const axutil_env_t * env);
00047 
00048     AXIS2_EXTERN void AXIS2_CALL
00049     axutil_generic_obj_free(
00050         axutil_generic_obj_t * generic_obj,
00051         const axutil_env_t * env);
00052 
00053     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00054     axutil_generic_obj_set_free_func(
00055         axutil_generic_obj_t * generic_obj,
00056         const axutil_env_t * env,
00057         AXIS2_FREE_VOID_ARG free_func);
00058 
00059     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00060     axutil_generic_obj_set_value(
00061         axutil_generic_obj_t * generic_obj,
00062         const axutil_env_t * env,
00063         void *value);
00064 
00065     AXIS2_EXTERN void *AXIS2_CALL
00066     axutil_generic_obj_get_value(
00067         axutil_generic_obj_t * generic_obj,
00068         const axutil_env_t * env);
00069 
00070     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00071     axutil_generic_obj_set_type(
00072         axutil_generic_obj_t * generic_obj,
00073         const axutil_env_t * env,
00074         int type);
00075 
00076     AXIS2_EXTERN int AXIS2_CALL
00077     axutil_generic_obj_get_type(
00078         axutil_generic_obj_t * generic_obj,
00079         const axutil_env_t * env);
00080 
00081 #ifdef __cplusplus
00082 }
00083 #endif
00084 
00085 #endif                          /* AXIS2_GENERIC_OBJ_H */

Generated on Fri Apr 17 11:49:42 2009 for Axis2/C by  doxygen 1.5.3