rpm 5.3.7
|
Go to the source code of this file.
Defines | |
#define | rpmrubyUnlink(_ruby) ((rpmruby)rpmioUnlinkPoolItem((rpmioItem)(_ruby), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmrubyLink(_ruby) ((rpmruby)rpmioLinkPoolItem((rpmioItem)(_ruby), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmrubyFree(_ruby) ((rpmruby)rpmioFreePoolItem((rpmioItem)(_ruby), __FUNCTION__, __FILE__, __LINE__)) |
Typedefs | |
typedef struct rpmruby_s * | rpmruby |
Functions | |
rpmruby | rpmrubyUnlink (rpmruby ruby) |
Unreference a ruby interpreter instance. | |
rpmruby | rpmrubyLink (rpmruby ruby) |
Reference a ruby interpreter instance. | |
rpmruby | rpmrubyFree (rpmruby ruby) |
Destroy a ruby interpreter. | |
rpmruby | rpmrubyNew (char **av, uint32_t flags) |
Create and load a ruby interpreter. | |
rpmRC | rpmrubyRunFile (rpmruby ruby, const char *fn, const char **resultp) |
Execute ruby from a file. | |
rpmRC | rpmrubyRun (rpmruby ruby, const char *str, const char **resultp) |
Execute ruby string. | |
int | rpmrubyRunThread (rpmruby ruby) |
Variables | |
int | _rpmruby_debug |
rpmruby | _rpmrubyI |
Definition in file rpmruby.h.
Destroy a ruby interpreter.
ruby | ruby interpreter |
Referenced by expandMacro(), rpmcliFini(), and rpmioClean().
Reference a ruby interpreter instance.
ruby | ruby interpreter |
Referenced by rpmrubyNew().
rpmruby rpmrubyNew | ( | char ** | av, |
uint32_t | flags | ||
) |
Create and load a ruby interpreter.
av | ruby interpreter args (or NULL) |
flags | ruby interpreter flags ((1<<31): use global interpreter) |
Definition at line 252 of file rpmruby.c.
References _rpmruby_debug, _rpmrubyI, argvAppend(), argvCount(), rpmrubyGetPool(), rpmrubyI(), rpmrubyLink(), and rpmrubyRun().
Referenced by expandMacro(), and rpmrubyI().
Execute ruby string.
ruby | ruby interpreter (NULL uses global interpreter) |
str | ruby string to execute (NULL returns RPMRC_FAIL) |
*resultp | ruby exec result |
Definition at line 353 of file rpmruby.c.
References RPMRC_FAIL, RPMRC_OK, and rpmrubyI().
Referenced by expandMacro(), and rpmrubyNew().
Execute ruby from a file.
ruby | ruby interpreter (NULL uses global interpreter) |
fn | ruby file to run (NULL returns RPMRC_FAIL) |
*resultp | ruby exec result |
Definition at line 325 of file rpmruby.c.
References RPMRC_FAIL, RPMRC_OK, and rpmrubyI().
Unreference a ruby interpreter instance.
ruby | ruby interpreter |
int _rpmruby_debug |
Definition at line 35 of file rpmruby.c.
Referenced by rpmrubyGetPool(), and rpmrubyNew().
Definition at line 38 of file rpmruby.c.
Referenced by rpmcliFini(), rpmioClean(), rpmrubyFini(), rpmrubyI(), and rpmrubyNew().