summaryrefslogtreecommitdiff
path: root/src/pool.h
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-10-23 12:37:25 +0200
committerMichael Schroeder <mls@suse.de>2012-10-23 12:37:25 +0200
commit765ead528d2b791e43e2a90212b5e4a0c2ad1302 (patch)
treedf895b663861fa3894c5a3d713626b9709dd9ed5 /src/pool.h
parentdbd528c82312931703cef9c3f932ee5c8bd4c635 (diff)
downloadlibsolv-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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pool.h b/src/pool.h
index a1359a8..bf52522 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -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
*/