1 #ifndef DBALLE_PYTHON_H 2 #define DBALLE_PYTHON_H 4 #include <dballe/fwd.h> 12 typedef _object PyObject;
14 typedef _typeobject PyTypeObject;
44 PyObject* (*message_create_new)(dballe::MessageType);
47 PyObject* (*message_create)(std::shared_ptr<dballe::Message>);
57 PyObject* (*var_create_d)(
const wreport::Varinfo&, double);
60 PyObject* (*var_create_c)(
const wreport::Varinfo&,
const char*);
63 PyObject* (*var_create_s)(
const wreport::Varinfo&,
const std::string&);
72 int (*var_value_from_python)(PyObject* o,
wreport::Var&);
75 PyObject* (*varinfo_create)(wreport::Varinfo);
81 PyTypeObject* vartable_type;
84 PyTypeObject* var_type;
95 PyObject* (*var_create_v)(
const wreport::Varinfo&,
const wreport::Var&);
PyTypeObject * message_type
dballe.Message type
Definition: python.h:41
unsigned version_major
C API major version (updated on incompatible changes)
Definition: python.h:35
unsigned version_minor
C API minor version (updated on backwards-compatible changes)
Definition: python.h:38
C++ functions exported by the wreport python bindings, to be used by other C++ bindings.
Definition: python.h:30