diff options
Diffstat (limited to 'objects/ban-object.h')
-rw-r--r-- | objects/ban-object.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/objects/ban-object.h b/objects/ban-object.h new file mode 100644 index 0000000..59ec9e7 --- /dev/null +++ b/objects/ban-object.h @@ -0,0 +1,18 @@ +#ifndef _BAN_OBJECT_H_ +#define _BAN_OBJECT_H_ + +#include <Python.h> +#include "base-objects.h" + +typedef struct +{ + PyIrssiFinal_HEAD(void) +} PyBan; + +extern PyTypeObject PyBanType; + +int ban_object_init(void); +PyObject *pyban_new(void *ban); +#define pyban_check(op) PyObject_TypeCheck(op, &PyBanType) + +#endif |