11 #include <rpm/rpmutil.h>
12 #include <rpm/rpmfileutil.h>
36 #define RMIL_DEFAULT -15
37 #define RMIL_MACROFILES -13
38 #define RMIL_RPMRC -11
40 #define RMIL_CMDLINE -7
41 #define RMIL_TARBALL -5
43 #define RMIL_OLDSPEC -1
77 void addMacro (rpmMacroContext mc,
const char * n,
79 const char * b,
int level);
86 void delMacro (rpmMacroContext mc,
const char * n);
117 void rpmInitMacros (rpmMacroContext mc,
const char * macrofiles);
void rpmLoadMacros(rpmMacroContext mc, int level)
Load macros from specific context into global context.
struct rpmMacroContext_s * rpmMacroContext
#define RPM_GNUC_NULL_TERMINATED
void addMacro(rpmMacroContext mc, const char *n, const char *o, const char *b, int level)
Add macro to context.
int rpmDefineMacro(rpmMacroContext mc, const char *macro, int level)
Define macro in context.
void rpmInitMacros(rpmMacroContext mc, const char *macrofiles)
Initialize macro context from set of macrofile(s).
char * rpmExpand(const char *arg,...) RPM_GNUC_NULL_TERMINATED
Return (malloc'ed) concatenated macro expansion(s).
rpmMacroContext rpmGlobalMacroContext
int rpmExpandNumeric(const char *arg)
Return macro expansion as a numeric value.
rpmMacroContext rpmCLIMacroContext
int expandMacros(void *spec, rpmMacroContext mc, char *sbuf, size_t slen)
Expand macro into buffer.
void delMacro(rpmMacroContext mc, const char *n)
Delete macro from context.
void rpmDumpMacroTable(rpmMacroContext mc, FILE *fp)
Print macros to file stream.
int rpmLoadMacroFile(rpmMacroContext mc, const char *fn)
Load macro context from a macro file.
const char * macrofiles
List of macro files to read when configuring rpm.
void rpmFreeMacros(rpmMacroContext mc)
Destroy macro context.
const char * rpmConfigDir(void)
Return rpm configuration base directory.
struct rpmMacroEntry_s * rpmMacroEntry