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