summaryrefslogtreecommitdiffstats
path: root/src/objects/netsplit-server-object.h
blob: f1d5fbfbbcdb88f0571058a099c5b27f8474d06d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _NETSPLIT_SERVER_OBJECT_H_
#define _NETSPLIT_SERVER_OBJECT_H_

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

typedef struct
{
    PyIrssiFinal_HEAD(void)
} PyNetsplitServer;

extern PyTypeObject PyNetsplitServerType;

int netsplit_server_object_init(void);
PyObject *pynetsplit_server_new(void *nss);
#define pynetsplit_server_check(op) PyObject_TypeCheck(op, &PyNetsplitServerType)

#endif