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

#include <Python.h>
#include "window-item-object.h"

/* forward */
struct _QUERY_REC;

typedef struct
{
    PyWindowItem_HEAD(struct _QUERY_REC)
} PyQuery;

extern PyTypeObject PyQueryType;

int query_object_init(void); 
PyObject *pyquery_new(void *query);
#define pyquery_check(op) PyObject_TypeCheck(op, &PyQueryType)

#endif