summaryrefslogtreecommitdiff
path: root/python/rpmps-py.h
blob: 70b568cfd45ff8b3721980a10eb31b4e55f5a4e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef H_RPMPS_PY
#define H_RPMPS_PY

#include <rpm/rpmps.h>

typedef struct rpmProblemObject_s rpmProblemObject;
typedef struct rpmpsObject_s rpmpsObject;

extern PyTypeObject rpmProblem_Type;
extern PyTypeObject rpmps_Type;

#define rpmProblemObject_Check(v)	((v)->ob_type == &rpmProblem_Type)
#define rpmpsObject_Check(v)	((v)->ob_type == &rpmps_Type)

rpmps psFromPs(rpmpsObject * ps);

PyObject * rpmps_Wrap(PyTypeObject *subtype, rpmps ps);

#endif