summaryrefslogtreecommitdiff
path: root/python/rpmkeyring-py.h
blob: 4ba017c8ddaf998fd89b5bce8c2f64d1663804bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef H_RPMKEYRING_PY
#define H_RPMKEYRING_PY

#include <rpm/rpmtypes.h>

typedef struct rpmPubkeyObject_s rpmPubkeyObject;
typedef struct rpmKeyringObject_s rpmKeyringObject;

extern PyTypeObject rpmKeyring_Type;
extern PyTypeObject rpmPubkey_Type;

PyObject * rpmPubkey_Wrap(PyTypeObject *subtype, rpmPubkey pubkey);
PyObject * rpmKeyring_Wrap(PyTypeObject *subtype, rpmKeyring keyring);

int rpmKeyringFromPyObject(PyObject *item, rpmKeyring *keyring);
#endif