From 3a028090359e5d5d24ccbfc11d9b6ff5681aab4f Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Sat, 12 Aug 2006 22:16:53 +0000 Subject: directory structure change git-svn-id: http://svn.irssi.org/repos/irssi-python@4312 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/objects/channel-object.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/objects/channel-object.h (limited to 'src/objects/channel-object.h') diff --git a/src/objects/channel-object.h b/src/objects/channel-object.h new file mode 100644 index 0000000..0858e7b --- /dev/null +++ b/src/objects/channel-object.h @@ -0,0 +1,22 @@ +#ifndef _CHANNEL_OBJECT_H_ +#define _CHANNEL_OBJECT_H_ + +#include +#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 -- cgit