//-----------------------------------------------
struct _Repo;
+struct _Repodata;
struct _Pool {
struct _Stringpool ss;
int debugmask;
void (*debugcallback)(struct _Pool *, void *data, int type, const char *str);
void *debugcallbackdata;
+
+ /* load callback */
+ FILE * (*loadcallback)(struct _Pool *, struct _Repodata *, void *);
+ void *loadcallbackdata;
};
#define SAT_FATAL (1<<0)
pool->debugmask = mask;
}
+static inline void pool_setloadcallback(Pool *pool, FILE *(*cb)(struct _Pool *, struct _Repodata *, void *), void *loadcbdata)
+{
+ pool->loadcallback = cb;
+ pool->loadcallbackdata = loadcbdata;
+}
+
/* loop over all providers of d */
#define FOR_PROVIDES(v, vp, d) \
for (vp = pool_whatprovides(pool, d) ; (v = *vp++) != 0; )