2 * Copyright (c) 2007-2008, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
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);
13 #define RPMDB_REPORT_PROGRESS (1 << 8)
15 #define RPM_ITERATE_FILELIST_ONLYDIRS (1 << 0)
16 #define RPM_ITERATE_FILELIST_WITHMD5 (1 << 1)
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);