#include <sys/types.h>
#include <Python.h>
#include <ekg/scripts.h>
Idź do kodu źródłowego tego pliku.
Dokumentacja definicji
#define Py_RETURN_FALSE return doPy_RETURN_FALSE() |
#define Py_RETURN_NONE return doPy_RETURN_NONE() |
#define Py_RETURN_TRUE return doPy_RETURN_TRUE() |
#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;\
\
__py_r = PyObject_Call(event, pArgs, NULL);\
\
if (__py_r && PyInt_Check(__py_r)) { \
python_handle_result = PyInt_AsLong(__py_r); \
} else if (!__py_r) {\
char *err = python_geterror(scr);\
print("script_error", err);\
xfree(err);\
}
#define python_module |
( |
|
s |
) |
((PyObject *) script_private_get(s)) |
Dokumentacja funkcji
static PyObject* doPy_RETURN_FALSE |
( |
|
) |
[inline, static] |
static PyObject* doPy_RETURN_NONE |
( |
|
) |
[inline, static] |
static PyObject* doPy_RETURN_TRUE |
( |
|
) |
[inline, static] |
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
Dokumentacja zmiennych