better checks for json support
[m6w6/ext-pq] / src / php_pqstm.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_PQSTM_H
15 #define PHP_PQSTM_H
16
17 #include "php_pqconn.h"
18
19 typedef struct php_pqstm {
20 php_pqconn_object_t *conn;
21 char *name;
22 HashTable bound;
23 php_pq_params_t *params;
24 } php_pqstm_t;
25
26 typedef struct php_pqstm_object {
27 zend_object zo;
28 zend_object_value zv;
29 HashTable *prophandler;
30 php_pqstm_t *intern;
31 } php_pqstm_object_t;
32
33 zend_class_entry *php_pqstm_class_entry;
34 zend_object_value php_pqstm_create_object_ex(zend_class_entry *ce, php_pqstm_t *intern, php_pqstm_object_t **ptr TSRMLS_DC);
35
36 PHP_MINIT_FUNCTION(pqstm);
37 PHP_MSHUTDOWN_FUNCTION(pqstm);
38
39 #endif
40
41 /*
42 * Local variables:
43 * tab-width: 4
44 * c-basic-offset: 4
45 * End:
46 * vim600: noet sw=4 ts=4 fdm=marker
47 * vim<600: noet sw=4 ts=4
48 */