43#ifndef PYTHON_TARGET_H
44#define PYTHON_TARGET_H
46#define PY_SSIZE_T_CLEAN
49#include <structmember.h>
57#define PATH_MAX MAX_PATH
63#error "MODULE_NAME is undefined"
66#define CONCAT(x, y) x##y
67#define GEN_NAME(x, y) CONCAT(x, y)
68#define STRINGIFY(X) #X
69#define TOSTRING(x) STRINGIFY(x)
88PyObject*
py_schedule(PyObject* self, PyObject* args);
123PyObject*
py_main(PyObject* self, PyObject* args);
209PyObject*
custom_deserialize(PyObject* serialized_pyobject, PyObject* custom_serializer);
220PyMODINIT_FUNC
GEN_NAME(PyInit_, MODULE_NAME)(void);
PyObject * convert_C_action_to_py(void *action)
Definition pythontarget.c:512
PyObject * py_request_stop(PyObject *self, PyObject *args)
Definition pythontarget.c:158
#define GEN_NAME(x, y)
Definition pythontarget.h:67
PyObject * py_source_directory(PyObject *self, PyObject *args)
Return the source directory path (where the main .lf file is) as a string.
Definition pythontarget.c:165
PyObject * globalPythonModuleDict
Definition pythontarget.c:55
PyObject * get_python_function(string module, string class, int instance_id, string func)
Definition pythontarget.c:574
environment_t * top_level_environment
Definition pythontarget.c:60
PyObject * global_pickler
Definition pythontarget.c:58
PyObject * py_schedule_copy(PyObject *self, PyObject *args)
Definition pythontarget.c:120
PyObject * load_serializer(string package_name)
Definition pythontarget.c:711
PyObject * convert_C_port_to_py(void *port, int width)
Definition pythontarget.c:446
PyObject * globalPythonModule
Definition pythontarget.c:51
PyObject * custom_deserialize(PyObject *serialized_pyobject, PyObject *custom_serializer)
Definition pythontarget.c:751
PyObject * py_main(PyObject *self, PyObject *args)
Definition pythontarget.c:279
PyObject * py_schedule(PyObject *self, PyObject *args)
Definition pythontarget.c:77
PyObject * custom_serialize(PyObject *obj, PyObject *custom_serializer)
Definition pythontarget.c:736
PyObject * py_package_directory(PyObject *self, PyObject *args)
Return the root project directory path as a string.
Definition pythontarget.c:175
Execution environment. This struct contains information about the execution environment....
Definition environment.h:49