#include <sys/types.h>
#include <Python.h>
#include <ekg/scripts.h>
Idź do kodu źródłowego tego pliku.
#define PYTHON_HANDLE_FOOTER |
( |
| ) |
|
Wartość:Py_XDECREF(__py_r); \
Py_DECREF(pArgs);\
\
}
#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) {\
}
char * python_geterror(script_t *s)
Definition: python.c:358
#define NULL
Definition: oralog.c:49
static DBusError err
Definition: dbus.c:38
void print(foo *f)
Definition: testcase_for_remove_iter.c:109
#define xfree
Definition: testcase_for_remove_iter.c:34
static PyObject* doPy_RETURN_FALSE |
( |
| ) |
|
|
inlinestatic |
static PyObject* doPy_RETURN_NONE |
( |
| ) |
|
|
inlinestatic |
static PyObject* doPy_RETURN_TRUE |
( |
| ) |
|
|
inlinestatic |
int python_exec |
( |
const char * |
command | ) |
|
script_t* python_find_script |
( |
PyObject * |
module | ) |
|
PyObject* python_get_func |
( |
PyObject * |
module, |
|
|
const char * |
name |
|
) |
| |
int python_initialize |
( |
| ) |
|
int python_plugin_init |
( |
| ) |
|
int python_run |
( |
const char * |
filename | ) |
|
python_run()
run python script from file
- filename - path to file to run