diff options
author | Michael Schroeder <mls@suse.de> | 2012-10-23 12:37:25 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-10-23 12:37:25 +0200 |
commit | 765ead528d2b791e43e2a90212b5e4a0c2ad1302 (patch) | |
tree | df895b663861fa3894c5a3d713626b9709dd9ed5 /src/pool.h | |
parent | dbd528c82312931703cef9c3f932ee5c8bd4c635 (diff) | |
download | libsolv-765ead528d2b791e43e2a90212b5e4a0c2ad1302.tar.gz libsolv-765ead528d2b791e43e2a90212b5e4a0c2ad1302.tar.bz2 libsolv-765ead528d2b791e43e2a90212b5e4a0c2ad1302.zip |
implement pool_set_rootdir/REPO_USE_ROOTDIR instead of passing a rootdir to various functions.
Breaks the interface a bit, sorry. The new way seems to be much cleaner, though.
Extra apologies to Nate Skulic for removing his add_rpmdb_root method one day
after adding it.
Diffstat (limited to 'src/pool.h')
-rw-r--r-- | src/pool.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -143,6 +143,9 @@ struct _Pool { char *errstr; /* last error string */ int errstra; /* allocated space for errstr */ + + char *rootdir; + #endif }; @@ -231,6 +234,11 @@ extern void pool_set_installed(Pool *pool, struct _Repo *repo); extern int pool_error(Pool *pool, int ret, const char *format, ...) __attribute__((format(printf, 3, 4))); extern char *pool_errstr(Pool *pool); +extern void pool_set_rootdir(Pool *pool, const char *rootdir); +extern const char *pool_get_rootdir(Pool *pool); +extern char *pool_prepend_rootdir(Pool *pool, const char *dir); +extern const char *pool_prepend_rootdir_tmp(Pool *pool, const char *dir); + /** * Solvable management */ |