2 +--------------------------------------------------------------------+
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 +--------------------------------------------------------------------+
14 #ifndef PHP_PQCONN_EVENT_H
15 #define PHP_PQCONN_EVENT_H
17 #include <libpq-events.h>
19 #include "php_pqconn.h"
20 #include "php_pqres.h"
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
;
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
);
39 * vim600: noet sw=4 ts=4 fdm=marker
40 * vim<600: noet sw=4 ts=4