diff options
Diffstat (limited to 'objects/query-object.h')
-rw-r--r-- | objects/query-object.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/objects/query-object.h b/objects/query-object.h new file mode 100644 index 0000000..844ce55 --- /dev/null +++ b/objects/query-object.h @@ -0,0 +1,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 |