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

#include <Python.h>
#include "window-item-object.h"

/* forward */
struct _CHANNEL_REC;

typedef struct
{
    PyWindowItem_HEAD(struct _CHANNEL_REC)
} PyChannel;

extern PyTypeObject PyChannelType;

int channel_object_init(void);
PyObject *pychannel_sub_new(void *chan, const char *name, PyTypeObject *type);
PyObject *pychannel_new(void *chan);
#define pychannel_check(op) PyObject_TypeCheck(op, &PyChannelType)

#endif