summaryrefslogtreecommitdiff
path: root/python/rpmds-py.h
blob: 42670a1e2b7c5993aaf0cdbc87b4b1c33f9183de (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef H_RPMDS_PY
#define H_RPMDS_PY

#include <rpmds.h>

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

/**
 */
typedef struct rpmdsObject_s {
    PyObject_HEAD
    PyObject *md_dict;		/*!< to look like PyModuleObject */
    int		active;
    rpmds	ds;
} rpmdsObject;

/**
 */
extern PyTypeObject rpmds_Type;

/**
 */
rpmds dsFromDs(rpmdsObject * ds);

/**
 */
rpmdsObject * rpmds_Wrap(rpmds ds);

/**
 */
rpmdsObject * rpmds_Single(PyObject * s, PyObject * args, PyObject * kwds);

/**
 */
rpmdsObject * hdr_dsFromHeader(PyObject * s, PyObject * args, PyObject * kwds);

/**
 */
rpmdsObject * hdr_dsOfHeader(PyObject * s);

#endif