finish port
[m6w6/ext-pq] / src / php_pqcancel.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_PQCANCEL_H
15 #define PHP_PQCANCEL_H
16
17 #include "php_pqconn.h"
18
19 typedef struct php_pqcancel {
20 PGcancel *cancel;
21 php_pqconn_object_t *conn;
22 } php_pqcancel_t;
23
24 typedef struct php_pqcancel_object {
25 PHP_PQ_OBJ_DECL(php_pqcancel_t *)
26 } php_pqcancel_object_t;
27
28 extern zend_class_entry *php_pqcancel_class_entry;
29 extern php_pqcancel_object_t *php_pqcancel_create_object_ex(zend_class_entry *ce, php_pqcancel_t *intern);
30
31 extern PHP_MINIT_FUNCTION(pqcancel);
32 extern PHP_MSHUTDOWN_FUNCTION(pqcancel);
33
34 #endif
35
36 /*
37 * Local variables:
38 * tab-width: 4
39 * c-basic-offset: 4
40 * End:
41 * vim600: noet sw=4 ts=4 fdm=marker
42 * vim<600: noet sw=4 ts=4
43 */