rpm
5.4.14
|
Go to the source code of this file.
Macros | |
#define | rpmpythonUnlink(_python) ((rpmpython)rpmioUnlinkPoolItem((rpmioItem)(_python), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmpythonLink(_python) ((rpmpython)rpmioLinkPoolItem((rpmioItem)(_python), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmpythonFree(_python) ((rpmpython)rpmioFreePoolItem((rpmioItem)(_python), __FUNCTION__, __FILE__, __LINE__)) |
Typedefs | |
typedef struct rpmpython_s * | rpmpython |
Functions | |
rpmpython | rpmpythonUnlink (rpmpython python) |
Unreference a python interpreter instance. More... | |
rpmpython | rpmpythonLink (rpmpython python) |
Reference a python interpreter instance. More... | |
rpmpython | rpmpythonFree (rpmpython python) |
Destroy a python interpreter. More... | |
rpmpython | rpmpythonNew (char **av, uint32_t flags) |
Create and load a python interpreter. More... | |
rpmRC | rpmpythonRunFile (rpmpython python, const char *fn, const char **resultp) |
Execute python from a file. More... | |
rpmRC | rpmpythonRun (rpmpython python, const char *str, const char **resultp) |
Execute python string. More... | |
Variables | |
int | _rpmpython_debug |
rpmpython | _rpmpythonI |
#define rpmpythonFree | ( | _python | ) | ((rpmpython)rpmioFreePoolItem((rpmioItem)(_python), __FUNCTION__, __FILE__, __LINE__)) |
Definition at line 65 of file rpmpython.h.
#define rpmpythonLink | ( | _python | ) | ((rpmpython)rpmioLinkPoolItem((rpmioItem)(_python), __FUNCTION__, __FILE__, __LINE__)) |
Definition at line 53 of file rpmpython.h.
#define rpmpythonUnlink | ( | _python | ) | ((rpmpython)rpmioUnlinkPoolItem((rpmioItem)(_python), __FUNCTION__, __FILE__, __LINE__)) |
Definition at line 42 of file rpmpython.h.
typedef struct rpmpython_s* rpmpython |
Definition at line 11 of file rpmpython.h.
Destroy a python interpreter.
python | python interpreter |
Referenced by rpmioClean(), and while().
Reference a python interpreter instance.
python | python interpreter |
Referenced by rpmpythonNew().
rpmpython rpmpythonNew | ( | char ** | av, |
uint32_t | flags | ||
) |
Create and load a python interpreter.
fn | python interpreter args (or NULL) |
flags | python interpreter flags ((1<<31): use global interpreter) |
Definition at line 71 of file rpmpython.c.
References _free(), _rpmpython_debug, _rpmpythonI, ac, argvCount(), av, fprintf(), NULL, rpmExpand(), rpmpythonGetPool(), rpmpythonI(), rpmpythonLink(), rpmpythonRun(), s, and void.
Referenced by rpmpythonI(), and while().
Execute python string.
python | python interpreter (NULL uses global interpreter) |
str | python string to execute (NULL returns RPMRC_FAIL) |
*resultp | python exec result |
Definition at line 158 of file rpmpython.c.
References _free(), _rpmpython_debug, cf, fprintf(), m, NULL, o, Py_XDECREF(), rc, rpmpythonI(), rpmpythonSlurp(), RPMRC_FAIL, RPMRC_OK, and val.
Referenced by rpmpythonNew(), and while().
Execute python from a file.
python | python interpreter (NULL uses global interpreter) |
fn | python file to run (NULL returns RPMRC_FAIL) |
*resultp | python exec result |
Definition at line 109 of file rpmpython.c.
References _rpmpython_debug, cf, fprintf(), NULL, rc, rpmpythonI(), RPMRC_FAIL, RPMRC_OK, and strcmp().
Unreference a python interpreter instance.
python | python interpreter |
int _rpmpython_debug |
Definition at line 19 of file rpmpython.c.
Referenced by rpmpythonGetPool(), rpmpythonNew(), rpmpythonRun(), and rpmpythonRunFile().
rpmpython _rpmpythonI |
Definition at line 22 of file rpmpython.c.
Referenced by rpmioClean(), rpmpythonI(), and rpmpythonNew().