summaryrefslogtreecommitdiffstats
path: root/src/objects/log-object.h
blob: 9893bc545345cb5d8ad9feffef9b38f0b17347a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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