summaryrefslogtreecommitdiff
path: root/main/streams/php_stream_userspace.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-02-18 01:22:21 +0000
committerWez Furlong <wez@php.net>2003-02-18 01:22:21 +0000
commit32165a5546fc54ba31f25550fa105365c9e454c4 (patch)
tree1d65a847d6caf46c9c9119b1291c0fc57ecf6435 /main/streams/php_stream_userspace.h
parent0fd1009fcc040048123abe9658d4d3e8b86c3c20 (diff)
downloadphp-git-32165a5546fc54ba31f25550fa105365c9e454c4.tar.gz
Implement new filter API, stage 1.
This breaks user-space filters (for the time being), and those weird convert.* filters in ext/standard/filters.c The filters stack has been separated into one chain for read and one chain for write. The user-space stream_filter_append() type functions currently only operate on the read chain. They need extending to work with the write chain too.
Diffstat (limited to 'main/streams/php_stream_userspace.h')
-rw-r--r--main/streams/php_stream_userspace.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/streams/php_stream_userspace.h b/main/streams/php_stream_userspace.h
new file mode 100644
index 0000000000..a57a418102
--- /dev/null
+++ b/main/streams/php_stream_userspace.h
@@ -0,0 +1,35 @@
+/*
+ +----------------------------------------------------------------------+
+ | PHP Version 4 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997-2003 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 2.02 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available at through the world-wide-web at |
+ | http://www.php.net/license/2_02.txt. |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Author: Wez Furlong (wez@thebrainroom.com) |
+ +----------------------------------------------------------------------+
+ */
+
+/* $Id$ */
+
+
+/* for user-space streams */
+PHPAPI extern php_stream_ops php_stream_userspace_ops;
+PHPAPI extern php_stream_ops php_stream_userspace_dir_ops;
+#define PHP_STREAM_IS_USERSPACE &php_stream_userspace_ops
+#define PHP_STREAM_IS_USERSPACE_DIR &php_stream_userspace_dir_ops
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */