flush
[m6w6/ext-pq] / src / php_pqconn_event.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_PQCONN_EVENT_H
15 #define PHP_PQCONN_EVENT_H
16
17 #include <libpq-events.h>
18
19 #include "php_pqconn.h"
20
21 typedef struct php_pqconn_event_data {
22 php_pqconn_object_t *obj;
23 } php_pqconn_event_data_t;
24
25 extern php_pqconn_event_data_t *php_pqconn_event_data_init(php_pqconn_object_t *obj);
26 extern void php_pqconn_notice_recv(void *p, const PGresult *res);
27 extern void php_pqconn_notice_ignore(void *p, const PGresult *res);
28 extern int php_pqconn_event(PGEventId id, void *e, void *data);
29
30 #endif
31
32 /*
33 * Local variables:
34 * tab-width: 4
35 * c-basic-offset: 4
36 * End:
37 * vim600: noet sw=4 ts=4 fdm=marker
38 * vim<600: noet sw=4 ts=4
39 */