|
rpm 5.3.7
|


Go to the source code of this file.
Defines | |
| #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. | |
| rpmpython | rpmpythonLink (rpmpython python) |
| Reference a python interpreter instance. | |
| rpmpython | rpmpythonFree (rpmpython python) |
| Destroy a python interpreter. | |
| rpmpython | rpmpythonNew (char **av, uint32_t flags) |
| Create and load a python interpreter. | |
| rpmRC | rpmpythonRunFile (rpmpython python, const char *fn, const char **resultp) |
| Execute python from a file. | |
| rpmRC | rpmpythonRun (rpmpython python, const char *str, const char **resultp) |
| Execute python string. | |
Variables | |
| int | _rpmpython_debug |
| rpmpython | _rpmpythonI |
Definition in file rpmpython.h.
| #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 expandMacro(), and rpmioClean().
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 _rpmpython_debug, _rpmpythonI, argvCount(), rpmpythonGetPool(), rpmpythonI(), rpmpythonLink(), and rpmpythonRun().
Referenced by expandMacro(), and rpmpythonI().
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 153 of file rpmpython.c.
References _free(), _rpmpython_debug, rpmpythonI(), rpmpythonSlurp(), RPMRC_FAIL, and RPMRC_OK.
Referenced by expandMacro(), and rpmpythonNew().
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 103 of file rpmpython.c.
References _rpmpython_debug, rpmpythonI(), RPMRC_FAIL, and RPMRC_OK.
Unreference a python interpreter instance.
| python | python interpreter |
| int _rpmpython_debug |
Definition at line 18 of file rpmpython.c.
Referenced by rpmpythonGetPool(), rpmpythonNew(), rpmpythonRun(), and rpmpythonRunFile().
Definition at line 21 of file rpmpython.c.
Referenced by rpmioClean(), rpmpythonI(), and rpmpythonNew().
1.7.3