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

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

typedef struct
{
    PyIrssiFinal_HEAD(void)
} PyCommand;

extern PyTypeObject PyCommandType;

int command_object_init(void);
PyObject *pycommand_new(void *command);
#define pycommand_check(op) PyObject_TypeCheck(op, &PyCommandType)

#endif