25#ifndef PYDETECTIONRANGE_H
26#define PYDETECTIONRANGE_H
37#define PyDetectionRange_Type_NUM 0
39#define PyDetectionRange_GetNative_NUM 1
40#define PyDetectionRange_GetNative_RETURN DetectionRange_t*
41#define PyDetectionRange_GetNative_PROTO (PyDetectionRange*)
43#define PyDetectionRange_New_NUM 2
44#define PyDetectionRange_New_RETURN PyDetectionRange*
45#define PyDetectionRange_New_PROTO (DetectionRange_t*)
47#define PyDetectionRange_API_pointers 3
49#define PyDetectionRange_CAPSULE_NAME "_detectionrange._C_API"
51#ifdef PYDETECTIONRANGE_MODULE
53extern PyTypeObject PyDetectionRange_Type;
56#define PyDetectionRange_Check(op) ((op)->ob_type == &PyDetectionRange_Type)
66static void **PyDetectionRange_API;
72#define PyDetectionRange_GetNative \
73 (*(PyDetectionRange_GetNative_RETURN (*)PyDetectionRange_GetNative_PROTO) PyDetectionRange_API[PyDetectionRange_GetNative_NUM])
82#define PyDetectionRange_New \
83 (*(PyDetectionRange_New_RETURN (*)PyDetectionRange_New_PROTO) PyDetectionRange_API[PyDetectionRange_New_NUM])
88#define PyDetectionRange_Check(op) \
89 (Py_TYPE(op) == &PyDetectionRange_Type)
91#define PyDetectionRange_Type (*(PyTypeObject*)PyDetectionRange_API[PyDetectionRange_Type_NUM])
96#define import_detectionrange() \
97 PyArea_API = (void **)PyCapsule_Import(PyDetectionRange_CAPSULE_NAME, 1);
100#define PyDetectionRange_Check(op) \
101 ((op)->ob_type == (PyTypeObject *)PyDetectionRange_API[PyDetectionRange_Type_NUM])
Provides functionality for creating composites.
#define PyDetectionRange_GetNative_RETURN
return type for GetNative
Definition pydetectionrange.h:40
#define PyDetectionRange_New_PROTO
arguments for New
Definition pydetectionrange.h:45
#define PyDetectionRange_New_RETURN
return type for New
Definition pydetectionrange.h:44
#define PyDetectionRange_GetNative
Returns a pointer to the internal detection range, remember to release the reference when done with t...
Definition pydetectionrange.h:72
#define PyDetectionRange_New
Creates a new detection range instance.
Definition pydetectionrange.h:82
#define PyDetectionRange_GetNative_PROTO
arguments for GetNative
Definition pydetectionrange.h:41
A detection range generator.
Definition pydetectionrange.h:32
PyObject_HEAD DetectionRange_t * dr
the detection range generator
Definition pydetectionrange.h:34
Represents the detection range generator.
Definition detection_range.c:47