ref: refs/heads/master
commit 4f70dc63ea16d90ec238a844b349c80488c5c64c
Author: Michael Schroeder
Date: Mon Jun 22 16:15:51 2009 +0200
- revert debugcallback Pool constness, as the callback may want to do
fancy things like changing the debugmask
---
src/pool.c | 2 +-
src/pool.h | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/pool.c b/src/pool.c
index 438a5cd..ec87a4b 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -738,7 +738,7 @@ pool_addrelproviders(Pool *pool, Id d)
/*************************************************************************/
void
-pool_debug(const Pool *pool, int type, const char *format, ...)
+pool_debug(Pool *pool, int type, const char *format, ...)
{
va_list args;
char buf[1024];
diff --git a/src/pool.h b/src/pool.h
index 5f30321..62134c8 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -108,7 +108,7 @@ struct _Pool {
/* debug mask and callback */
int debugmask;
- void (*debugcallback)(const struct _Pool *, void *data, int type, const char *str);
+ void (*debugcallback)(struct _Pool *, void *data, int type, const char *str);
void *debugcallbackdata;
/* load callback */
@@ -171,7 +171,7 @@ extern Pool *pool_create(void);
*/
extern void pool_free(Pool *pool);
-extern void pool_debug(const Pool *pool, int type, const char *format, ...) __attribute__((format(printf, 3, 4)));
+extern void pool_debug(Pool *pool, int type, const char *format, ...) __attribute__((format(printf, 3, 4)));
extern char *pool_alloctmpspace(Pool *pool, int len);
@@ -274,7 +274,7 @@ static inline Id *pool_whatprovides_ptr(Pool *pool, Id d)
extern void pool_setdebuglevel(Pool *pool, int level);
-static inline void pool_setdebugcallback(Pool *pool, void (*debugcallback)(const struct _Pool *, void *data, int type, const char *str), void *debugcallbackdata)
+static inline void pool_setdebugcallback(Pool *pool, void (*debugcallback)(struct _Pool *, void *data, int type, const char *str), void *debugcallbackdata)
{
pool->debugcallback = debugcallback;
pool->debugcallbackdata = debugcallbackdata;
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org