moar tests
[m6w6/ext-pq] / src / php_pq_callback.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_CALLBACK_H
14 #define PHP_PQ_CALLBACK_H
15
16 #include <Zend/zend_interfaces.h>
17
18 typedef struct php_pq_callback {
19 zend_fcall_info fci;
20 zend_fcall_info_cache fcc;
21 void *data;
22 } php_pq_callback_t;
23
24 void php_pq_callback_dtor(php_pq_callback_t *cb);
25 void php_pq_callback_addref(php_pq_callback_t *cb);
26 zval *php_pq_callback_to_zval(php_pq_callback_t *cb);
27
28 #endif
29
30 /*
31 * Local variables:
32 * tab-width: 4
33 * c-basic-offset: 4
34 * End:
35 * vim600: noet sw=4 ts=4 fdm=marker
36 * vim<600: noet sw=4 ts=4
37 */