X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fpooltypes.h;h=64a3b8743465891a587a6893e1dfbdded7ceb4b6;hb=e1659dc4ce74d3c47f465103951dafff8fc0cf9f;hp=3231b07e04c6cd4bc076c99941a5f0ce55cae763;hpb=8f8a9ed5192a6737d63364029cb05d91f1d0e399;p=platform%2Fupstream%2Flibsolv.git diff --git a/src/pooltypes.h b/src/pooltypes.h index 3231b07..64a3b87 100644 --- a/src/pooltypes.h +++ b/src/pooltypes.h @@ -1,21 +1,42 @@ /* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* * pooltypes.h - * + * */ -#ifndef POOLTYPES_H -#define POOLTYPES_H +#ifndef LIBSOLV_POOLTYPES_H +#define LIBSOLV_POOLTYPES_H + +/* format version number for .solv files */ +#define SOLV_VERSION_0 0 +#define SOLV_VERSION_1 1 +#define SOLV_VERSION_2 2 +#define SOLV_VERSION_3 3 +#define SOLV_VERSION_4 4 +#define SOLV_VERSION_5 5 +#define SOLV_VERSION_6 6 +#define SOLV_VERSION_7 7 +#define SOLV_VERSION_8 8 + +#define SOLV_FLAG_PREFIX_POOL 4 +#define SOLV_FLAG_SIZE_BYTES 8 -/* version number for .solv files */ -#define SOLV_VERSION 0 +struct _Stringpool; +typedef struct _Stringpool Stringpool; struct _Pool; typedef struct _Pool Pool; -// identifier for string values +/* identifier for string values */ typedef int Id; /* must be signed!, since negative Id is used in solver rules to denote negation */ -// offset value, e.g. used to 'point' into the stringspace +/* offset value, e.g. used to 'point' into the stringspace */ typedef unsigned int Offset; -#endif /* POOLTYPES_H */ +#endif /* LIBSOLV_POOLTYPES_H */