25#ifndef PYRAVEIOCACHE_H
26#define PYRAVEIOCACHE_H
37#define PyRaveIOCache_Type_NUM 0
39#define PyRaveIOCache_GetNative_NUM 1
40#define PyRaveIOCache_GetNative_RETURN RaveIOCache_t*
41#define PyRaveIOCache_GetNative_PROTO (PyRaveIOCache*)
43#define PyRaveIOCache_New_NUM 2
44#define PyRaveIOCache_New_RETURN PyRaveIOCache*
45#define PyRaveIOCache_New_PROTO (RaveIOCache_t*)
47#define PyRaveIOCache_API_pointers 3
49#define PyRaveIOCache_CAPSULE_NAME "_iocache._C_API"
51#ifdef PYRAVEIOCACHE_MODULE
53extern PyTypeObject PyRaveIOCache_Type;
56#define PyRaveIOCache_Check(op) ((op)->ob_type == &PyRaveIOCache_Type)
66static void **PyRaveIOCache_API;
72#define PyRaveIOCache_GetNative \
73 (*(PyRaveIOCache_GetNative_RETURN (*)PyRaveIOCache_GetNative_PROTO) PyRaveIOCache_API[PyRaveIOCache_GetNative_NUM])
82#define PyRaveIOCache_New \
83 (*(PyRaveIOCache_New_RETURN (*)PyRaveIOCache_New_PROTO) PyRaveIOCache_API[PyRaveIOCache_New_NUM])
88#define PyRaveIOCache_Check(op) \
89 (Py_TYPE(op) == &PyRaveIOCache_Type)
91#define PyRaveIOCache_Type (*(PyTypeObject*)PyRaveIOCache_API[PyRaveIOCache_Type_NUM])
96#define import_iocache() \
97 PyRaveIOCache_API = (void **)PyCapsule_Import(PyRaveIOCache_CAPSULE_NAME, 1);
#define PyRaveIOCache_GetNative_PROTO
argument prototype for GetNative
Definition pyiocache.h:41
#define PyRaveIOCache_GetNative_RETURN
return type for GetNative
Definition pyiocache.h:40
#define PyRaveIOCache_New
Creates a new rave io cache instance.
Definition pyiocache.h:82
#define PyRaveIOCache_GetNative
Returns a pointer to the internal rave io, remember to release the reference when done with the objec...
Definition pyiocache.h:72
#define PyRaveIOCache_New_RETURN
return type for New
Definition pyiocache.h:44
#define PyRaveIOCache_New_PROTO
argument prototype for New
Definition pyiocache.h:45
Functions for managing io cache files like static files.
The RaveIOCache.
Definition pyiocache.h:32
PyObject_HEAD RaveIOCache_t * iocache
the iocache instance
Definition pyiocache.h:34
Defines the structure for the RaveIOCache.
Definition rave_iocache.c:48