summaryrefslogtreecommitdiffstats
path: root/src/objects/window-object.h
blob: b9860af19ff6d78ae0b85581a902dcf68b8e8ff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _WINDOW_OBJECT_H_
#define _WINDOW_OBJECT_H_

#include <Python.h>
#include "base-objects.h"

/* forward */
struct _WINDOW_REC;

typedef struct
{
    PyIrssiFinal_HEAD(struct _WINDOW_REC)
} PyWindow;

extern PyTypeObject PyWindowType;

int window_object_init(void);
PyObject *pywindow_new(void *win);
#define pywindow_check(op) PyObject_TypeCheck(op, &PyWindowType)

#endif