rpm  5.4.15
Macros | Typedefs | Functions | Variables
rpmficl.h File Reference
#include <rpmiotypes.h>
#include <rpmio.h>
Include dependency graph for rpmficl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define rpmficlUnlink(_ficl)   ((rpmficl)rpmioUnlinkPoolItem((rpmioItem)(_ficl), __FUNCTION__, __FILE__, __LINE__))
 
#define rpmficlLink(_ficl)   ((rpmficl)rpmioLinkPoolItem((rpmioItem)(_ficl), __FUNCTION__, __FILE__, __LINE__))
 
#define rpmficlFree(_ficl)   ((rpmficl)rpmioFreePoolItem((rpmioItem)(_ficl), __FUNCTION__, __FILE__, __LINE__))
 

Typedefs

typedef struct rpmficl_s * rpmficl
 

Functions

rpmficl rpmficlUnlink (rpmficl ficl)
 Unreference a ficl interpreter instance. More...
 
rpmficl rpmficlLink (rpmficl ficl)
 Reference a ficl interpreter instance. More...
 
rpmficl rpmficlFree (rpmficl ficl)
 Destroy a ficl interpreter. More...
 
rpmficl rpmficlNew (char **av, uint32_t flags)
 Create and load a ficl interpreter. More...
 
rpmRC rpmficlRunFile (rpmficl ficl, const char *fn, const char **resultp)
 Execute ficl from a file. More...
 
rpmRC rpmficlRun (rpmficl ficl, const char *str, const char **resultp)
 Execute ficl string. More...
 

Variables

int _rpmficl_debug
 
rpmficl _rpmficlI
 

Macro Definition Documentation

#define rpmficlFree (   _ficl)    ((rpmficl)rpmioFreePoolItem((rpmioItem)(_ficl), __FUNCTION__, __FILE__, __LINE__))

Definition at line 67 of file rpmficl.h.

#define rpmficlLink (   _ficl)    ((rpmficl)rpmioLinkPoolItem((rpmioItem)(_ficl), __FUNCTION__, __FILE__, __LINE__))

Definition at line 55 of file rpmficl.h.

#define rpmficlUnlink (   _ficl)    ((rpmficl)rpmioUnlinkPoolItem((rpmioItem)(_ficl), __FUNCTION__, __FILE__, __LINE__))

Definition at line 44 of file rpmficl.h.

Typedef Documentation

typedef struct rpmficl_s* rpmficl

Definition at line 11 of file rpmficl.h.

Function Documentation

rpmficl rpmficlFree ( rpmficl  ficl)

Destroy a ficl interpreter.

Parameters
ficlficl interpreter
Returns
NULL on last dereference

Referenced by expandMacro(), and rpmioClean().

rpmficl rpmficlLink ( rpmficl  ficl)

Reference a ficl interpreter instance.

Parameters
ficlficl interpreter
Returns
new ficl interpreter reference

Referenced by rpmficlNew().

rpmficl rpmficlNew ( char **  av,
uint32_t  flags 
)

Create and load a ficl interpreter.

Parameters
avficl interpreter args (or NULL)
flagsficl interpreter flags ((1<<31) == use global interpreter)
Returns
new ficl interpreter

Definition at line 74 of file rpmficl.c.

References _rpmficl_debug, argvCount(), b, rpmficlGetPool(), rpmficlI(), rpmficlLink(), rpmiobEmpty(), and rpmiobStr().

Referenced by expandMacro(), and rpmficlI().

rpmRC rpmficlRun ( rpmficl  ficl,
const char *  str,
const char **  resultp 
)

Execute ficl string.

Parameters
ficlficl interpreter (NULL uses global interpreter)
strficl string to execute (NULL returns RPMRC_FAIL)
*resultpficl exec result
Returns
RPMRC_OK on success

Definition at line 140 of file rpmficl.c.

References _rpmficl_debug, rpmficlI(), rpmiobStr(), RPMRC_FAIL, and RPMRC_OK.

Referenced by expandMacro().

rpmRC rpmficlRunFile ( rpmficl  ficl,
const char *  fn,
const char **  resultp 
)

Execute ficl from a file.

Parameters
ficlficl interpreter (NULL uses global interpreter)
fnficl file to run (NULL returns RPMRC_FAIL)
*resultpficl exec result
Returns
RPMRC_OK on success

Definition at line 123 of file rpmficl.c.

References _rpmficl_debug, rpmficlI(), RPMRC_FAIL, and RPMRC_OK.

rpmficl rpmficlUnlink ( rpmficl  ficl)

Unreference a ficl interpreter instance.

Parameters
ficlficl interpreter
Returns
NULL on last dereference

Variable Documentation

int _rpmficl_debug

Definition at line 14 of file rpmficl.c.

Referenced by rpmficlGetPool(), rpmficlNew(), rpmficlRun(), and rpmficlRunFile().

rpmficl _rpmficlI

Definition at line 17 of file rpmficl.c.

Referenced by rpmficlI(), and rpmioClean().