diff options
Diffstat (limited to 'objects/process-object.h')
-rw-r--r-- | objects/process-object.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/objects/process-object.h b/objects/process-object.h new file mode 100644 index 0000000..041f187 --- /dev/null +++ b/objects/process-object.h @@ -0,0 +1,22 @@ +#ifndef _PROCESS_OBJECT_H_ +#define _PROCESS_OBJECT_H_ + +#include <Python.h> +#include "base-objects.h" + +/* forward */ +struct PROCESS_REC; + +typedef struct +{ + PyIrssiFinal_HEAD(struct PROCESS_REC) + PyObject *target_win; +} PyProcess; + +extern PyTypeObject PyProcessType; + +int process_object_init(void); +PyObject *pyprocess_new(void *process); +#define pyprocess_check(op) PyObject_TypeCheck(op, &PyProcessType) + +#endif |