26#ifndef PYVERTICALPROFILE_H
27#define PYVERTICALPROFILE_H
39#define PyVerticalProfile_Type_NUM 0
41#define PyVerticalProfile_GetNative_NUM 1
42#define PyVerticalProfile_GetNative_RETURN VerticalProfile_t*
43#define PyVerticalProfile_GetNative_PROTO (PyVerticalProfile*)
45#define PyVerticalProfile_New_NUM 2
46#define PyVerticalProfile_New_RETURN PyVerticalProfile*
47#define PyVerticalProfile_New_PROTO (VerticalProfile_t*)
49#define PyVerticalProfile_API_pointers 3
51#define PyVerticalProfile_CAPSULE_NAME "_verticalprofile._C_API"
53#ifdef PYVERTICALPROFILE_MODULE
55extern PyTypeObject PyVerticalProfile_Type;
58#define PyVerticalProfile_Check(op) ((op)->ob_type == &PyVerticalProfile_Type)
68static void **PyVerticalProfile_API;
74#define PyVerticalProfile_GetNative \
75 (*(PyVerticalProfile_GetNative_RETURN (*)PyVerticalProfile_GetNative_PROTO) PyVerticalProfile_API[PyVerticalProfile_GetNative_NUM])
84#define PyVerticalProfile_New \
85 (*(PyVerticalProfile_New_RETURN (*)PyVerticalProfile_New_PROTO) PyVerticalProfile_API[PyVerticalProfile_New_NUM])
90#define PyVerticalProfile_Check(op) \
91 (Py_TYPE(op) == &PyVerticalProfile_Type)
93#define PyVerticalProfile_Type (*(PyTypeObject*)PyVerticalProfile_API[PyVerticalProfile_Type_NUM])
98#define import_pyverticalprofile() \
99 PyVerticalProfile_API = (void **)PyCapsule_Import(PyVerticalProfile_CAPSULE_NAME, 1);
#define PyVerticalProfile_GetNative_PROTO
arguments for GetNative
Definition pyverticalprofile.h:43
#define PyVerticalProfile_GetNative
Returns a pointer to the internal vertical profile, remember to release the reference when done with ...
Definition pyverticalprofile.h:74
#define PyVerticalProfile_GetNative_RETURN
return type for GetNative
Definition pyverticalprofile.h:42
#define PyVerticalProfile_New
Creates a new vertical profile instance.
Definition pyverticalprofile.h:84
#define PyVerticalProfile_New_PROTO
arguments for New
Definition pyverticalprofile.h:47
#define PyVerticalProfile_New_RETURN
return type for New
Definition pyverticalprofile.h:46
A generic vertical profile.
Definition pyverticalprofile.h:34
PyObject_HEAD VerticalProfile_t * vp
the vertical profile type
Definition pyverticalprofile.h:36
Represents one vertical profile.
Definition vertical_profile.c:46
Defines the functions available when working with vertical profiles.