1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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