summaryrefslogtreecommitdiffstats
path: root/src/objects/netsplit-channel-object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects/netsplit-channel-object.h')
-rw-r--r--src/objects/netsplit-channel-object.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/objects/netsplit-channel-object.h b/src/objects/netsplit-channel-object.h
new file mode 100644
index 0000000..3a00fbb
--- /dev/null
+++ b/src/objects/netsplit-channel-object.h
@@ -0,0 +1,21 @@
+#ifndef _NETSPLIT_CHANNEL_OBJECT_H_
+#define _NETSPLIT_CHANNEL_OBJECT_H_
+
+#include <Python.h>
+#include "base-objects.h"
+
+typedef struct
+{
+ PyObject_HEAD
+ PyObject *name;
+ int op, halfop;
+ int voice, other;
+} PyNetsplitChannel;
+
+extern PyTypeObject PyNetsplitChannelType;
+
+int netsplit_channel_object_init(void);
+PyObject *pynetsplit_channel_new(void *ns);
+#define pynetsplit_channel_check(op) PyObject_TypeCheck(op, &PyNetsplitChannelType)
+
+#endif