summaryrefslogtreecommitdiff
path: root/python/opprogress.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-16 19:36:58 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-16 19:36:58 +0200
commit0153cede3726849504b04dabdebc8460c1c0fc91 (patch)
tree97519b677c42cab89faa794621713664a17473f9 /python/opprogress.cc
parent7e5b2dee624fb0fb7a6536cfdc74d30eeca8ffbe (diff)
downloadpython-apt-0153cede3726849504b04dabdebc8460c1c0fc91.tar.gz
python/progress.h: Add Py{Acquire,Op}ProgressObject.
Diffstat (limited to 'python/opprogress.cc')
-rw-r--r--python/opprogress.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/python/opprogress.cc b/python/opprogress.cc
index ba9acd14..d3738904 100644
--- a/python/opprogress.cc
+++ b/python/opprogress.cc
@@ -19,16 +19,11 @@
*/
#include "generic.h"
+#include "progress.h"
#include <Python.h>
#include <structmember.h>
-typedef struct {
- PyObject_HEAD
- PyObject *op;
- PyObject *subop;
- int major_change;
- float percent;
-} PyOpProgressObject;
+
static PyObject *opprogress_update(PyObject *Self, PyObject *args)
{