diff options
author | jbj <devnull@localhost> | 2001-10-28 22:17:47 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-10-28 22:17:47 +0000 |
commit | 966fabbc441b5d859ecda64fe926be3912603fe5 (patch) | |
tree | a8cc37298737e3d0af890e13d3e0a33e2f4014f3 /lib/psm.h | |
parent | c1d367a0941b3778a84252691bbd294a0a8be4b7 (diff) | |
download | rpm-966fabbc441b5d859ecda64fe926be3912603fe5.tar.gz rpm-966fabbc441b5d859ecda64fe926be3912603fe5.tar.bz2 rpm-966fabbc441b5d859ecda64fe926be3912603fe5.zip |
- memory indices for dependency check are typedef'd and abstract'd.
- no-brainer refcounts for fi object, debug the mess.
- dump the header early in transaction, recreate fi before installing.
CVS patchset: 5137
CVS date: 2001/10/28 22:17:47
Diffstat (limited to 'lib/psm.h')
-rw-r--r-- | lib/psm.h | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -9,6 +9,11 @@ #include "fsm.h" #include "depends.h" +/*@unchecked@*/ +/*@-exportlocal@*/ +extern int _fi_debug; +/*@=exportlocal@*/ + /** */ struct sharedFileInfo { @@ -75,8 +80,11 @@ struct transactionFileInfo_s { #define TFIMAGIC 0x09697923 /*@owned@*/ FSM_t fsm; /*!< File state machine data. */ + int scareMem; /*!< Keep header? */ +/*@refs@*/ int nrefs; /*!< Reference count. */ + /* these are for TR_ADDED packages */ -/*@dependent@*/ struct availablePackage * ap; +/*@dependent@*/ availablePackage ap; /*@owned@*/ struct sharedFileInfo * replaced; /*@owned@*/ uint_32 * replacedSizes; @@ -135,7 +143,7 @@ typedef enum pkgStage_e { struct psm_s { /*@refcounted@*/ rpmTransactionSet ts; /*!< transaction set */ -/*@kept@*/ +/*@refcounted@*/ TFI_t fi; /*!< transaction element file info */ FD_t cfd; /*!< Payload file handle. */ FD_t fd; /*!< Repackage file handle. */ @@ -175,7 +183,7 @@ rpmProblemSet psCreate(void) * Append problem to set. */ void psAppend(rpmProblemSet probs, rpmProblemType type, - const struct availablePackage * alp, + const availablePackage alp, const char * dn, const char * bn, Header altH, unsigned long ulong1) /*@modifies probs, alp @*/; @@ -199,7 +207,7 @@ fileTypes whatis(uint_16 mode) * @return header with relocated files */ Header relocateFileList(const rpmTransactionSet ts, TFI_t fi, - struct availablePackage * alp, + availablePackage alp, Header origH, fileAction * actions) /*@modifies ts, fi, alp, origH, actions @*/; @@ -212,8 +220,7 @@ Header relocateFileList(const rpmTransactionSet ts, TFI_t fi, */ void loadFi(/*@null@*/ const rpmTransactionSet ts, TFI_t fi, Header h, int scareMem) - /*@globals fileSystem @*/ - /*@modifies ts, fi, h, fileSystem @*/; + /*@modifies ts, fi, h @*/; /** * Destroy transaction element file info. |