summaryrefslogtreecommitdiffstats
path: root/objects/base-objects.h
diff options
context:
space:
mode:
Diffstat (limited to 'objects/base-objects.h')
-rw-r--r--objects/base-objects.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/objects/base-objects.h b/objects/base-objects.h
index d2f6acb..ed2edfc 100644
--- a/objects/base-objects.h
+++ b/objects/base-objects.h
@@ -20,6 +20,15 @@
type *data; \
int cleanup_installed;
+/* to access data from any irssi object */
+typedef struct
+{
+ PyObject_HEAD
+ void *data;
+} PyIrssiObject;
+
+#define DATA(obj) (((PyIrssiObject *)obj)->data)
+
/* base for classes with a type */
typedef struct
{