reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
definitions.h
Go to the documentation of this file.
1
11#ifndef PYTHON_MODAL_MODELS_DEFS_H
12#define PYTHON_MODAL_MODELS_DEFS_H
13
14#ifdef MODAL_REACTORS
15#include <Python.h>
16#include <structmember.h>
17#include "tag.h"
18#include "../include/api/schedule.h"
19
27typedef struct {
28 PyObject_HEAD PyObject* mode;
29 PyObject* lf_self;
30 lf_mode_change_type_t change_type;
31} mode_capsule_struct_t;
32
36static PyObject* py_mode_set(PyObject* self, PyObject* args);
37
41PyObject* convert_C_mode_to_py(reactor_mode_t* mode, self_base_t* lf_self, lf_mode_change_type_t change_type);
42
47void initialize_mode_capsule_t(PyObject* current_module);
48
49#else
50#define initialize_mode_capsule_t(...)
51#endif // MODAL_REACTORS
52
53#endif // PYTHON_MODAL_MODELS_DEFS_H
#define initialize_mode_capsule_t(...)
Definition definitions.h:50
PyObject * convert_C_mode_to_py(reactor_mode_t *mode, self_base_t *lf_self, lf_mode_change_type_t change_type)
Definition impl.c:110
void reactor_mode_t
Definition modes.h:142
The base type for all reactor self structs.
Definition lf_types.h:276
Time and tag definitions and functions for Lingua Franca.