finish port
[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 #include "php_pqres.h"
21
22 typedef struct php_pqconn_event_data {
23 php_pqconn_object_t *obj;
24 php_pqres_object_t *res;
25 } php_pqconn_event_data_t;
26
27 extern php_pqconn_event_data_t *php_pqconn_event_data_init(php_pqconn_object_t *obj);
28 extern void php_pqconn_notice_recv(void *p, const PGresult *res);
29 extern void php_pqconn_notice_ignore(void *p, const PGresult *res);
30 extern int php_pqconn_event(PGEventId id, void *e, void *data);
31
32 #endif
33
34 /*
35 * Local variables:
36 * tab-width: 4
37 * c-basic-offset: 4
38 * End:
39 * vim600: noet sw=4 ts=4 fdm=marker
40 * vim<600: noet sw=4 ts=4
41 */