|
RAVE
|
Python version of the FileObject API. More...
Go to the source code of this file.
Classes | |
| struct | PyFileObject |
| A pia. More... | |
Macros | |
| #define | PyFileObject_Type_NUM 0 |
| index of type | |
| #define | PyFileObject_GetNative_NUM 1 |
| index of GetNative | |
| #define | PyFileObject_GetNative_RETURN FileObject_t* |
| return type for GetNative | |
| #define | PyFileObject_GetNative_PROTO (PyFileObject*) |
| arguments for GetNative | |
| #define | PyFileObject_New_NUM 2 |
| index of New | |
| #define | PyFileObject_New_RETURN PyFileObject* |
| return type for New | |
| #define | PyFileObject_New_PROTO (FileObject_t*) |
| arguments for New | |
| #define | PyFileObject_API_pointers 3 |
| number of API pointers | |
| #define | PyFileObject_CAPSULE_NAME "_fileobject._C_API" |
| #define | PyFileObject_GetNative (*(PyFileObject_GetNative_RETURN (*)PyFileObject_GetNative_PROTO) PyFileObject_API[PyFileObject_GetNative_NUM]) |
| Returns a pointer to the internal file object, remember to release the reference when done with the object. | |
| #define | PyFileObject_New (*(PyFileObject_New_RETURN (*)PyFileObject_New_PROTO) PyFileObject_API[PyFileObject_New_NUM]) |
| Creates a new file object instance. | |
| #define | PyFileObject_Check(op) |
| Checks if the object is a python gra instance. | |
| #define | PyFileObject_Type (*(PyTypeObject*)PyFileObject_API[PyFileObject_Type_NUM]) |
| #define | import_fileobject() |
| Imports the PyFileObject module (like import _pia in python). | |
Python version of the FileObject API.
| #define import_fileobject | ( | ) |
Imports the PyFileObject module (like import _pia in python).
| #define PyFileObject_API_pointers 3 |
number of API pointers
| #define PyFileObject_Check | ( | op | ) |
Checks if the object is a python gra instance.
| #define PyFileObject_GetNative (*(PyFileObject_GetNative_RETURN (*)PyFileObject_GetNative_PROTO) PyFileObject_API[PyFileObject_GetNative_NUM]) |
Returns a pointer to the internal file object, remember to release the reference when done with the object.
(RAVE_OBJECT_RELEASE).
| #define PyFileObject_GetNative_NUM 1 |
index of GetNative
| #define PyFileObject_GetNative_PROTO (PyFileObject*) |
arguments for GetNative
| #define PyFileObject_GetNative_RETURN FileObject_t* |
return type for GetNative
| #define PyFileObject_New (*(PyFileObject_New_RETURN (*)PyFileObject_New_PROTO) PyFileObject_API[PyFileObject_New_NUM]) |
Creates a new file object instance.
Release this object with Py_DECREF. If a FileObject_t instance is provided and this instance already is bound to a python instance, this instance will be increfed and returned.
| [in] | pia | - the FileObject_t intance. |
| #define PyFileObject_New_NUM 2 |
index of New
| #define PyFileObject_New_PROTO (FileObject_t*) |
arguments for New
| #define PyFileObject_New_RETURN PyFileObject* |
return type for New
| #define PyFileObject_Type_NUM 0 |
index of type