X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fpoolid.h;h=f832ff4b3002a17b37e01acc8c6346b299799257;hb=9c08bb3b899936e1eb9b6ab9d0cef17501ad6bab;hp=698f7a7c1b852a166dde8369de7ff0ad336c231f;hpb=adea8757e5b53e7301812df4509e0cec48c5bdf0;p=platform%2Fupstream%2Flibsolv.git diff --git a/src/poolid.h b/src/poolid.h index 698f7a7..f832ff4 100644 --- a/src/poolid.h +++ b/src/poolid.h @@ -7,34 +7,44 @@ /* * poolid.h - * + * */ -#ifndef SATSOLVER_POOLID_H -#define SATSOLVER_POOLID_H +#ifndef LIBSOLV_POOLID_H +#define LIBSOLV_POOLID_H #include "pooltypes.h" #include "hash.h" -//----------------------------------------------- -// Id's with relation +#ifdef __cplusplus +extern "C" { +#endif + +/*----------------------------------------------- + * Ids with relation + */ -typedef struct _Reldep { - Id name; // "package" - Id evr; // "0:42-3" - int flags; // operation/relation, see REL_x in pool.h +typedef struct s_Reldep { + Id name; /* "package" */ + Id evr; /* "0:42-3" */ + int flags; /* operation/relation, see REL_x in pool.h */ } Reldep; -extern Id str2id(Pool *pool, const char *, int); -extern Id strn2id(Pool *pool, const char *, unsigned int, int); -extern Id rel2id(Pool *pool, Id, Id, int, int); -extern const char *id2str(const Pool *pool, Id); -extern const char *dep2str(Pool *pool, Id); /* might alloc tmpspace */ -extern const char *id2rel(const Pool *pool, Id); -extern const char *id2evr(const Pool *pool, Id); +extern Id pool_str2id(Pool *pool, const char *, int); +extern Id pool_strn2id(Pool *pool, const char *, unsigned int, int); +extern Id pool_rel2id(Pool *pool, Id, Id, int, int); +extern const char *pool_id2str(const Pool *pool, Id); +extern const char *pool_id2rel(const Pool *pool, Id); +extern const char *pool_id2evr(const Pool *pool, Id); +extern const char *pool_dep2str(Pool *pool, Id); /* might alloc tmpspace */ extern void pool_shrink_strings(Pool *pool); extern void pool_shrink_rels(Pool *pool); extern void pool_freeidhashes(Pool *pool); +extern void pool_resize_rels_hash(Pool *pool, int numnew); + +#ifdef __cplusplus +} +#endif -#endif /* SATSOLVER_POOLID_H */ +#endif /* LIBSOLV_POOLID_H */