- create libsatsolverext static library
[platform/upstream/libsolv.git] / ext / repo_rpmdb.h
1 /*
2  * Copyright (c) 2007-2008, Novell Inc.
3  *
4  * This program is licensed under the BSD license, read LICENSE.BSD
5  * for further information
6  */
7
8 #include "queue.h"
9
10 extern void repo_add_rpmdb(Repo *repo, Repo *ref, const char *rootdir, int flags);
11 extern void repo_add_rpms(Repo *repo, const char **rpms, int nrpms, int flags);
12
13 #define RPMDB_REPORT_PROGRESS (1 << 8)
14
15 #define RPM_ITERATE_FILELIST_ONLYDIRS   (1 << 0)
16 #define RPM_ITERATE_FILELIST_WITHMD5    (1 << 1)
17
18 void *rpm_byrpmdbid(Id rpmdbid, const char *rootdir, void **statep);
19 void *rpm_byfp(FILE *fp, const char *name, void **statep);
20 void rpm_iterate_filelist(void *rpmhandle, int flags, void (*cb)(void *, const char *, int, const char *), void *cbdata);
21 int  rpm_installedrpmdbids(const char *rootdir, Queue *rpmdbidq);