type converters
[m6w6/ext-pq] / src / php_pqres.h
index 80a3d44391eef0bb4f7671ca59e32add6a9f0b7e..9786249757818b889132685bf3f93fc720d66224 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef PHP_PQRES_H
 #define PHP_PQRES_H
 
+#include "php_pqconn.h"
 typedef enum php_pqres_fetch {
        PHP_PQRES_FETCH_ARRAY,
        PHP_PQRES_FETCH_ASSOC,
@@ -31,6 +32,7 @@ typedef struct php_pqres {
        PGresult *res;
        php_pqres_iterator_t *iter;
        HashTable bound;
+       HashTable converters;
 } php_pqres_t;
 
 typedef struct php_pqres_object {
@@ -41,7 +43,7 @@ typedef struct php_pqres_object {
 } php_pqres_object_t;
 
 STATUS php_pqres_success(PGresult *res TSRMLS_DC);
-void php_pqres_init_instance_data(PGresult *res, php_pqres_object_t **ptr TSRMLS_DC);
+void php_pqres_init_instance_data(PGresult *res, php_pqconn_object_t *obj, php_pqres_object_t **ptr TSRMLS_DC);
 zval *php_pqres_row_to_zval(PGresult *res, unsigned row, php_pqres_fetch_t fetch_type, zval **data_ptr TSRMLS_DC);
 
 #include "php_pq_object.h"
@@ -59,6 +61,7 @@ zend_class_entry *php_pqres_class_entry;
 zend_object_value php_pqres_create_object_ex(zend_class_entry *ce, php_pqres_t *intern, php_pqres_object_t **ptr TSRMLS_DC);
 
 PHP_MINIT_FUNCTION(pqres);
+PHP_MSHUTDOWN_FUNCTION(pqres);
 
 #endif