summaryrefslogtreecommitdiff
path: root/lib/legacy.h
blob: 961e6b5222f88a73a88b11363fb2a525636fba20 (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
#ifndef H_LEGACY
#define H_LEGACY

/**
 * \file lib/legacy.h
 *
 */

/**
 */
extern int _noDirTokens;

#ifdef __cplusplus
extern "C" {
#endif

/**
 * Convert absolute path tag to (dirname,basename,dirindex) tags.
 * @param h		header
 */
void compressFilelist(Header h);

/**
 * Convert (dirname,basename,dirindex) tags to absolute path tag.
 * @param h		header
 */
void expandFilelist(Header h);

/**
 * Retrofit a Provides: name = version-release dependency into legacy
 * package headers.
 * @param h		header
 */
void providePackageNVR(Header h);

/**
 * Do all necessary retrofits for a package header.
 * @param h		header
 */
void legacyRetrofit(Header h);

#ifdef __cplusplus
}
#endif

#endif	/* H_LEGACY */