split source
[m6w6/ext-pq] / src / php_pqtypes.h
diff --git a/src/php_pqtypes.h b/src/php_pqtypes.h
new file mode 100644 (file)
index 0000000..55398f5
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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_PQTYPES_H
+#define PHP_PQTYPES_H
+
+#include "php_pqconn.h"
+
+typedef struct php_pqtypes {
+       HashTable types;
+       php_pqconn_object_t *conn;
+} php_pqtypes_t;
+
+typedef struct php_pqtypes_object {
+       zend_object zo;
+       zend_object_value zv;
+       HashTable *prophandler;
+       php_pqtypes_t *intern;
+} php_pqtypes_object_t;
+
+zend_class_entry *php_pqtypes_class_entry;
+zend_object_value php_pqtypes_create_object_ex(zend_class_entry *ce, php_pqtypes_t *intern, php_pqtypes_object_t **ptr TSRMLS_DC);
+
+PHP_MINIT_FUNCTION(pqtypes);
+
+#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
+ */