summaryrefslogtreecommitdiffstats
path: root/objects/command-object.h
diff options
context:
space:
mode:
authorChristopher Davis <loafier@gmail.com>2006-06-21 23:37:27 +0000
committerChristopher Davis <loafier@gmail.com>2006-06-21 23:37:27 +0000
commitc76f11d4ead827d8e87e265131a3dee534bc0792 (patch)
tree1eb5048fccff554ead3907e751b58d5b96215144 /objects/command-object.h
parent7ddcc3b268c8c55b2d6fe80e87e090181fbc1bf7 (diff)
downloadirssi-python-c76f11d4ead827d8e87e265131a3dee534bc0792.tar.gz
irssi-python-c76f11d4ead827d8e87e265131a3dee534bc0792.tar.xz
irssi-python-c76f11d4ead827d8e87e265131a3dee534bc0792.zip
added some objects
git-svn-id: http://svn.irssi.org/repos/irssi-python@4288 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'objects/command-object.h')
-rw-r--r--objects/command-object.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/objects/command-object.h b/objects/command-object.h
new file mode 100644
index 0000000..e6402cf
--- /dev/null
+++ b/objects/command-object.h
@@ -0,0 +1,18 @@
+#ifndef _COMMAND_OBJECT_H_
+#define _COMMAND_OBJECT_H_
+
+#include <Python.h>
+#include "base-objects.h"
+
+typedef struct
+{
+ PyIrssiFinal_HEAD(void)
+} PyCommand;
+
+extern PyTypeObject PyCommandType;
+
+int command_object_init(void);
+PyObject *pycommand_new(void *command);
+#define pycommand_check(op) PyObject_TypeCheck(op, &PyCommandType)
+
+#endif