7 * Transaction element file states.
9 typedef struct rpmfs_s * rpmfs;
10 typedef struct sharedFileInfo_s * sharedFileInfo;
11 typedef char rpm_fstate_t;
13 /* XXX psm needs access to these */
14 struct sharedFileInfo_s {
26 rpmfs rpmfsNew(rpm_count_t fc, int initState);
29 rpmfs rpmfsFree(rpmfs fs);
32 rpm_count_t rpmfsFC(rpmfs fs);
35 void rpmfsAddReplaced(rpmfs fs, int pkgFileNum, char rstate,
36 int otherPkg, int otherFileNum);
39 sharedFileInfo rpmfsGetReplaced(rpmfs fs);
42 sharedFileInfo rpmfsNextReplaced(rpmfs fs , sharedFileInfo replaced);
45 void rpmfsSetState(rpmfs fs, unsigned int ix, rpmfileState state);
48 rpmfileState rpmfsGetState(rpmfs fs, unsigned int ix);
52 rpm_fstate_t * rpmfsGetStates(rpmfs fs);
55 rpmFileAction rpmfsGetAction(rpmfs fs, unsigned int ix);
58 void rpmfsSetAction(rpmfs fs, unsigned int ix, rpmFileAction action);
61 void rpmfsResetActions(rpmfs fs);