fix package.xml
[m6w6/ext-pq] / src / php_pqcur.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_PQCUR_H
14 #define PHP_PQCUR_H
15
16 #include "php_pqconn.h"
17
18 #define PHP_PQ_DECLARE_BINARY 0x01
19 #define PHP_PQ_DECLARE_INSENSITIVE 0x02
20 #define PHP_PQ_DECLARE_WITH_HOLD 0x04
21
22 #define PHP_PQ_DECLARE_SCROLL 0x10
23 #define PHP_PQ_DECLARE_NO_SCROLL 0x20
24
25 typedef struct php_pqcur {
26 php_pqconn_object_t *conn;
27 char *name;
28 char *decl;
29 unsigned open:1;
30 } php_pqcur_t;
31
32 typedef struct php_pqcur_object {
33 zend_object zo;
34 zend_object_value zv;
35 HashTable *prophandler;
36 php_pqcur_t *intern;
37 } php_pqcur_object_t;
38
39 zend_class_entry *php_pqcur_class_entry;
40 zend_object_value php_pqcur_create_object_ex(zend_class_entry *ce, php_pqcur_t *intern, php_pqcur_object_t **ptr TSRMLS_DC);
41
42 PHP_MINIT_FUNCTION(pqcur);
43 PHP_MSHUTDOWN_FUNCTION(pqcur);
44
45 #endif
46
47 /*
48 * Local variables:
49 * tab-width: 4
50 * c-basic-offset: 4
51 * End:
52 * vim600: noet sw=4 ts=4 fdm=marker
53 * vim<600: noet sw=4 ts=4
54 */