diff options
author | jbj <devnull@localhost> | 2002-12-03 02:57:02 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-12-03 02:57:02 +0000 |
commit | c96202ddef5c4ffcc3da81e1915b84e8f2a6102c (patch) | |
tree | ffc44f2ea544b5d33667ca29b848b9b55fdae6a9 /build/rpmfc.h | |
parent | c84e1589b098a29804a3c75c58c576aea305c06b (diff) | |
download | rpm-c96202ddef5c4ffcc3da81e1915b84e8f2a6102c.tar.gz rpm-c96202ddef5c4ffcc3da81e1915b84e8f2a6102c.tar.bz2 rpm-c96202ddef5c4ffcc3da81e1915b84e8f2a6102c.zip |
- internal automagic dependency generation (disabled for now).
CVS patchset: 5913
CVS date: 2002/12/03 02:57:02
Diffstat (limited to 'build/rpmfc.h')
-rw-r--r-- | build/rpmfc.h | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/build/rpmfc.h b/build/rpmfc.h index 9bdc6285e..144d19a1e 100644 --- a/build/rpmfc.h +++ b/build/rpmfc.h @@ -8,8 +8,12 @@ extern int _rpmfc_debug; /*@=exportlocal@*/ +/** + */ typedef struct rpmfc_s * rpmfc; +/** + */ struct rpmfc_s { int nfiles; /*!< no. of files */ int fknown; /*!< no. of classified files */ @@ -34,6 +38,8 @@ struct rpmfc_s { }; +/** + */ enum FCOLOR_e { RPMFC_BLACK = 0, RPMFC_ELF32 = (1 << 0), @@ -70,6 +76,8 @@ enum FCOLOR_e { }; typedef enum FCOLOR_e FCOLOR_t; +/** + */ struct rpmfcTokens_s { /*@observer@*/ const char * token; @@ -98,34 +106,55 @@ int rpmfcColoring(const char * fmstr) /*@=exportlocal@*/ /** + * @param fc file classifier */ void rpmfcPrint(const char * msg, rpmfc fc, FILE * fp) /*@globals fileSystem @*/ /*@modifies *fp, fileSystem @*/; /** + * Destroy a file classifier. + * @param fc file classifier + * @return NULL always */ /*@null@*/ rpmfc rpmfcFree(/*@only@*/ /*@null@*/ rpmfc fc) /*@modifies fc @*/; /** + * Create a file classifier. + * @return new file classifier */ rpmfc rpmfcNew(void) /*@*/; /** * Build file class dictionary and mappings. + * @param fc file classifier + * @return 0 on success */ int rpmfcClassify(rpmfc fc, ARGV_t argv) /*@globals global_fmagic, fileSystem, internalState @*/ /*@modifies fc, global_fmagic, fileSystem, internalState @*/; /** - * BUild file/package dependency dictionary and mappings. + * Build file/package dependency dictionary and mappings. + * @param fc file classifier + * @return 0 on success */ int rpmfcApply(rpmfc fc) /*@modifies fc @*/; +/** + * Generate package dependencies. + * @param spec spec file control + * @param pkg package control + * @return 0 on success + */ +int rpmfcGenerateDepends(const Spec spec, Package pkg) + /*@globals rpmGlobalMacroContext, fileSystem, internalState @*/ + /*@modifies pkg->cpioList, pkg->header, + rpmGlobalMacroContext, fileSystem, internalState @*/; + #ifdef __cplusplus } #endif |