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

« back to all changes in this revision

Viewing changes to python/rpmfi-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/rpmfi.h>
5
5
 
6
 
/** \ingroup py_c
7
 
 * \file python/rpmfi-py.h
8
 
 */
9
 
 
10
 
typedef struct rpmfiObject_s {
11
 
    PyObject_HEAD
12
 
    PyObject *md_dict;          /*!< to look like PyModuleObject */
13
 
    int active;
14
 
    rpmfi fi;
15
 
} rpmfiObject;
 
6
typedef struct rpmfiObject_s rpmfiObject;
16
7
 
17
8
extern PyTypeObject rpmfi_Type;
18
9
 
 
10
#define rpmfiObject_Check(v)    ((v)->ob_type == &rpmfi_Type)
 
11
 
19
12
rpmfi fiFromFi(rpmfiObject * fi);
20
13
 
21
 
rpmfiObject * rpmfi_Wrap(rpmfi fi);
22
 
 
23
 
rpmfiObject * hdr_fiFromHeader(PyObject * s, PyObject * args, PyObject * kwds);
 
14
PyObject * rpmfi_Wrap(PyTypeObject *subtype, rpmfi fi);
24
15
 
25
16
#endif