diff options
Diffstat (limited to 'objects/logitem-object.h')
-rw-r--r-- | objects/logitem-object.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/objects/logitem-object.h b/objects/logitem-object.h new file mode 100644 index 0000000..b7fd588 --- /dev/null +++ b/objects/logitem-object.h @@ -0,0 +1,21 @@ +#ifndef _LOG_ITEM_OBJECT_H_ +#define _LOG_ITEM_OBJECT_H_ + +#include <Python.h> +#include "base-objects.h" + +typedef struct +{ + PyObject_HEAD + PyObject *type; + PyObject *name; + PyObject *servertag; +} PyLogitem; + +extern PyTypeObject PyLogitemType; + +int logitem_object_init(void); +PyObject *pylogitem_new(void *log); +#define pylogitem_check(op) PyObject_TypeCheck(op, &PyLogitemType) + +#endif |