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

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

/* forward */
struct _IGNORE_REC;

typedef struct
{
    PyIrssiFinal_HEAD(struct _IGNORE_REC)
} PyIgnore;

extern PyTypeObject PyIgnoreType;

int ignore_object_init(void);
PyObject *pyignore_new(void *ignore);
#define pyignore_check(op) PyObject_TypeCheck(op, &PyIgnoreType)

#endif