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

« back to all changes in this revision

Viewing changes to python/rpmdb-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:
1
 
#ifndef H_RPMDB_PY
2
 
#define H_RPMDB_PY
3
 
 
4
 
#include <rpm/rpmdb.h>
5
 
 
6
 
/** \ingroup py_c
7
 
 * \file python/rpmdb-py.h
8
 
 */
9
 
 
10
 
/** \ingroup py_c
11
 
 */
12
 
typedef struct rpmdbObject_s rpmdbObject;
13
 
 
14
 
/** \ingroup py_c
15
 
 */
16
 
struct rpmdbObject_s {
17
 
    PyObject_HEAD
18
 
    PyObject *md_dict;          /*!< to look like PyModuleObject */
19
 
    rpmdb db;
20
 
    int offx;
21
 
    int noffs;
22
 
    int *offsets;
23
 
} ;
24
 
 
25
 
extern PyTypeObject rpmdb_Type;
26
 
 
27
 
#ifdef  _LEGACY_BINDINGS_TOO
28
 
rpmdb dbFromDb(rpmdbObject * db);
29
 
 
30
 
rpmdbObject * rpmOpenDB(PyObject * self, PyObject * args, PyObject * kwds);
31
 
PyObject * rebuildDB (PyObject * self, PyObject * args, PyObject * kwds);
32
 
#endif
33
 
 
34
 
#endif