v0.5.3
[m6w6/ext-pq] / src / php_pq_params.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 #ifndef PHP_PQ_PARAMS_H
14 #define PHP_PQ_PARAMS_H
15
16 typedef struct php_pq_params {
17 struct {
18 HashTable conv;
19 unsigned count;
20 Oid *oids;
21 } type;
22 struct {
23 HashTable dtor;
24 unsigned count;
25 char **strings;
26 } param;
27 #ifdef ZTS
28 void ***ts;
29 #endif
30 } php_pq_params_t;
31
32 php_pq_params_t *php_pq_params_init(HashTable *conv, HashTable *oids, HashTable *params TSRMLS_DC);
33 void php_pq_params_free(php_pq_params_t **p);
34 unsigned php_pq_params_set_params(php_pq_params_t *p, HashTable *params);
35 unsigned php_pq_params_set_type_oids(php_pq_params_t *p, HashTable *oids);
36 unsigned php_pq_params_add_type_oid(php_pq_params_t *p, Oid type);
37 unsigned php_pq_params_add_param(php_pq_params_t *p, zval *param);
38 void php_pq_params_set_type_conv(php_pq_params_t *p, HashTable *conv);
39
40
41 #endif
42
43 /*
44 * Local variables:
45 * tab-width: 4
46 * c-basic-offset: 4
47 * End:
48 * vim600: noet sw=4 ts=4 fdm=marker
49 * vim<600: noet sw=4 ts=4
50 */