summaryrefslogtreecommitdiffstats
path: root/objects/textdest-object.h
blob: 3e273e6fc9445cefbfde47f39410cf395c476021 (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
#ifndef _TEXTDEST_OBJECT_H_
#define _TEXTDEST_OBJECT_H_

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

/* forward */
struct _TEXT_DEST_REC;

typedef struct
{
    PyIrssiFinal_HEAD(struct _TEXT_DEST_REC)
    PyObject *window;
    PyObject *server;
    int owned;
} PyTextDest;

extern PyTypeObject PyTextDestType;

int textdest_object_init(void);
PyObject *pytextdest_new(void *td);
#define pytextdest_check(op) PyObject_TypeCheck(op, &PyTextDestType)

#endif