fix python refcounting (memleaks)
[enigma2.git] / lib / gdi / glcddc.h
1 #ifndef __glcddc_h
2 #define __glcddc_h
3
4 #include "grc.h"
5 #include <lib/gdi/lcd.h>
6
7 class gLCDDC: public gDC
8 {
9         eLCD *lcd;
10         static gLCDDC *instance;
11         int update;
12         void exec(gOpcode *opcode);
13         gSurface surface;
14 public:
15         gLCDDC();
16         ~gLCDDC();
17         void setUpdate(int update);
18         static int getInstance(ePtr<gLCDDC> &ptr) { if (!instance) return -1; ptr = instance; return 0; }
19         int islocked() { return lcd->islocked(); }
20 };
21
22 #endif