summaryrefslogtreecommitdiffstats
path: root/src/objects/rawlog-object.h
blob: d2a9a2deef7e3162a4b2bca2c625726c7d8c28b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _RAWLOG_OBJECT_H_
#define _RAWLOG_OBJECT_H_

#include <Python.h>
#include "base-objects.h"

/* forward */
struct _RAWLOG_REC;

typedef struct
{
    PyIrssiFinal_HEAD(struct _RAWLOG_REC)
    int owned;
} PyRawlog;

extern PyTypeObject PyRawlogType;

int rawlog_object_init(void);
PyObject *pyrawlog_new(void *rlog);
#define pyrawlog_check(op) PyObject_TypeCheck(op, &PyRawlogType)

#endif