diff options
Diffstat (limited to 'src/objects/main-window-object.h')
| -rw-r--r-- | src/objects/main-window-object.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/objects/main-window-object.h b/src/objects/main-window-object.h new file mode 100644 index 0000000..fbbdac0 --- /dev/null +++ b/src/objects/main-window-object.h @@ -0,0 +1,20 @@ +#ifndef _MAIN_WINDOW_OBJECT_H_ +#define _MAIN_WINDOW_OBJECT_H_ + +#include <Python.h> +#include "base-objects.h" +#include "pyirssi.h" + +typedef struct +{ + PyIrssiFinal_HEAD(void) + PyObject *active; +} PyMainWindow; + +extern PyTypeObject PyMainWindowType; + +int main_window_object_init(void); +PyObject *pymain_window_new(MAIN_WINDOW_REC *mw); +#define pymain_window_check(op) PyObject_TypeCheck(op, &PyMainWindowType) + +#endif |
