diff options
author | jbj <devnull@localhost> | 2004-10-24 19:36:30 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2004-10-24 19:36:30 +0000 |
commit | 3691d13f0427ecee102acfc2a658c6c2a89227fb (patch) | |
tree | c243ec4e55c8bbe1d17552b90e2681583ede5939 /lib/rpmgi.h | |
parent | 883580417100b31808d0ef8d69bcfdd510e85d0a (diff) | |
download | rpm-3691d13f0427ecee102acfc2a658c6c2a89227fb.tar.gz rpm-3691d13f0427ecee102acfc2a658c6c2a89227fb.tar.bz2 rpm-3691d13f0427ecee102acfc2a658c6c2a89227fb.zip |
Explicit rpmgiFlags enum defined, add RPMGI_{NOGLOB,NOMANIFEST,NOHEADER}.
Abstract arg iteration into rpmcliArgIter().
Add undocumented --rpmgidebug.
CVS patchset: 7504
CVS date: 2004/10/24 19:36:30
Diffstat (limited to 'lib/rpmgi.h')
-rw-r--r-- | lib/rpmgi.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/rpmgi.h b/lib/rpmgi.h index ac883dbd0..c1ebcb118 100644 --- a/lib/rpmgi.h +++ b/lib/rpmgi.h @@ -17,6 +17,16 @@ extern int _rpmgi_debug; /*@=exportlocal@*/ +/** + */ +typedef enum rpmgiFlags_e { + RPMGI_TSADD = (1 << 0), + RPMGI_TSORDER = (1 << 1), + RPMGI_NOGLOB = (1 << 2), + RPMGI_NOMANIFEST = (1 << 3), + RPMGI_NOHEADER = (1 << 4) +} rpmgiFlags; + #if defined(_RPMGI_INTERNAL) /** \ingroup rpmio */ @@ -27,7 +37,7 @@ struct rpmgi_s { const void * keyp; /*!< Iterator key. */ size_t keylen; /*!< Iterator key length. */ - int flags; /*!< Iterator control bits. */ + rpmgiFlags flags; /*!< Iterator control bits. */ int active; /*!< Iterator is active? */ int i; /*!< Element index. */ /*@null@*/ @@ -157,11 +167,12 @@ rpmts rpmgiTs(/*@null@*/ rpmgi gi) /** * Load iterator args. * @param gi generalized iterator + * @param argv arg list * @param ftsOpts fts(3) flags * @param flags iterator flags - * @returns RPMRC_OK + * @returns RPMRC_OK on success */ -rpmRC rpmgiSetArgs(rpmgi gi, ARGV_t, int ftsOpts, int flags) +rpmRC rpmgiSetArgs(rpmgi gi, ARGV_t argv, int ftsOpts, rpmgiFlags flags) /*@modifies gi @*/; #ifdef __cplusplus |