9 #include <rpm/rpmtypes.h>
32 void argvPrint(
const char * msg, ARGV_const_t argv, FILE * fp);
67 ARGint_t
argiData(ARGI_const_t argi);
89 int argvCmp(
const void * a,
const void * b);
97 int argvSort(ARGV_t argv,
int (*compar)(
const void *,
const void *));
106 ARGV_t
argvSearch(ARGV_const_t argv,
const char *val,
107 int (*compar)(
const void *,
const void *));
116 int argiAdd(ARGI_t * argip,
int ix,
int val);
124 int argvAdd(ARGV_t * argvp,
const char *val);
140 int argvAppend(ARGV_t * argvp, ARGV_const_t av);
156 ARGV_t
argvSplitString(
const char * str,
const char * seps, argvFlags flags);
165 int argvSplit(ARGV_t * argvp,
const char * str,
const char * seps);
173 char *
argvJoin(ARGV_const_t argv,
const char *sep);
ARGI_t argiFree(ARGI_t argi)
Destroy an argi array.
int argvSort(ARGV_t argv, int(*compar)(const void *, const void *))
Sort an argv array.
int argvCount(ARGV_const_t argv)
Return no.
struct ARGI_s const *const ARGI_const_t
ARGV_t argvFree(ARGV_t argv)
Destroy an argv array.
int argvAdd(ARGV_t *argvp, const char *val)
Add a string to an argv array.
int argvCmp(const void *a, const void *b)
Compare argv arrays (qsort/bsearch).
ARGV_t argvNew(void)
Create an empty argv array.
int argvAddNum(ARGV_t *argvp, int val)
Add a number to an argv array (converting to a string).
ARGV_t argvSplitString(const char *str, const char *seps, argvFlags flags)
Split a string into an argv array.
ARGint_t argiData(ARGI_const_t argi)
Return data from argi array.
char *const * ARGV_const_t
int argiCount(ARGI_const_t argi)
Return no.
int argiAdd(ARGI_t *argip, int ix, int val)
Add an int to an argi array.
ARGV_t argvData(ARGV_t argv)
Return data from argv array.
ARGV_t argvSearch(ARGV_const_t argv, const char *val, int(*compar)(const void *, const void *))
Find an element in an argv array.
int argvAppend(ARGV_t *argvp, ARGV_const_t av)
Append one argv array to another.
void argvPrint(const char *msg, ARGV_const_t argv, FILE *fp)
Print argv array elements.
int argvSplit(ARGV_t *argvp, const char *str, const char *seps)
Split a string into an argv array.
char * argvJoin(ARGV_const_t argv, const char *sep)
Join an argv array into a string.