blob: b18778b17cb971dbafb4b3cedb735c51a853271d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Description /*{{{*/
// $Id: progress.h,v 1.5 2003/06/03 03:03:23 mdz Exp $
/* ######################################################################
Progress - Wrapper for the progress related functions
##################################################################### */
#ifndef PROGRESS_H
#define PROGRESS_H
#include <apt-pkg/progress.h>
#include <Python.h>
struct PyOpProgress : public OpProgress
{
PyObject *callbackInst;
void setCallbackInst(PyObject *o) {
callbackInst = o;
}
virtual void Update();
virtual void Done();
PyOpProgress() : OpProgress(), callbackInst(0) {};
};
#endif
|