PyCafe3_api_Sep22.h

Go to the documentation of this file.
00001 /* Generated by Cython 0.23.4 */
00002 
00003 #ifndef __PYX_HAVE_API__PyCafe
00004 #define __PYX_HAVE_API__PyCafe
00005 #include "Python.h"
00006 
00007 static void (*__pyx_api_f_6PyCafe_py_cb_wrapper)(PVDataHolder, unsigned int, std::string) = 0;
00008 #define py_cb_wrapper __pyx_api_f_6PyCafe_py_cb_wrapper
00009 static void (*__pyx_api_f_6PyCafe_py_cb_ctrl_wrapper)(PVCtrlHolder, unsigned int, std::string) = 0;
00010 #define py_cb_ctrl_wrapper __pyx_api_f_6PyCafe_py_cb_ctrl_wrapper
00011 static void (*__pyx_api_f_6PyCafe_py_cb_handle_wrapper)(unsigned int) = 0;
00012 #define py_cb_handle_wrapper __pyx_api_f_6PyCafe_py_cb_handle_wrapper
00013 static void (*__pyx_api_f_6PyCafe_py_cb_handle_monid_wrapper)(unsigned int, unsigned long) = 0;
00014 #define py_cb_handle_monid_wrapper __pyx_api_f_6PyCafe_py_cb_handle_monid_wrapper
00015 static void (*__pyx_api_f_6PyCafe_py_cb_handle_get_wrapper)(unsigned int) = 0;
00016 #define py_cb_handle_get_wrapper __pyx_api_f_6PyCafe_py_cb_handle_get_wrapper
00017 static void (*__pyx_api_f_6PyCafe_py_cb_handle_put_wrapper)(unsigned int) = 0;
00018 #define py_cb_handle_put_wrapper __pyx_api_f_6PyCafe_py_cb_handle_put_wrapper
00019 #if !defined(__Pyx_PyIdentifier_FromString)
00020 #if PY_MAJOR_VERSION < 3
00021   #define __Pyx_PyIdentifier_FromString(s) PyString_FromString(s)
00022 #else
00023   #define __Pyx_PyIdentifier_FromString(s) PyUnicode_FromString(s)
00024 #endif
00025 #endif
00026 
00027 #ifndef __PYX_HAVE_RT_ImportModule
00028 #define __PYX_HAVE_RT_ImportModule
00029 static PyObject *__Pyx_ImportModule(const char *name) {
00030     PyObject *py_name = 0;
00031     PyObject *py_module = 0;
00032     py_name = __Pyx_PyIdentifier_FromString(name);
00033     if (!py_name)
00034         goto bad;
00035     py_module = PyImport_Import(py_name);
00036     Py_DECREF(py_name);
00037     return py_module;
00038 bad:
00039     Py_XDECREF(py_name);
00040     return 0;
00041 }
00042 #endif
00043 
00044 #ifndef __PYX_HAVE_RT_ImportFunction
00045 #define __PYX_HAVE_RT_ImportFunction
00046 static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
00047     PyObject *d = 0;
00048     PyObject *cobj = 0;
00049     union {
00050         void (*fp)(void);
00051         void *p;
00052     } tmp;
00053     d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
00054     if (!d)
00055         goto bad;
00056     cobj = PyDict_GetItemString(d, funcname);
00057     if (!cobj) {
00058         PyErr_Format(PyExc_ImportError,
00059             "%.200s does not export expected C function %.200s",
00060                 PyModule_GetName(module), funcname);
00061         goto bad;
00062     }
00063 #if PY_VERSION_HEX >= 0x02070000
00064     if (!PyCapsule_IsValid(cobj, sig)) {
00065         PyErr_Format(PyExc_TypeError,
00066             "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
00067              PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
00068         goto bad;
00069     }
00070     tmp.p = PyCapsule_GetPointer(cobj, sig);
00071 #else
00072     {const char *desc, *s1, *s2;
00073     desc = (const char *)PyCObject_GetDesc(cobj);
00074     if (!desc)
00075         goto bad;
00076     s1 = desc; s2 = sig;
00077     while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
00078     if (*s1 != *s2) {
00079         PyErr_Format(PyExc_TypeError,
00080             "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
00081              PyModule_GetName(module), funcname, sig, desc);
00082         goto bad;
00083     }
00084     tmp.p = PyCObject_AsVoidPtr(cobj);}
00085 #endif
00086     *f = tmp.fp;
00087     if (!(*f))
00088         goto bad;
00089     Py_DECREF(d);
00090     return 0;
00091 bad:
00092     Py_XDECREF(d);
00093     return -1;
00094 }
00095 #endif
00096 
00097 
00098 static int import_PyCafe(void) {
00099   PyObject *module = 0;
00100   module = __Pyx_ImportModule("PyCafe");
00101   if (!module) goto bad;
00102   if (__Pyx_ImportFunction(module, "py_cb_wrapper", (void (**)(void))&__pyx_api_f_6PyCafe_py_cb_wrapper, "void (PVDataHolder, unsigned int, std::string)") < 0) goto bad;
00103   if (__Pyx_ImportFunction(module, "py_cb_ctrl_wrapper", (void (**)(void))&__pyx_api_f_6PyCafe_py_cb_ctrl_wrapper, "void (PVCtrlHolder, unsigned int, std::string)") < 0) goto bad;
00104   if (__Pyx_ImportFunction(module, "py_cb_handle_wrapper", (void (**)(void))&__pyx_api_f_6PyCafe_py_cb_handle_wrapper, "void (unsigned int)") < 0) goto bad;
00105   if (__Pyx_ImportFunction(module, "py_cb_handle_monid_wrapper", (void (**)(void))&__pyx_api_f_6PyCafe_py_cb_handle_monid_wrapper, "void (unsigned int, unsigned long)") < 0) goto bad;
00106   if (__Pyx_ImportFunction(module, "py_cb_handle_get_wrapper", (void (**)(void))&__pyx_api_f_6PyCafe_py_cb_handle_get_wrapper, "void (unsigned int)") < 0) goto bad;
00107   if (__Pyx_ImportFunction(module, "py_cb_handle_put_wrapper", (void (**)(void))&__pyx_api_f_6PyCafe_py_cb_handle_put_wrapper, "void (unsigned int)") < 0) goto bad;
00108   Py_DECREF(module); module = 0;
00109   return 0;
00110   bad:
00111   Py_XDECREF(module);
00112   return -1;
00113 }
00114 
00115 #endif /* !__PYX_HAVE_API__PyCafe */

Generated on 3 May 2017 for CAFE by  doxygen 1.6.1