w2c_qname2name_maker.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017   
00018 #ifndef W2C_QNAME2NAME_MAKER_H
00019 #define W2C_QNAME2NAME_MAKER_H
00020 
00026 #include <axis2_utils.h>
00027 #include <axis2_qname.h>
00028 
00029 #ifdef __cplusplus
00030 extern "C"
00031 {
00032 #endif
00033 
00040 typedef struct w2c_qname2name_maker w2c_qname2name_maker_t;
00041 typedef struct w2c_qname2name_maker_ops w2c_qname2name_maker_ops_t;
00042 
00043 AXIS2_DECLARE_DATA  struct w2c_qname2name_maker_ops
00044 {
00052     axis2_status_t (AXIS2_CALL *
00053     free)(w2c_qname2name_maker_t *qname2name_maker,
00054          const axis2_env_t *env);
00055 
00063     axis2_char_t* (AXIS2_CALL *
00064     suggest_name)(w2c_qname2name_maker_t *qname2name_maker,
00065          const axis2_env_t *env,
00066          axis2_qname_t *qname);
00067 
00068 
00069 };
00070 
00071 AXIS2_DECLARE_DATA  struct w2c_qname2name_maker
00072 {
00073      struct w2c_qname2name_maker_ops *ops;
00074 };
00075 
00084 AXIS2_EXTERN w2c_qname2name_maker_t* AXIS2_CALL
00085 w2c_qname2name_maker_create( const axis2_env_t *env);
00086 
00087 /*************************** Function macros **********************************/
00088 
00089 #define W2C_QNAME2NAME_MAKER_FREE(qname2name_maker, env) \
00090       ((qname2name_maker)->ops->free(qname2name_maker, env)) 
00091 
00092 #define W2C_QNAME2NAME_MAKER_SUGGEST_NAME(qname2name_maker, env, qname) \
00093       ((qname2name_maker)->ops->suggest_name(qname2name_maker, env, qname)) 
00094 
00097 #ifdef __cplusplus
00098 }
00099 #endif
00100 
00101 #endif /* W2C_QNAME2NAME_MAKER_H */

Generated on Wed Dec 20 20:34:50 2006 for Axis2/C by  doxygen 1.5.1