summaryrefslogtreecommitdiffstats
path: root/objects/connect-object.h
diff options
context:
space:
mode:
Diffstat (limited to 'objects/connect-object.h')
-rw-r--r--objects/connect-object.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/objects/connect-object.h b/objects/connect-object.h
new file mode 100644
index 0000000..53bd509
--- /dev/null
+++ b/objects/connect-object.h
@@ -0,0 +1,22 @@
+#ifndef _CONNECT_OBJECT_H_
+#define _CONNECT_OBJECT_H_
+
+#include <Python.h>
+#include "base-objects.h"
+
+/* forward */
+struct _SERVER_CONNECT_REC;
+
+typedef struct
+{
+ PyIrssi_HEAD(struct _SERVER_CONNECT_REC)
+} PyConnect;
+
+extern PyTypeObject PyConnectType;
+
+int connect_object_init(void);
+PyObject *pyconnect_sub_new(void *connect, PyTypeObject *subtype, int managed);
+PyObject *pyconnect_new(void *connect, int managed);
+#define pyconnect_check(op) PyObject_TypeCheck(op, &PyConnectType)
+
+#endif