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

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

/* forward */
struct PROCESS_REC;

typedef struct
{
    PyIrssiFinal_HEAD(struct PROCESS_REC)
    PyObject *target_win;
} PyProcess;

extern PyTypeObject PyProcessType;

int process_object_init(void);
PyObject *pyprocess_new(void *process);
#define pyprocess_check(op) PyObject_TypeCheck(op, &PyProcessType)

#endif