1 /*
2  * src/pl/plpython/plpy_planobject.h
3  */
4 
5 #ifndef PLPY_PLANOBJECT_H
6 #define PLPY_PLANOBJECT_H
7 
8 #include "executor/spi.h"
9 #include "plpy_typeio.h"
10 
11 
12 typedef struct PLyPlanObject
13 {
14 	PyObject_HEAD
15 	SPIPlanPtr	plan;
16 	int			nargs;
17 	Oid		   *types;
18 	Datum	   *values;
19 	PLyObToDatum *args;
20 	MemoryContext mcxt;
21 } PLyPlanObject;
22 
23 extern void PLy_plan_init_type(void);
24 extern PyObject *PLy_plan_new(void);
25 extern bool is_PLyPlanObject(PyObject *ob);
26 
27 #endif							/* PLPY_PLANOBJECT_H */
28