rpmio/rpmlua.h File Reference

Go to the source code of this file.

Typedefs

typedef enum rpmluavType_e rpmluavType
typedef rpmlua_s * rpmlua
typedef rpmluav_s * rpmluav

Enumerations

enum  rpmluavType_e { RPMLUAV_NIL = 0, RPMLUAV_STRING = 1, RPMLUAV_NUMBER = 2 }

Functions

rpmlua rpmluaNew (void)
void * rpmluaFree (rpmlua lua)
int rpmluaCheckScript (rpmlua lua, const char *script, const char *name)
int rpmluaRunScript (rpmlua lua, const char *script, const char *name)
int rpmluaRunScriptFile (rpmlua lua, const char *filename)
void rpmluaInteractive (rpmlua lua)
void * rpmluaGetData (rpmlua lua, const char *key)
void rpmluaSetData (rpmlua lua, const char *key, const void *data)
const char * rpmluaGetPrintBuffer (rpmlua lua)
void rpmluaSetPrintBuffer (rpmlua lua, int flag)
void rpmluaGetVar (rpmlua lua, rpmluav var)
void rpmluaSetVar (rpmlua lua, rpmluav var)
void rpmluaDelVar (rpmlua lua, const char *key,...)
int rpmluaVarExists (rpmlua lua, const char *key,...)
void rpmluaPushTable (rpmlua lua, const char *key,...)
void rpmluaPop (rpmlua lua)
rpmluav rpmluavNew (void)
void * rpmluavFree (rpmluav var)
void rpmluavSetListMode (rpmluav var, int flag)
void rpmluavSetKey (rpmluav var, rpmluavType type, const void *value)
void rpmluavSetValue (rpmluav var, rpmluavType type, const void *value)
void rpmluavGetKey (rpmluav var, rpmluavType *type, void **value)
void rpmluavGetValue (rpmluav var, rpmluavType *type, void **value)
void rpmluavSetKeyNum (rpmluav var, double value)
void rpmluavSetValueNum (rpmluav var, double value)
double rpmluavGetKeyNum (rpmluav var)
double rpmluavGetValueNum (rpmluav var)
int rpmluavKeyIsNum (rpmluav var)
int rpmluavValueIsNum (rpmluav var)


Typedef Documentation

typedef struct rpmlua_s* rpmlua

Definition at line 42 of file rpmlua.h.

typedef struct rpmluav_s* rpmluav

Definition at line 43 of file rpmlua.h.

typedef enum rpmluavType_e rpmluavType


Enumeration Type Documentation

enum rpmluavType_e

Enumerator:
RPMLUAV_NIL 
RPMLUAV_STRING 
RPMLUAV_NUMBER 

Definition at line 4 of file rpmlua.h.


Function Documentation

int rpmluaCheckScript ( rpmlua  lua,
const char *  script,
const char *  name 
)

Referenced by parseScript().

void rpmluaDelVar ( rpmlua  lua,
const char *  key,
  ... 
)

Referenced by runLuaScript().

void* rpmluaFree ( rpmlua  lua  ) 

void* rpmluaGetData ( rpmlua  lua,
const char *  key 
)

const char* rpmluaGetPrintBuffer ( rpmlua  lua  ) 

Referenced by expandMacro(), and rpmReadConfigFiles().

void rpmluaGetVar ( rpmlua  lua,
rpmluav  var 
)

void rpmluaInteractive ( rpmlua  lua  ) 

rpmlua rpmluaNew ( void   ) 

void rpmluaPop ( rpmlua  lua  ) 

Referenced by runLuaScript().

void rpmluaPushTable ( rpmlua  lua,
const char *  key,
  ... 
)

Referenced by runLuaScript().

int rpmluaRunScript ( rpmlua  lua,
const char *  script,
const char *  name 
)

Referenced by expandMacro(), and runLuaScript().

int rpmluaRunScriptFile ( rpmlua  lua,
const char *  filename 
)

void rpmluaSetData ( rpmlua  lua,
const char *  key,
const void *  data 
)

void rpmluaSetPrintBuffer ( rpmlua  lua,
int  flag 
)

Referenced by expandMacro().

void rpmluaSetVar ( rpmlua  lua,
rpmluav  var 
)

Referenced by runLuaScript().

int rpmluaVarExists ( rpmlua  lua,
const char *  key,
  ... 
)

void* rpmluavFree ( rpmluav  var  ) 

Referenced by runLuaScript().

void rpmluavGetKey ( rpmluav  var,
rpmluavType type,
void **  value 
)

double rpmluavGetKeyNum ( rpmluav  var  ) 

void rpmluavGetValue ( rpmluav  var,
rpmluavType type,
void **  value 
)

double rpmluavGetValueNum ( rpmluav  var  ) 

int rpmluavKeyIsNum ( rpmluav  var  ) 

rpmluav rpmluavNew ( void   ) 

Referenced by runLuaScript().

void rpmluavSetKey ( rpmluav  var,
rpmluavType  type,
const void *  value 
)

void rpmluavSetKeyNum ( rpmluav  var,
double  value 
)

void rpmluavSetListMode ( rpmluav  var,
int  flag 
)

Referenced by runLuaScript().

void rpmluavSetValue ( rpmluav  var,
rpmluavType  type,
const void *  value 
)

Referenced by runLuaScript().

void rpmluavSetValueNum ( rpmluav  var,
double  value 
)

Referenced by runLuaScript().

int rpmluavValueIsNum ( rpmluav  var  ) 


Generated on Mon Mar 5 13:44:19 2007 for rpm by  doxygen 1.5.1