libdballe 9.6
Public Attributes | List of all members
dbapy_c_api Struct Reference

C++ functions exported by the wreport python bindings, to be used by other C++ bindings. More...

#include <python.h>

Public Attributes

unsigned version_major
 C API major version (updated on incompatible changes)
 
unsigned version_minor
 C API minor version (updated on backwards-compatible changes)
 
PyTypeObject * message_type
 dballe.Message type
 
PyObject *(* message_create_new )(dballe::MessageType)
 Create a dballe.Message with a new empty message of the given type.
 
PyObject *(* message_create )(std::shared_ptr< dballe::Message >)
 Create a dballe.Message referencing the given message.
 

Detailed Description

C++ functions exported by the wreport python bindings, to be used by other C++ bindings.

To use them, retrieve a pointer to the struct via the Capsule system:

dbapy_c_api* dbapy = (dbapy_c_api*)PyCapsule_Import("_dballe._C_API", 0);
C++ functions exported by the wreport python bindings, to be used by other C++ bindings.
Definition: python.h:30

The documentation for this struct was generated from the following file: