split source
[m6w6/ext-pq] / src / php_pqconn_event.h
diff --git a/src/php_pqconn_event.h b/src/php_pqconn_event.h
new file mode 100644 (file)
index 0000000..85aeab4
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+    +--------------------------------------------------------------------+
+    | PECL :: pq                                                         |
+    +--------------------------------------------------------------------+
+    | Redistribution and use in source and binary forms, with or without |
+    | modification, are permitted provided that the conditions mentioned |
+    | in the accompanying LICENSE file are met.                          |
+    +--------------------------------------------------------------------+
+    | Copyright (c) 2013, Michael Wallner <mike@php.net>                |
+    +--------------------------------------------------------------------+
+*/
+
+
+#ifndef PHP_PQCONN_EVENT_H
+#define PHP_PQCONN_EVENT_H
+
+#include <libpq-events.h>
+
+#include "php_pqconn.h"
+
+typedef struct php_pqconn_event_data {
+       php_pqconn_object_t *obj;
+#ifdef ZTS
+       void ***ts;
+#endif
+} php_pqconn_event_data_t;
+
+php_pqconn_event_data_t *php_pqconn_event_data_init(php_pqconn_object_t *obj TSRMLS_DC);
+void php_pqconn_notice_recv(void *p, const PGresult *res);
+void php_pqconn_notice_ignore(void *p, const PGresult *res);
+int php_pqconn_event(PGEventId id, void *e, void *data);
+
+#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */