#include <sys/types.h>
#include <Python.h>
#include <ekg/scripts.h>
Idź do kodu źródłowego tego pliku.
◆ Py_RETURN_FALSE
◆ Py_RETURN_NONE
◆ Py_RETURN_TRUE
◆ PYTHON_HANDLE_FOOTER
#define PYTHON_HANDLE_FOOTER |
( |
| ) |
|
Wartość:Py_XDECREF(__py_r); \
Py_DECREF(pArgs);\
\
}
◆ PYTHON_HANDLE_HEADER
#define PYTHON_HANDLE_HEADER |
( |
|
event, |
|
|
|
arg |
|
) |
| |
Wartość:{ \
PyObject *__py_r; \
PyObject *pArgs = arg;\
python_handle_result = -1;\
\
\
if (__py_r && PyInt_Check(__py_r)) { \
python_handle_result = PyInt_AsLong(__py_r); \
} else if (!__py_r) {\
print("script_error", err);\
xfree(err);\
}
char * python_geterror(script_t *s)
Definition: python.c:358
#define NULL
Definition: oralog.c:49
static DBusError err
Definition: dbus.c:38
◆ python_module
◆ doPy_RETURN_FALSE()
static PyObject* doPy_RETURN_FALSE |
( |
| ) |
|
|
inlinestatic |
◆ doPy_RETURN_NONE()
static PyObject* doPy_RETURN_NONE |
( |
| ) |
|
|
inlinestatic |
◆ doPy_RETURN_TRUE()
static PyObject* doPy_RETURN_TRUE |
( |
| ) |
|
|
inlinestatic |
◆ python_autorun()
◆ python_exec()
int python_exec |
( |
const char * |
command | ) |
|
◆ python_finalize()
◆ python_find_script()
script_t* python_find_script |
( |
PyObject * |
module | ) |
|
◆ python_get_func()
PyObject* python_get_func |
( |
PyObject * |
module, |
|
|
const char * |
name |
|
) |
| |
◆ python_geterror()
◆ python_initialize()
int python_initialize |
( |
| ) |
|
◆ python_load()
◆ python_plugin_init()
int python_plugin_init |
( |
| ) |
|
◆ python_run()
int python_run |
( |
const char * |
filename | ) |
|
python_run()
run python script from file
- filename - path to file to run
◆ python_unload()
◆ python_lang