diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-16 21:39:31 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-16 21:39:31 +0200 |
| commit | c7d7fbb650c8ff7c0e52c95723e1e65e295d55cf (patch) | |
| tree | 42c752f0ca0e446d44e0de23ed382cbf94f42ae6 /python/progress.h | |
| parent | 7f861d478db844037d14aeb423eaab88a0a47716 (diff) | |
| download | python-apt-c7d7fbb650c8ff7c0e52c95723e1e65e295d55cf.tar.gz | |
python/progress.cc: Set members directly, without using Python.
Diffstat (limited to 'python/progress.h')
| -rw-r--r-- | python/progress.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/progress.h b/python/progress.h index 50fd7f20..e21a5c5a 100644 --- a/python/progress.h +++ b/python/progress.h @@ -15,11 +15,16 @@ #include <apt-pkg/cdrom.h> #include <Python.h> + typedef struct { PyObject_HEAD PyObject *op; PyObject *subop; +#ifdef T_BOOL + char major_change; +#else int major_change; +#endif float percent; } PyOpProgressObject; |
