1#ifndef WREPORT_PYTHON_H
2#define WREPORT_PYTHON_H
4#define WREPORT_3_21_COMPAT
6#ifdef WREPORT_3_21_COMPAT
8#include <wreport/var.h>
10#define PY_SSIZE_T_CLEAN
21extern PyTypeObject* wrpy_Var_Type;
26#include <wreport/fwd.h>
34typedef _object PyObject;
36typedef _typeobject PyTypeObject;
A physical variable.
Definition: var.h:25
Holds a variable information table.
Definition: vartable.h:30
const _Varinfo * Varinfo
Varinfo reference.
Definition: fwd.h:11
Information about a variable.
Definition: varinfo.h:139
wreport.Var python object
Definition: python.h:15
C++ functions exported by the wreport python bindings, to be used by other C++ bindings.
Definition: python.h:52
PyTypeObject * vartable_type
Vartable type.
Definition: python.h:97
unsigned version_minor
C API minor version (updated on backwards-compatible changes)
Definition: python.h:91
PyTypeObject * var_type
Var type.
Definition: python.h:100
int(* var_value_from_python)(PyObject *o, wreport::Var &)
Set the value of a variable from a Python object (borrowed reference)
Definition: python.h:79
unsigned version_major
C API major version (updated on incompatible changes)
Definition: python.h:88
PyTypeObject * varinfo_type
Varinfo type.
Definition: python.h:94