summaryrefslogtreecommitdiff
path: root/src/pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pool.h')
-rw-r--r--src/pool.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pool.h b/src/pool.h
index 79d4183..a1359a8 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -140,6 +140,9 @@ struct _Pool {
/* our tmp space string space */
struct _Pool_tmpspace tmpspace;
+
+ char *errstr; /* last error string */
+ int errstra; /* allocated space for errstr */
#endif
};
@@ -225,6 +228,9 @@ extern const char *pool_bin2hex(Pool *pool, const unsigned char *buf, int len);
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);
+
/**
* Solvable management
*/