fix fetchCol to return true/false and pass value int pass-by-ref param
[m6w6/ext-pq] / src / php_pqtypes.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: pq |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2013, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13
14 #ifndef PHP_PQTYPES_H
15 #define PHP_PQTYPES_H
16
17 #include "php_pqconn.h"
18
19 typedef struct php_pqtypes {
20 HashTable types;
21 php_pqconn_object_t *conn;
22 } php_pqtypes_t;
23
24 typedef struct php_pqtypes_object {
25 zend_object zo;
26 zend_object_value zv;
27 HashTable *prophandler;
28 php_pqtypes_t *intern;
29 } php_pqtypes_object_t;
30
31 zend_class_entry *php_pqtypes_class_entry;
32 zend_object_value php_pqtypes_create_object_ex(zend_class_entry *ce, php_pqtypes_t *intern, php_pqtypes_object_t **ptr TSRMLS_DC);
33
34 PHP_MINIT_FUNCTION(pqtypes);
35
36 #endif
37
38 /*
39 * Local variables:
40 * tab-width: 4
41 * c-basic-offset: 4
42 * End:
43 * vim600: noet sw=4 ts=4 fdm=marker
44 * vim<600: noet sw=4 ts=4
45 */