c56049de045e12a45d7d2bc8b9a65f3607adc26e
[m6w6/ext-pq] / src / php_pqlob.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_PQLOB_H
15 #define PHP_PQLOB_H
16
17 #include "php_pqtxn.h"
18
19 typedef struct php_pqlob {
20 int lofd;
21 Oid loid;
22 php_stream *stream;
23 php_pqtxn_object_t *txn;
24 } php_pqlob_t;
25
26 typedef struct php_pqlob_object {
27 php_pqlob_t *intern;
28 HashTable *prophandler;
29 zend_object zo;
30 } php_pqlob_object_t;
31
32 extern zend_class_entry *php_pqlob_class_entry;
33 extern php_pqlob_object_t *php_pqlob_create_object_ex(zend_class_entry *ce, php_pqlob_t *intern);
34
35 extern PHP_MINIT_FUNCTION(pqlob);
36 extern PHP_MSHUTDOWN_FUNCTION(pqlob);
37
38 #endif
39
40 /*
41 * Local variables:
42 * tab-width: 4
43 * c-basic-offset: 4
44 * End:
45 * vim600: noet sw=4 ts=4 fdm=marker
46 * vim<600: noet sw=4 ts=4
47 */