Merge branch 'v1.0.x'
[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 } php_pq_params_t;
28
29 extern php_pq_params_t *php_pq_params_init(HashTable *conv, HashTable *oids, HashTable *params);
30 extern void php_pq_params_free(php_pq_params_t **p);
31 extern unsigned php_pq_params_set_params(php_pq_params_t *p, HashTable *params);
32 extern unsigned php_pq_params_set_type_oids(php_pq_params_t *p, HashTable *oids);
33 extern unsigned php_pq_params_add_type_oid(php_pq_params_t *p, Oid type);
34 extern unsigned php_pq_params_add_param(php_pq_params_t *p, zval *param);
35 extern void php_pq_params_set_type_conv(php_pq_params_t *p, HashTable *conv);
36
37 #endif
38
39 /*
40 * Local variables:
41 * tab-width: 4
42 * c-basic-offset: 4
43 * End:
44 * vim600: noet sw=4 ts=4 fdm=marker
45 * vim<600: noet sw=4 ts=4
46 */