blob: a0ae6342ac2a141f4dd2223e7c03c2c6e2f14edf (
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
|
#ifndef H_DEPENDS
#define H_DEPENDS
#include "header.h"
int headerMatchesDepFlags(Header h, const char * reqInfo, int reqFlags);
struct availablePackage {
Header h;
char ** provides;
char ** files;
char * name, * version, * release;
int epoch, hasEpoch, providesCount, filesCount;
const void * key;
rpmRelocation * relocs;
FD_t fd;
} ;
enum indexEntryType { IET_NAME, IET_PROVIDES, IET_FILE };
struct availableIndexEntry {
struct availablePackage * package;
char * entry;
enum indexEntryType type;
} ;
struct availableIndex {
struct availableIndexEntry * index ;
int size;
} ;
struct availableList {
struct availablePackage * list;
struct availableIndex index;
int size, alloced;
};
struct rpmTransactionSet_s {
rpmdb db; /* may be NULL */
int * removedPackages;
int numRemovedPackages, allocedRemovedPackages;
struct availableList addedPackages, availablePackages;
char * root;
FD_t scriptFd;
};
struct problemsSet {
struct rpmDependencyConflict * problems;
int num;
int alloced;
};
#endif /* H_DEPENDS */
|