2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
14 #ifdef KNOWNID_INITIALIZE
15 # define KNOWNID(a, b) b
16 static const char *initpool_data[] = {
18 # define KNOWNID(a, b) a
22 KNOWNID(ID_NULL, "<NULL>"),
23 KNOWNID(ID_EMPTY, ""),
24 KNOWNID(SOLVABLE_NAME, "solvable:name"),
25 KNOWNID(SOLVABLE_ARCH, "solvable:arch"),
26 KNOWNID(SOLVABLE_EVR, "solvable:evr"),
27 KNOWNID(SOLVABLE_VENDOR, "solvable:vendor"),
28 KNOWNID(SOLVABLE_PROVIDES, "solvable:provides"),
29 KNOWNID(SOLVABLE_OBSOLETES, "solvable:obsoletes"),
30 KNOWNID(SOLVABLE_CONFLICTS, "solvable:conflicts"),
31 KNOWNID(SOLVABLE_REQUIRES, "solvable:requires"),
32 KNOWNID(SOLVABLE_RECOMMENDS, "solvable:recommends"),
33 KNOWNID(SOLVABLE_SUGGESTS, "solvable:suggests"),
34 KNOWNID(SOLVABLE_SUPPLEMENTS, "solvable:supplements"),
35 KNOWNID(SOLVABLE_ENHANCES, "solvable:enhances"),
36 KNOWNID(SOLVABLE_FRESHENS, "solvable:freshens"),
37 KNOWNID(RPM_RPMDBID, "rpm:dbid"),
38 /* normal requires before this, prereqs after this */
39 KNOWNID(SOLVABLE_PREREQMARKER, "solvable:prereqmarker"),
40 /* normal provides before this, generated file provides after this */
41 KNOWNID(SOLVABLE_FILEMARKER, "solvable:filemarker"),
42 KNOWNID(NAMESPACE_INSTALLED, "namespace:installed"),
43 KNOWNID(NAMESPACE_MODALIAS, "namespace:modalias"),
44 KNOWNID(NAMESPACE_SPLITPROVIDES, "namespace:splitprovides"),
45 KNOWNID(NAMESPACE_LANGUAGE, "namespace:language"),
46 KNOWNID(NAMESPACE_FILESYSTEM, "namespace:filesystem"),
47 KNOWNID(SYSTEM_SYSTEM, "system:system"),
48 KNOWNID(ARCH_SRC, "src"),
49 KNOWNID(ARCH_NOSRC, "nosrc"),
50 KNOWNID(ARCH_NOARCH, "noarch"),
51 KNOWNID(REPODATA_INFO, "repodata:info"),
52 KNOWNID(REPODATA_EXTERNAL, "repodata:external"),
53 KNOWNID(REPODATA_KEYS, "repodata:keys"),
54 KNOWNID(REPODATA_LOCATION, "repodata:location"),
55 KNOWNID(REPODATA_ADDEDFILEPROVIDES, "repodata:addedfileprovides"),
57 /* The void type is usable to encode one-valued attributes, they have
58 no associated data. This is useful to encode values which many solvables
59 have in common, and whose overall set is relatively limited. A prime
60 example would be the media number. The actual value is encoded in the
61 SIZE member of the key structure. Be warned: careless use of this
62 leads to combinatoric explosion of number of schemas. */
63 KNOWNID(REPOKEY_TYPE_VOID, "repokey:type:void"),
64 KNOWNID(REPOKEY_TYPE_CONSTANT, "repokey:type:constant"),
65 KNOWNID(REPOKEY_TYPE_CONSTANTID, "repokey:type:constantid"),
66 KNOWNID(REPOKEY_TYPE_ID, "repokey:type:id"),
67 KNOWNID(REPOKEY_TYPE_NUM, "repokey:type:num"),
68 KNOWNID(REPOKEY_TYPE_U32, "repokey:type:num32"),
69 KNOWNID(REPOKEY_TYPE_DIR, "repokey:type:dir"),
70 KNOWNID(REPOKEY_TYPE_STR, "repokey:type:str"),
71 KNOWNID(REPOKEY_TYPE_IDARRAY, "repokey:type:idarray"),
72 KNOWNID(REPOKEY_TYPE_REL_IDARRAY, "repokey:type:relidarray"),
73 KNOWNID(REPOKEY_TYPE_DIRSTRARRAY, "repokey:type:dirstrarray"),
74 KNOWNID(REPOKEY_TYPE_DIRNUMNUMARRAY, "repokey:type:dirnumnumarray"),
75 KNOWNID(REPOKEY_TYPE_MD5, "repokey:type:md5"),
76 KNOWNID(REPOKEY_TYPE_SHA1, "repokey:type:sha1"),
77 KNOWNID(REPOKEY_TYPE_SHA256, "repokey:type:sha256"),
79 KNOWNID(SOLVABLE_SUMMARY, "solvable:summary"),
80 KNOWNID(SOLVABLE_DESCRIPTION, "solvable:description"),
81 KNOWNID(SOLVABLE_AUTHORS, "solvable:authors"),
82 KNOWNID(SOLVABLE_GROUP, "solvable:group"),
83 KNOWNID(SOLVABLE_KEYWORDS, "solvable:keywords"),
84 KNOWNID(SOLVABLE_LICENSE, "solvable:license"),
85 KNOWNID(SOLVABLE_BUILDTIME, "solvable:buildtime"),
86 KNOWNID(SOLVABLE_EULA, "solvable:eula"),
87 KNOWNID(SOLVABLE_MESSAGEINS, "solvable:messageins"),
88 KNOWNID(SOLVABLE_MESSAGEDEL, "solvable:messagedel"),
89 KNOWNID(SOLVABLE_INSTALLSIZE, "solvable:installsize"),
90 KNOWNID(SOLVABLE_DISKUSAGE, "solvable:diskusage"),
91 KNOWNID(SOLVABLE_FILELIST, "solvable:filelist"),
92 KNOWNID(SOLVABLE_INSTALLTIME, "solvable:installtime"),
93 KNOWNID(SOLVABLE_MEDIADIR, "solvable:mediadir"),
94 KNOWNID(SOLVABLE_MEDIAFILE, "solvable:mediafile"),
95 KNOWNID(SOLVABLE_MEDIANR, "solvable:medianr"),
96 KNOWNID(SOLVABLE_DOWNLOADSIZE, "solvable:downloadsize"),
97 KNOWNID(SOLVABLE_SOURCEARCH, "solvable:sourcearch"),
98 KNOWNID(SOLVABLE_SOURCENAME, "solvable:sourcename"),
99 KNOWNID(SOLVABLE_SOURCEEVR, "solvable:sourceevr"),
100 KNOWNID(SOLVABLE_ISVISIBLE, "solvable:isvisible"),
101 KNOWNID(SOLVABLE_CHECKSUM, "solvable:checksum"),
102 /* pkgid: md5sum over header + payload */
103 KNOWNID(SOLVABLE_PKGID, "solvable:pkgid"),
104 /* hdrid: sha1sum over header only */
105 KNOWNID(SOLVABLE_HDRID, "solvable:hdrid"),
106 /* leadsigid: md5sum over lead + sigheader */
107 KNOWNID(SOLVABLE_LEADSIGID, "solvable:leadsigid"),
109 KNOWNID(SOLVABLE_PATCHCATEGORY, "solvable:patchcategory"),
110 KNOWNID(SOLVABLE_HEADEREND, "solvable:headerend"),
112 KNOWNID(SOLVABLE_CATEGORY, "solvable:category"),
113 KNOWNID(SOLVABLE_INCLUDES, "solvable:includes"),
114 KNOWNID(SOLVABLE_EXTENDS, "solvable:extends"),
115 KNOWNID(SOLVABLE_ICON, "solvable:icon"),
116 KNOWNID(SOLVABLE_ORDER, "solvable:order"),
118 KNOWNID(UPDATE_REBOOT, "update:reboot"), /* reboot suggested (kernel update) */
119 KNOWNID(UPDATE_RESTART, "update:restart"), /* restart suggested (update stack update) */
120 KNOWNID(UPDATE_COLLECTION, "update:collection"), /* collection (of packages) */
122 KNOWNID(ID_NUM_INTERNAL, 0)
124 #ifdef KNOWNID_INITIALIZE