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"
21 typedef struct php_pqconn_event_data
{
22 php_pqconn_object_t
*obj
;
26 } php_pqconn_event_data_t
;
28 extern php_pqconn_event_data_t
*php_pqconn_event_data_init(php_pqconn_object_t
*obj TSRMLS_DC
);
29 extern void php_pqconn_notice_recv(void *p
, const PGresult
*res
);
30 extern void php_pqconn_notice_ignore(void *p
, const PGresult
*res
);
31 extern int php_pqconn_event(PGEventId id
, void *e
, void *data
);
40 * vim600: noet sw=4 ts=4 fdm=marker
41 * vim<600: noet sw=4 ts=4