diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-03-09 14:57:55 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-03-09 14:57:55 +0000 |
| commit | 6d42024c88d207c35718f4f8458e58fc44951830 (patch) | |
| tree | dbb993ce5d2b03738fa3f92094d881f2646743c5 /python | |
| parent | e2d599df4c4375fb90289d4d038c2575361a3b20 (diff) | |
| download | python-apt-6d42024c88d207c35718f4f8458e58fc44951830.tar.gz | |
* experimental progress callback is back, not too usefull now
Diffstat (limited to 'python')
| -rw-r--r-- | python/progress.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/progress.h b/python/progress.h index d653b42d..5859eea0 100644 --- a/python/progress.h +++ b/python/progress.h @@ -1,6 +1,8 @@ #ifndef PROGRESS_H #define PROGRESS_H +#include<iostream> + struct PyOpProgressStruct : public OpProgress { @@ -12,7 +14,7 @@ struct PyOpProgressStruct : public OpProgress return; // Build up the argument list... - PyObject *arglist = Py_BuildValue("(fO)", Percent, py_update_callback_args); + PyObject *arglist = Py_BuildValue("fO", Percent,py_update_callback_args); // ...for calling the Python compare function. PyObject *result = PyEval_CallObject(py_update_callback_func,arglist); |
