void *solv_chksum_free(void *handle, unsigned char *cp);
const char *solv_chksum_type2str(Id type);
Id solv_chksum_str2type(const char *str);
-
-static inline int solv_chksum_len(Id type)
-{
- switch (type)
- {
- case REPOKEY_TYPE_MD5:
- return 16;
- case REPOKEY_TYPE_SHA1:
- return 20;
- case REPOKEY_TYPE_SHA256:
- return 32;
- default:
- return 0;
- }
-}
+int solv_chksum_len(Id type);
#endif /* LIBSOLV_CHKSUM_H */
Reldep *rels; /* table of rels: Id -> Reldep */
int nrels; /* number of unique rels */
- Hashtable relhashtbl; /* hashtable: (name,evr,op)Hash -> Id */
- Hashmask relhashmask;
struct _Repo **repos;
int nrepos; /* repos allocated */
const char **languages;
int nlanguages;
- Id *languagecache;
- int languagecacheother;
/* package manager type, deb/rpm */
int disttype;
/* providers data, as two-step indirect list
* whatprovides[Id] -> Offset into whatprovidesdata for name
- * whatprovidesdata[Offset] -> ID_NULL-terminated list of solvables providing Id
+ * whatprovidesdata[Offset] -> 0-terminated list of solvables providing Id
*/
Offset *whatprovides; /* Offset to providers of a specific name, Id -> Offset */
Offset *whatprovides_rel; /* Offset to providers of a specific relation, Id -> Offset */
Id (*nscallback)(struct _Pool *, void *data, Id name, Id evr);
void *nscallbackdata;
- /* our tmp space string space */
- struct _Pool_tmpspace tmpspace;
-
/* debug mask and callback */
int debugmask;
void (*debugcallback)(struct _Pool *, void *data, int type, const char *str);
/* search position */
Datapos pos;
+
+#ifdef LIBSOLV_INTERNAL
+ /* hash for rel unification */
+ Hashtable relhashtbl; /* hashtable: (name,evr,op)Hash -> Id */
+ Hashmask relhashmask;
+
+ Id *languagecache;
+ int languagecacheother;
+
+ /* our tmp space string space */
+ struct _Pool_tmpspace tmpspace;
+#endif
+
};
#define DISTTYPE_RPM 0