blob: 5f747533c16ee213a037b8d7c84d29d25ae7d206 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#ifndef _RPMFS_H
#define _RPMFS_H
#include <rpm/rpmfi.h>
/** \ingroup rpmfs
* Transaction element file states.
*/
typedef struct rpmfs_s * rpmfs;
typedef struct sharedFileInfo_s * sharedFileInfo;
typedef char rpm_fstate_t;
/* XXX psm needs access to these */
struct sharedFileInfo_s {
int pkgFileNum;
int otherPkg;
int otherFileNum;
char rstate;
};
#ifdef __cplusplus
extern "C" {
#endif
RPM_GNUC_INTERNAL
rpmfs rpmfsNew(rpm_count_t fc, int initState);
RPM_GNUC_INTERNAL
rpmfs rpmfsFree(rpmfs fs);
RPM_GNUC_INTERNAL
rpm_count_t rpmfsFC(rpmfs fs);
RPM_GNUC_INTERNAL
void rpmfsAddReplaced(rpmfs fs, int pkgFileNum, char rstate,
int otherPkg, int otherFileNum);
RPM_GNUC_INTERNAL
sharedFileInfo rpmfsGetReplaced(rpmfs fs);
RPM_GNUC_INTERNAL
sharedFileInfo rpmfsNextReplaced(rpmfs fs , sharedFileInfo replaced);
RPM_GNUC_INTERNAL
void rpmfsSetState(rpmfs fs, unsigned int ix, rpmfileState state);
RPM_GNUC_INTERNAL
rpmfileState rpmfsGetState(rpmfs fs, unsigned int ix);
/* May return NULL */
RPM_GNUC_INTERNAL
rpm_fstate_t * rpmfsGetStates(rpmfs fs);
RPM_GNUC_INTERNAL
rpmFileAction rpmfsGetAction(rpmfs fs, unsigned int ix);
RPM_GNUC_INTERNAL
void rpmfsSetAction(rpmfs fs, unsigned int ix, rpmFileAction action);
#ifdef __cplusplus
}
#endif
#endif /* _RPMFS_H */
|