1 /*
2  * src/pl/plpython/plpy_cursorobject.h
3  */
4 
5 #ifndef PLPY_CURSOROBJECT_H
6 #define PLPY_CURSOROBJECT_H
7 
8 #include "plpy_typeio.h"
9 
10 
11 typedef struct PLyCursorObject
12 {
13 	PyObject_HEAD
14 	char	   *portalname;
15 	PLyTypeInfo result;
16 	bool		closed;
17 	MemoryContext mcxt;
18 } PLyCursorObject;
19 
20 extern void PLy_cursor_init_type(void);
21 extern PyObject *PLy_cursor(PyObject *self, PyObject *args);
22 
23 #endif   /* PLPY_CURSOROBJECT_H */
24