summaryrefslogtreecommitdiff
path: root/python/spec-py.h
blob: 65b8dc3d782f5ab74cfc48dcfadf52c3fa9f6112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef RPMPYTHON_SPEC
#define RPMPYTHON_SPEC

#include <rpm/rpmbuild.h>

typedef struct specPkgObject_s specPkgObject;
typedef struct specObject_s specObject;

extern PyTypeObject spec_Type;
extern PyTypeObject specPkg_Type;

#define specObject_Check(v)	((v)->ob_type == &spec_Type)
#define specPkgObject_Check(v)	((v)->ob_type == &specPkg_Type)

PyObject * spec_Wrap(PyTypeObject *subtype, rpmSpec spec);
PyObject * specPkg_Wrap(PyTypeObject *subtype, rpmSpecPkg pkg, specObject *source);

#endif /* RPMPYTHON_SPEC */