diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-16 19:36:58 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-16 19:36:58 +0200 |
| commit | 0153cede3726849504b04dabdebc8460c1c0fc91 (patch) | |
| tree | 97519b677c42cab89faa794621713664a17473f9 /python/progress.h | |
| parent | 7e5b2dee624fb0fb7a6536cfdc74d30eeca8ffbe (diff) | |
| download | python-apt-0153cede3726849504b04dabdebc8460c1c0fc91.tar.gz | |
python/progress.h: Add Py{Acquire,Op}ProgressObject.
Diffstat (limited to 'python/progress.h')
| -rw-r--r-- | python/progress.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/python/progress.h b/python/progress.h index 5ac67b1c..50fd7f20 100644 --- a/python/progress.h +++ b/python/progress.h @@ -15,6 +15,26 @@ #include <apt-pkg/cdrom.h> #include <Python.h> +typedef struct { + PyObject_HEAD + PyObject *op; + PyObject *subop; + int major_change; + float percent; +} PyOpProgressObject; + +typedef struct { + PyObject_HEAD + double last_bytes; + double current_cps; + double current_bytes; + double total_bytes; + double fetched_bytes; + unsigned long elapsed_time; + unsigned long total_items; + unsigned long current_items; +} PyAcquireProgressObject; + class PyCallbackObj { protected: |
