00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef included_ccaffeine_CCAException_MODULE
00037 #define included_ccaffeine_CCAException_MODULE
00038
00039 #include <Python.h>
00040 #include "sidlType.h"
00041 #ifdef HAVE_PTHREAD
00042 #include <pthread.h>
00043 #endif
00044
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif
00048
00049 struct sidl__array;
00050
00051
00052 struct ccaffeine_CCAException__object;
00053 struct ccaffeine_CCAException__array;
00054 struct sidl_BaseInterface__object;
00055
00056 #define ccaffeine_CCAException__wrap_NUM 0
00057 #define ccaffeine_CCAException__wrap_RETURN PyObject *
00058 #define ccaffeine_CCAException__wrap_PROTO (const struct ccaffeine_CCAException__object *sidlobj)
00059
00060 #define ccaffeine_CCAException__convert_NUM 1
00061 #define ccaffeine_CCAException__convert_RETURN int
00062 #define ccaffeine_CCAException__convert_PROTO (PyObject *obj, struct ccaffeine_CCAException__object **sidlobj)
00063
00064 #define ccaffeine_CCAException__convert_python_array_NUM 2
00065 #define ccaffeine_CCAException__convert_python_array_RETURN int
00066 #define ccaffeine_CCAException__convert_python_array_PROTO (PyObject *obj, struct ccaffeine_CCAException__array **sidlarray)
00067
00068 #define ccaffeine_CCAException__convert_sidl_array_NUM 3
00069 #define ccaffeine_CCAException__convert_sidl_array_RETURN PyObject *
00070 #define ccaffeine_CCAException__convert_sidl_array_PROTO (struct sidl__array *sidlarray)
00071
00072 #define ccaffeine_CCAException__weakRef_NUM 4
00073 #define ccaffeine_CCAException__weakRef_RETURN PyObject *
00074 #define ccaffeine_CCAException__weakRef_PROTO (struct ccaffeine_CCAException__object *sidlobj)
00075
00076 #define ccaffeine_CCAException_deref_NUM 5
00077 #define ccaffeine_CCAException_deref_RETURN void
00078 #define ccaffeine_CCAException_deref_PROTO (struct ccaffeine_CCAException__object *sidlobj)
00079
00080 #define ccaffeine_CCAException__newRef_NUM 6
00081 #define ccaffeine_CCAException__newRef_RETURN PyObject *
00082 #define ccaffeine_CCAException__newRef_PROTO (struct ccaffeine_CCAException__object *sidlobj)
00083
00084 #define ccaffeine_CCAException__addRef_NUM 7
00085 #define ccaffeine_CCAException__addRef_RETURN void
00086 #define ccaffeine_CCAException__addRef_PROTO (struct ccaffeine_CCAException__object *sidlobj)
00087
00088 #define ccaffeine_CCAException_PyType_NUM 8
00089 #define ccaffeine_CCAException_PyType_RETURN PyTypeObject *
00090 #define ccaffeine_CCAException_PyType_PROTO (void)
00091
00092 #define ccaffeine_CCAException__connectI_NUM 9
00093 #define ccaffeine_CCAException__connectI_RETURN struct ccaffeine_CCAException__object*
00094 #define ccaffeine_CCAException__connectI_PROTO (const char* url, sidl_bool ar, struct sidl_BaseInterface__object ** _ex)
00095
00096 #define ccaffeine_CCAException__type_NUM 10
00097
00098 #define ccaffeine_CCAException__API_NUM 11
00099
00100 #ifdef ccaffeine_CCAException_INTERNAL
00101
00102 #define ccaffeine_CCAException__import() ;
00103
00104
00105
00106
00107
00108
00109 static ccaffeine_CCAException__wrap_RETURN
00110 ccaffeine_CCAException__wrap
00111 ccaffeine_CCAException__wrap_PROTO;
00112
00113 static ccaffeine_CCAException__convert_RETURN
00114 ccaffeine_CCAException__convert
00115 ccaffeine_CCAException__convert_PROTO;
00116
00117 static ccaffeine_CCAException__convert_python_array_RETURN
00118 ccaffeine_CCAException__convert_python_array
00119 ccaffeine_CCAException__convert_python_array_PROTO;
00120
00121 static ccaffeine_CCAException__convert_sidl_array_RETURN
00122 ccaffeine_CCAException__convert_sidl_array
00123 ccaffeine_CCAException__convert_sidl_array_PROTO;
00124
00125 static ccaffeine_CCAException__weakRef_RETURN
00126 ccaffeine_CCAException__weakRef
00127 ccaffeine_CCAException__weakRef_PROTO;
00128
00129 static ccaffeine_CCAException_deref_RETURN
00130 ccaffeine_CCAException_deref
00131 ccaffeine_CCAException_deref_PROTO;
00132
00133 static ccaffeine_CCAException__newRef_RETURN
00134 ccaffeine_CCAException__newRef
00135 ccaffeine_CCAException__newRef_PROTO;
00136
00137 static ccaffeine_CCAException__addRef_RETURN
00138 ccaffeine_CCAException__addRef
00139 ccaffeine_CCAException__addRef_PROTO;
00140
00141 static ccaffeine_CCAException_PyType_RETURN
00142 ccaffeine_CCAException_PyType
00143 ccaffeine_CCAException_PyType_PROTO;
00144
00145 static PyObject *
00146 ccaffeine_CCAException__type;
00147
00148 #else
00149
00150 static void **ccaffeine_CCAException__API = NULL;
00151
00152 #define ccaffeine_CCAException__wrap \
00153 (*((ccaffeine_CCAException__wrap_RETURN (*) \
00154 ccaffeine_CCAException__wrap_PROTO) \
00155 (ccaffeine_CCAException__API \
00156 [ccaffeine_CCAException__wrap_NUM])))
00157
00158 #define ccaffeine_CCAException__convert \
00159 (*((ccaffeine_CCAException__convert_RETURN (*) \
00160 ccaffeine_CCAException__convert_PROTO) \
00161 (ccaffeine_CCAException__API \
00162 [ccaffeine_CCAException__convert_NUM])))
00163
00164 #define ccaffeine_CCAException__convert_python_array \
00165 (*((ccaffeine_CCAException__convert_python_array_RETURN (*) \
00166 ccaffeine_CCAException__convert_python_array_PROTO) \
00167 (ccaffeine_CCAException__API \
00168 [ccaffeine_CCAException__convert_python_array_NUM])))
00169
00170 #define ccaffeine_CCAException__convert_sidl_array \
00171 (*((ccaffeine_CCAException__convert_sidl_array_RETURN (*) \
00172 ccaffeine_CCAException__convert_sidl_array_PROTO) \
00173 (ccaffeine_CCAException__API \
00174 [ccaffeine_CCAException__convert_sidl_array_NUM])))
00175
00176 #define ccaffeine_CCAException__weakRef \
00177 (*((ccaffeine_CCAException__weakRef_RETURN (*) \
00178 ccaffeine_CCAException__weakRef_PROTO) \
00179 (ccaffeine_CCAException__API \
00180 [ccaffeine_CCAException__weakRef_NUM])))
00181
00182 #define ccaffeine_CCAException_deref \
00183 (*((ccaffeine_CCAException_deref_RETURN (*) \
00184 ccaffeine_CCAException_deref_PROTO) \
00185 (ccaffeine_CCAException__API \
00186 [ccaffeine_CCAException_deref_NUM])))
00187
00188 #define ccaffeine_CCAException__newRef \
00189 (*((ccaffeine_CCAException__newRef_RETURN (*) \
00190 ccaffeine_CCAException__newRef_PROTO) \
00191 (ccaffeine_CCAException__API \
00192 [ccaffeine_CCAException__newRef_NUM])))
00193
00194 #define ccaffeine_CCAException__addRef \
00195 (*((ccaffeine_CCAException__addRef_RETURN (*) \
00196 ccaffeine_CCAException__addRef_PROTO) \
00197 (ccaffeine_CCAException__API \
00198 [ccaffeine_CCAException__addRef_NUM])))
00199
00200 #define ccaffeine_CCAException_PyType \
00201 (*((ccaffeine_CCAException_PyType_RETURN (*) \
00202 ccaffeine_CCAException_PyType_PROTO) \
00203 (ccaffeine_CCAException__API \
00204 [ccaffeine_CCAException_PyType_NUM])))
00205
00206 #define ccaffeine_CCAException__connectI \
00207 (*((ccaffeine_CCAException__connectI_RETURN (*) \
00208 ccaffeine_CCAException__connectI_PROTO) \
00209 (ccaffeine_CCAException__API \
00210 [ccaffeine_CCAException__connectI_NUM])))
00211
00212 #define ccaffeine_CCAException__type \
00213 ((PyObject *)(ccaffeine_CCAException__API[ccaffeine_CCAException__type_NUM]))
00214
00215 #ifdef HAVE_PTHREAD
00216 #define ccaffeine_CCAException__import() \
00217 { \
00218 pthread_mutex_t __sidl_pyapi_mutex = PTHREAD_MUTEX_INITIALIZER; \
00219 pthread_mutex_lock(&__sidl_pyapi_mutex); \
00220 if (!ccaffeine_CCAException__API) { \
00221 PyObject *module = PyImport_ImportModule("ccaffeine.CCAException"); \
00222 if (module != NULL) { \
00223 PyObject *module_dict = PyModule_GetDict(module); \
00224 PyObject *c_api_object = \
00225 PyDict_GetItemString(module_dict, "_C_API"); \
00226 if (c_api_object && PyCObject_Check(c_api_object)) { \
00227 ccaffeine_CCAException__API = \
00228 (void **)PyCObject_AsVoidPtr(c_api_object); \
00229 } \
00230 else { fprintf(stderr, "babel: ccaffeine_CCAException__import failed to lookup _C_API (%p %p %s).\n", c_api_object, c_api_object ? c_api_object->ob_type : NULL, c_api_object ? c_api_object->ob_type->tp_name : ""); }\
00231 Py_DECREF(module); \
00232 } else { fprintf(stderr, "babel: ccaffeine_CCAException__import failed to import its module.\n"); \
00233 if (PyErr_Occurred()) { PyErr_Print(); PyErr_Clear();}\
00234 }\
00235 }\
00236 pthread_mutex_unlock(&__sidl_pyapi_mutex); \
00237 pthread_mutex_destroy(&__sidl_pyapi_mutex); \
00238 }
00239 #else
00240 #define ccaffeine_CCAException__import() \
00241 if (!ccaffeine_CCAException__API) { \
00242 PyObject *module = PyImport_ImportModule("ccaffeine.CCAException"); \
00243 if (module != NULL) { \
00244 PyObject *module_dict = PyModule_GetDict(module); \
00245 PyObject *c_api_object = \
00246 PyDict_GetItemString(module_dict, "_C_API"); \
00247 if (c_api_object && PyCObject_Check(c_api_object)) { \
00248 ccaffeine_CCAException__API = \
00249 (void **)PyCObject_AsVoidPtr(c_api_object); \
00250 } \
00251 else { fprintf(stderr, "babel: ccaffeine_CCAException__import failed to lookup _C_API (%p %p %s).\n", c_api_object, c_api_object ? c_api_object->ob_type : NULL, c_api_object ? c_api_object->ob_type->tp_name : ""); }\
00252 Py_DECREF(module); \
00253 } else { fprintf(stderr, "babel: ccaffeine_CCAException__import failed to import its module.\n"); \
00254 if (PyErr_Occurred()) { PyErr_Print(); PyErr_Clear();}\
00255 }\
00256 }
00257 #endif
00258
00259 #endif
00260
00261 #ifdef __cplusplus
00262 }
00263 #endif
00264
00265 #endif