summaryrefslogtreecommitdiffstats
path: root/objects/command-object.h
diff options
context:
space:
mode:
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