summaryrefslogtreecommitdiff
path: root/python/rpmmi-py.h
blob: 4c4f7173ada96421442d1c905a62bf9349f579e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef H_RPMMI_PY
#define H_RPMMI_PY

/** \ingroup py_c
 * \file python/rpmmi-py.h
 */

/** \ingroup py_c
 */
typedef struct rpmmiObject_s rpmmiObject;

/** \ingroup py_c
 */
struct rpmmiObject_s {
    PyObject_HEAD
    PyObject *md_dict;		/*!< to look like PyModuleObject */
    PyObject *ref;		/* for db/ts refcounting */
    rpmdbMatchIterator mi;
} ;

/*@unchecked@*/
extern PyTypeObject rpmmi_Type;

/*@null@*/
rpmmiObject * rpmmi_Wrap(rpmdbMatchIterator mi, PyObject *s)
	/*@*/;

#endif