diff options
Diffstat (limited to 'objects/log-object.h')
-rw-r--r-- | objects/log-object.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/objects/log-object.h b/objects/log-object.h new file mode 100644 index 0000000..9893bc5 --- /dev/null +++ b/objects/log-object.h @@ -0,0 +1,21 @@ +#ifndef _LOG_OBJECT_H_ +#define _LOG_OBJECT_H_ + +#include <Python.h> +#include "base-objects.h" + +/* forward */ +struct _LOG_REC; + +typedef struct +{ + PyIrssiFinal_HEAD(struct _LOG_REC) +} PyLog; + +extern PyTypeObject PyLogType; + +int log_object_init(void); +PyObject *pylog_new(void *log); +#define pylog_check(op) PyObject_TypeCheck(op, &PyLogType) + +#endif |