]> git.ipfire.org Git - people/stevee/pakfire.git/blob - src/pool.h
Merge branch 'master' of ssh://git.ipfire.org/pub/git/oddments/pakfire into sat
[people/stevee/pakfire.git] / src / pool.h
1
2 #ifndef PAKFIRE_POOL_H
3 #define PAKFIRE_POOL_H
4
5 #include <Python.h>
6
7 #include <satsolver/pool.h>
8
9 // Sat Pool object
10 typedef struct {
11 PyObject_HEAD
12 Pool *_pool;
13 } PoolObject;
14
15 extern PyObject* Pool_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
16 extern PyObject *Pool_dealloc(PoolObject *self);
17 extern PyObject *Pool_add_repo(PoolObject *self, PyObject *args);
18 extern PyObject *Pool_prepare(PoolObject *self);
19 extern void _Pool_prepare(Pool *pool);
20 extern PyObject *Pool_search(PoolObject *self, PyObject *args);
21 extern PyObject *Pool_set_installed(PoolObject *self, PyObject *args);
22 extern PyObject *Pool_providers(PoolObject *self, PyObject *args);
23 extern PyObject *Pool_size(PoolObject *self);
24
25 extern PyTypeObject PoolType;
26
27 #endif