summaryrefslogtreecommitdiff
path: root/src/knownid.h
blob: a2291215049f2b30f8e51b07a7f33b9926b8b865 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
/*
 * Copyright (c) 2007-2014, Novell Inc.
 *
 * This program is licensed under the BSD license, read LICENSE.BSD
 * for further information
 */

/*
 * knownid.h
 *
 */

/*
 * Warning: you're free to append new entries, but insert/delete breaks
 * the ABI!
 */

#ifndef LIBSOLV_KNOWNID_H
#define LIBSOLV_KNOWNID_H

#undef KNOWNID
#ifdef KNOWNID_INITIALIZE
# define KNOWNID(a, b) b
static const char *initpool_data[] = {
#else
# define KNOWNID(a, b) a
enum solv_knownid {
#endif

KNOWNID(ID_NULL,			"<NULL>"),
KNOWNID(ID_EMPTY,			""),

/* The following Ids are stored in the solvable and must
 * come in one block */
KNOWNID(SOLVABLE_NAME,			"solvable:name"),
KNOWNID(SOLVABLE_ARCH,			"solvable:arch"),
KNOWNID(SOLVABLE_EVR,			"solvable:evr"),
KNOWNID(SOLVABLE_VENDOR,		"solvable:vendor"),
KNOWNID(SOLVABLE_PROVIDES,		"solvable:provides"),
KNOWNID(SOLVABLE_OBSOLETES,		"solvable:obsoletes"),
KNOWNID(SOLVABLE_CONFLICTS,		"solvable:conflicts"),
KNOWNID(SOLVABLE_REQUIRES,		"solvable:requires"),
KNOWNID(SOLVABLE_RECOMMENDS,		"solvable:recommends"),
KNOWNID(SOLVABLE_SUGGESTS,		"solvable:suggests"),
KNOWNID(SOLVABLE_SUPPLEMENTS,		"solvable:supplements"),
KNOWNID(SOLVABLE_ENHANCES,		"solvable:enhances"),
KNOWNID(RPM_RPMDBID,			"rpm:dbid"),

/* normal requires before this, prereqs after this */
KNOWNID(SOLVABLE_PREREQMARKER,		"solvable:prereqmarker"),
/* normal provides before this, generated file provides after this */
KNOWNID(SOLVABLE_FILEMARKER,		"solvable:filemarker"),

KNOWNID(NAMESPACE_INSTALLED,		"namespace:installed"),
KNOWNID(NAMESPACE_MODALIAS,		"namespace:modalias"),
KNOWNID(NAMESPACE_SPLITPROVIDES,	"namespace:splitprovides"),
KNOWNID(NAMESPACE_LANGUAGE,		"namespace:language"),
KNOWNID(NAMESPACE_FILESYSTEM,		"namespace:filesystem"),
KNOWNID(NAMESPACE_OTHERPROVIDERS,	"namespace:otherproviders"),

KNOWNID(SYSTEM_SYSTEM,			"system:system"),

/* special solvable architectures */
KNOWNID(ARCH_SRC,			"src"),
KNOWNID(ARCH_NOSRC,			"nosrc"),
KNOWNID(ARCH_NOARCH,			"noarch"),
KNOWNID(ARCH_ALL,			"all"),
KNOWNID(ARCH_ANY,			"any"),

/* the meta tags used in solv file storage */
KNOWNID(REPOSITORY_SOLVABLES,		"repository:solvables"),
KNOWNID(REPOSITORY_DELTAINFO,		"repository:deltainfo"),

/* sub-repository information, they will get loaded on demand */
KNOWNID(REPOSITORY_EXTERNAL,		"repository:external"),
KNOWNID(REPOSITORY_KEYS,		"repository:keys"),
KNOWNID(REPOSITORY_LOCATION,		"repository:location"),

/* file provides already added to our solvables */
KNOWNID(REPOSITORY_ADDEDFILEPROVIDES,	"repository:addedfileprovides"),
/* inode of the rpm database for rpm --rebuilddb detection */
KNOWNID(REPOSITORY_RPMDBCOOKIE,		"repository:rpmdbcookie"),

/* the known data types */
KNOWNID(REPOKEY_TYPE_VOID,		"repokey:type:void"),
KNOWNID(REPOKEY_TYPE_CONSTANT,		"repokey:type:constant"),
KNOWNID(REPOKEY_TYPE_CONSTANTID,	"repokey:type:constantid"),
KNOWNID(REPOKEY_TYPE_ID,		"repokey:type:id"),
KNOWNID(REPOKEY_TYPE_NUM,		"repokey:type:num"),
KNOWNID(REPOKEY_TYPE_U32,		"repokey:type:num32"),
KNOWNID(REPOKEY_TYPE_DIR,		"repokey:type:dir"),
KNOWNID(REPOKEY_TYPE_STR,		"repokey:type:str"),
KNOWNID(REPOKEY_TYPE_BINARY,		"repokey:type:binary"),
KNOWNID(REPOKEY_TYPE_IDARRAY,		"repokey:type:idarray"),
KNOWNID(REPOKEY_TYPE_REL_IDARRAY,	"repokey:type:relidarray"),
KNOWNID(REPOKEY_TYPE_DIRSTRARRAY,	"repokey:type:dirstrarray"),
KNOWNID(REPOKEY_TYPE_DIRNUMNUMARRAY,	"repokey:type:dirnumnumarray"),
KNOWNID(REPOKEY_TYPE_MD5,		"repokey:type:md5"),
KNOWNID(REPOKEY_TYPE_SHA1,		"repokey:type:sha1"),
KNOWNID(REPOKEY_TYPE_SHA224,		"repokey:type:sha224"),
KNOWNID(REPOKEY_TYPE_SHA256,		"repokey:type:sha256"),
KNOWNID(REPOKEY_TYPE_SHA384,		"repokey:type:sha384"),
KNOWNID(REPOKEY_TYPE_SHA512,		"repokey:type:sha512"),
KNOWNID(REPOKEY_TYPE_FIXARRAY,		"repokey:type:fixarray"),
KNOWNID(REPOKEY_TYPE_FLEXARRAY,		"repokey:type:flexarray"),
KNOWNID(REPOKEY_TYPE_DELETED,		"repokey:type:deleted"),	/* internal only */

KNOWNID(SOLVABLE_SUMMARY,		"solvable:summary"),
KNOWNID(SOLVABLE_DESCRIPTION,		"solvable:description"),
KNOWNID(SOLVABLE_DISTRIBUTION,		"solvable:distribution"),
KNOWNID(SOLVABLE_AUTHORS,		"solvable:authors"),
KNOWNID(SOLVABLE_PACKAGER,		"solvable:packager"),
KNOWNID(SOLVABLE_GROUP,			"solvable:group"),
KNOWNID(SOLVABLE_URL,			"solvable:url"),
KNOWNID(SOLVABLE_KEYWORDS,		"solvable:keywords"),
KNOWNID(SOLVABLE_LICENSE,		"solvable:license"),
KNOWNID(SOLVABLE_BUILDTIME,		"solvable:buildtime"),
KNOWNID(SOLVABLE_BUILDHOST,		"solvable:buildhost"),
KNOWNID(SOLVABLE_EULA,			"solvable:eula"),
KNOWNID(SOLVABLE_CPEID,		        "solvable:cpeid"),
KNOWNID(SOLVABLE_MESSAGEINS,		"solvable:messageins"),
KNOWNID(SOLVABLE_MESSAGEDEL,		"solvable:messagedel"),
KNOWNID(SOLVABLE_INSTALLSIZE,		"solvable:installsize"),
KNOWNID(SOLVABLE_DISKUSAGE,		"solvable:diskusage"),
KNOWNID(SOLVABLE_FILELIST,		"solvable:filelist"),
KNOWNID(SOLVABLE_INSTALLTIME,		"solvable:installtime"),
KNOWNID(SOLVABLE_MEDIADIR,		"solvable:mediadir"),
KNOWNID(SOLVABLE_MEDIAFILE,		"solvable:mediafile"),
KNOWNID(SOLVABLE_MEDIANR,		"solvable:medianr"),
KNOWNID(SOLVABLE_MEDIABASE,		"solvable:mediabase"),	/* <location xml:base=... > */
KNOWNID(SOLVABLE_DOWNLOADSIZE,		"solvable:downloadsize"),
KNOWNID(SOLVABLE_SOURCEARCH,		"solvable:sourcearch"),
KNOWNID(SOLVABLE_SOURCENAME,		"solvable:sourcename"),
KNOWNID(SOLVABLE_SOURCEEVR,		"solvable:sourceevr"),
KNOWNID(SOLVABLE_ISVISIBLE,		"solvable:isvisible"),
KNOWNID(SOLVABLE_TRIGGERS,		"solvable:triggers"),
KNOWNID(SOLVABLE_CHECKSUM,		"solvable:checksum"),
KNOWNID(SOLVABLE_PKGID,			"solvable:pkgid"),	/* pkgid: md5sum over header + payload */
KNOWNID(SOLVABLE_HDRID,			"solvable:hdrid"),	/* hdrid: sha1sum over header only */
KNOWNID(SOLVABLE_LEADSIGID,		"solvable:leadsigid"),  /* leadsigid: md5sum over lead + sigheader */

KNOWNID(SOLVABLE_PATCHCATEGORY,		"solvable:patchcategory"),
KNOWNID(SOLVABLE_HEADEREND,		"solvable:headerend"),
KNOWNID(SOLVABLE_CHANGELOG,		"solvable:changelog"),
KNOWNID(SOLVABLE_CHANGELOG_AUTHOR,	"solvable:changelog:author"),
KNOWNID(SOLVABLE_CHANGELOG_TIME,	"solvable:changelog:time"),
KNOWNID(SOLVABLE_CHANGELOG_TEXT,	"solvable:changelog:text"),

/* stuff for solvables of type pattern */
KNOWNID(SOLVABLE_CATEGORY,		"solvable:category"),
KNOWNID(SOLVABLE_INCLUDES,		"solvable:includes"),
KNOWNID(SOLVABLE_EXTENDS,		"solvable:extends"),
KNOWNID(SOLVABLE_ICON,			"solvable:icon"),
KNOWNID(SOLVABLE_ORDER,			"solvable:order"),

/* extra definitions for updates (i.e. patch: solvables) */
KNOWNID(UPDATE_REBOOT,			"update:reboot"),	/* reboot suggested (kernel update) */
KNOWNID(UPDATE_RESTART,			"update:restart"),	/* restart suggested (update stack update) */
KNOWNID(UPDATE_RELOGIN,			"update:relogin"),	/* relogin suggested */

KNOWNID(UPDATE_MESSAGE,			"update:message"),	/* informative message */
KNOWNID(UPDATE_SEVERITY,		"update:severity"),	/* "Important", ...*/
KNOWNID(UPDATE_RIGHTS,			"update:rights"),	/* copyright */

/* 'content' of patch, usually list of packages */
KNOWNID(UPDATE_COLLECTION,		"update:collection"),          /*  "name evr arch" */
KNOWNID(UPDATE_COLLECTION_NAME,		"update:collection:name"),     /*   name */
KNOWNID(UPDATE_COLLECTION_EVR,		"update:collection:evr"),      /*   epoch:version-release */
KNOWNID(UPDATE_COLLECTION_ARCH,		"update:collection:arch"),     /*   architecture */
KNOWNID(UPDATE_COLLECTION_FILENAME,	"update:collection:filename"), /*   filename (of rpm) */
KNOWNID(UPDATE_COLLECTION_FLAGS,	"update:collection:flags"),    /*   reboot(1)/restart(2) suggested if this rpm gets updated */

KNOWNID(UPDATE_REFERENCE,		"update:reference"),		/* external references for the update */
KNOWNID(UPDATE_REFERENCE_TYPE,		"update:reference:type"),	/*  type, e.g. 'bugzilla' or 'cve' */
KNOWNID(UPDATE_REFERENCE_HREF,		"update:reference:href"),	/*  href, e.g. 'http://bugzilla...' */
KNOWNID(UPDATE_REFERENCE_ID,		"update:reference:id"),		/*  id, e.g. bug number */
KNOWNID(UPDATE_REFERENCE_TITLE,		"update:reference:title"),	/*  title, e.g. "the bla forz scribs on fuggle" */

/* extra definitions for products */
KNOWNID(PRODUCT_REFERENCEFILE,		"product:referencefile"),	/* installed product only */
KNOWNID(PRODUCT_SHORTLABEL,		"product:shortlabel"),		/* not in repomd? */
KNOWNID(PRODUCT_DISTPRODUCT,		"product:distproduct"),		/* obsolete */
KNOWNID(PRODUCT_DISTVERSION,		"product:distversion"),		/* obsolete */
KNOWNID(PRODUCT_TYPE,			"product:type"),		/* e.g. 'base' */
KNOWNID(PRODUCT_URL,			"product:url"),
KNOWNID(PRODUCT_URL_TYPE,		"product:url:type"),
KNOWNID(PRODUCT_FLAGS,			"product:flags"),		/* e.g. 'update', 'no_you' */
KNOWNID(PRODUCT_PRODUCTLINE,		"product:productline"),		/* installed product only */
KNOWNID(PRODUCT_REGISTER_TARGET,	"product:regtarget"),		/* installed and available product */
KNOWNID(PRODUCT_REGISTER_RELEASE,	"product:regrelease"),		/* installed product only */
KNOWNID(PRODUCT_UPDATES_REPOID,	        "product:updates:repoid"),
KNOWNID(PRODUCT_UPDATES,	        "product:updates"),
KNOWNID(PRODUCT_ENDOFLIFE,	        "product:endoflife"),

/* argh, should rename to repository and unify with REPOMD */
KNOWNID(SUSETAGS_DATADIR,		"susetags:datadir"),
KNOWNID(SUSETAGS_DESCRDIR,		"susetags:descrdir"),
KNOWNID(SUSETAGS_DEFAULTVENDOR,		"susetags:defaultvendor"),
KNOWNID(SUSETAGS_FILE,			"susetags:file"),
KNOWNID(SUSETAGS_FILE_NAME,		"susetags:file:name"),
KNOWNID(SUSETAGS_FILE_TYPE,		"susetags:file:type"),
KNOWNID(SUSETAGS_FILE_CHECKSUM,		"susetags:file:checksum"),
KNOWNID(SUSETAGS_SHARE_NAME,		"susetags:share:name"),
KNOWNID(SUSETAGS_SHARE_EVR,		"susetags:share:evr"),
KNOWNID(SUSETAGS_SHARE_ARCH,		"susetags:share:arch"),

/* timestamp then the repository was generated */
KNOWNID(REPOSITORY_TIMESTAMP,		"repository:timestamp"),
/* hint when the metadata could be outdated w/respect to generated timestamp */
KNOWNID(REPOSITORY_EXPIRE,		"repository:expire"),
/* which things does this repo provides updates for, if it does (array) */
KNOWNID(REPOSITORY_UPDATES,		"repository:updates"),		/* obsolete? */
/* which products this repository is supposed to be for (array) */
KNOWNID(REPOSITORY_DISTROS,		"repository:distros"),
KNOWNID(REPOSITORY_PRODUCT_LABEL,       "repository:product:label"),
KNOWNID(REPOSITORY_PRODUCT_CPEID,	"repository:product:cpeid"),
KNOWNID(REPOSITORY_REPOID,		"repository:repoid"),		/* obsolete? */
/* keyword (tags) for this repository */
KNOWNID(REPOSITORY_KEYWORDS,		"repository:keywords"),
/* revision of the repository. arbitrary string */
KNOWNID(REPOSITORY_REVISION,		"repository:revision"),
KNOWNID(REPOSITORY_TOOLVERSION,		"repository:toolversion"),

KNOWNID(DELTA_PACKAGE_NAME,		"delta:pkgname"),
KNOWNID(DELTA_PACKAGE_EVR,		"delta:pkgevr"),
KNOWNID(DELTA_PACKAGE_ARCH,		"delta:pkgarch"),
KNOWNID(DELTA_LOCATION_DIR,		"delta:locdir"),
KNOWNID(DELTA_LOCATION_NAME,		"delta:locname"),
KNOWNID(DELTA_LOCATION_EVR,		"delta:locevr"),
KNOWNID(DELTA_LOCATION_SUFFIX,		"delta:locsuffix"),
KNOWNID(DELTA_DOWNLOADSIZE,		"delta:downloadsize"),
KNOWNID(DELTA_CHECKSUM,			"delta:checksum"),
KNOWNID(DELTA_BASE_EVR,			"delta:baseevr"),
KNOWNID(DELTA_SEQ_NAME,			"delta:seqname"),
KNOWNID(DELTA_SEQ_EVR,			"delta:seqevr"),
KNOWNID(DELTA_SEQ_NUM,			"delta:seqnum"),
KNOWNID(DELTA_LOCATION_BASE,	        "delta:locbase"),	/* <location xml:base=... > */

KNOWNID(REPOSITORY_REPOMD,		"repository:repomd"),
KNOWNID(REPOSITORY_REPOMD_TYPE,		"repository:repomd:type"),
KNOWNID(REPOSITORY_REPOMD_LOCATION,	"repository:repomd:location"),
KNOWNID(REPOSITORY_REPOMD_TIMESTAMP,	"repository:repomd:timestamp"),
KNOWNID(REPOSITORY_REPOMD_CHECKSUM,	"repository:repomd:checksum"),
KNOWNID(REPOSITORY_REPOMD_OPENCHECKSUM,	"repository:repomd:openchecksum"),
KNOWNID(REPOSITORY_REPOMD_SIZE,		"repository:repomd:size"),

KNOWNID(PUBKEY_KEYID,		        "pubkey:keyid"),
KNOWNID(PUBKEY_FINGERPRINT,	        "pubkey:fingerprint"),
KNOWNID(PUBKEY_EXPIRES,		        "pubkey:expires"),
KNOWNID(PUBKEY_SIGNATURES,	        "pubkey:signatures"),
KNOWNID(PUBKEY_DATA,		        "pubkey:data"),
KNOWNID(PUBKEY_SUBKEYOF,	        "pubkey:subkeyof"),

KNOWNID(SIGNATURE_ISSUER,	        "signature:issuer"),
KNOWNID(SIGNATURE_TIME,	        	"signature:time"),
KNOWNID(SIGNATURE_EXPIRES,	        "signature:expires"),
KNOWNID(SIGNATURE_DATA,		        "signature:data"),

KNOWNID(PRODUCT_REGISTER_FLAVOR,	"product:regflavor"),		/* installed and available product */

KNOWNID(ID_NUM_INTERNAL,		0)

#ifdef KNOWNID_INITIALIZE
};
#else
};
#endif

#undef KNOWNID

#endif