summaryrefslogtreecommitdiffstats
path: root/objects/dcc-object.h
diff options
context:
space:
mode:
Diffstat (limited to 'objects/dcc-object.h')
-rw-r--r--objects/dcc-object.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/objects/dcc-object.h b/objects/dcc-object.h
new file mode 100644
index 0000000..d44d3db
--- /dev/null
+++ b/objects/dcc-object.h
@@ -0,0 +1,24 @@
+#ifndef _DCC_OBJECT_H_
+#define _DCC_OBJECT_H_
+
+#include <Python.h>
+#include "base-objects.h"
+
+#define PyDcc_HEAD(type) \
+ PyIrssi_HEAD(type) \
+ PyObject *server; \
+ PyObject *chat;
+
+typedef struct
+{
+ PyDcc_HEAD(void)
+} PyDcc;
+
+extern PyTypeObject PyDccType;
+
+PyObject *pydcc_sub_new(void *dcc, const char *name, PyTypeObject *subclass);
+PyObject *pydcc_new(void *dcc);
+#define pydcc_check(op) PyObject_TypeCheck(op, &PyDccType)
+int dcc_object_init(void);
+
+#endif