summaryrefslogtreecommitdiffstats
path: root/objects/channel-object.h
diff options
context:
space:
mode:
Diffstat (limited to 'objects/channel-object.h')
-rw-r--r--objects/channel-object.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/objects/channel-object.h b/objects/channel-object.h
new file mode 100644
index 0000000..0858e7b
--- /dev/null
+++ b/objects/channel-object.h
@@ -0,0 +1,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