~ubuntu-branches/ubuntu/precise/rpm/precise-proposed

« back to all changes in this revision

Viewing changes to python/rpmds-py.h

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2010-06-28 11:12:30 UTC
  • mfrom: (17.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100628111230-8ggjjhgpvrnr3ybx
Tags: 4.8.1-5
Fix compilation on hurd and kfreebsd (Closes: #587366).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#include <rpm/rpmds.h>
5
5
 
6
 
/** \ingroup py_c
7
 
 * \file python/rpmds-py.h
8
 
 */
9
 
 
10
 
/**
11
 
 */
12
 
typedef struct rpmdsObject_s {
13
 
    PyObject_HEAD
14
 
    PyObject *md_dict;          /*!< to look like PyModuleObject */
15
 
    int         active;
16
 
    rpmds       ds;
17
 
} rpmdsObject;
18
 
 
19
 
/**
20
 
 */
 
6
typedef struct rpmdsObject_s rpmdsObject;
 
7
 
21
8
extern PyTypeObject rpmds_Type;
22
9
 
23
 
/**
24
 
 */
 
10
#define rpmdsObject_Check(v)    ((v)->ob_type == &rpmds_Type)
 
11
 
25
12
rpmds dsFromDs(rpmdsObject * ds);
26
13
 
27
 
/**
28
 
 */
29
 
rpmdsObject * rpmds_Wrap(rpmds ds);
30
 
 
31
 
/**
32
 
 */
33
 
rpmdsObject * rpmds_Single(PyObject * s, PyObject * args, PyObject * kwds);
34
 
 
35
 
/**
36
 
 */
37
 
rpmdsObject * hdr_dsFromHeader(PyObject * s, PyObject * args, PyObject * kwds);
38
 
 
39
 
/**
40
 
 */
41
 
rpmdsObject * hdr_dsOfHeader(PyObject * s);
 
14
PyObject * rpmds_Wrap(PyTypeObject *subtype, rpmds ds);
42
15
 
43
16
#endif