summaryrefslogtreecommitdiff
path: root/main/php_streams.h
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2011-05-25 21:03:55 +0000
committerStanislav Malyshev <stas@php.net>2011-05-25 21:03:55 +0000
commit5c9080d3a674d615debe704f621c42f01ff54ece (patch)
tree39af3b7437482b5b7b439e2930a35314c44a5a83 /main/php_streams.h
parent378cf70c818ae5e0ac33d08f23b54c5db34ea309 (diff)
downloadphp-git-5c9080d3a674d615debe704f621c42f01ff54ece.tar.gz
implement streams metadata API per RFC
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-xmain/php_streams.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/php_streams.h b/main/php_streams.h
index 444c2a038e..b87cf1b86e 100755
--- a/main/php_streams.h
+++ b/main/php_streams.h
@@ -154,6 +154,8 @@ typedef struct _php_stream_wrapper_ops {
/* Create/Remove directory */
int (*stream_mkdir)(php_stream_wrapper *wrapper, char *url, int mode, int options, php_stream_context *context TSRMLS_DC);
int (*stream_rmdir)(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *context TSRMLS_DC);
+ /* Metadata handling */
+ int (*stream_metadata)(php_stream_wrapper *wrapper, char *url, int options, void *value, php_stream_context *context TSRMLS_DC);
} php_stream_wrapper_ops;
struct _php_stream_wrapper {
@@ -590,6 +592,15 @@ END_EXTERN_C()
/* Definitions for user streams */
#define PHP_STREAM_IS_URL 1
+
+/* Stream metadata definitions */
+/* Create if referred resource does not exist */
+#define PHP_STREAM_META_TOUCH 1
+#define PHP_STREAM_META_OWNER_NAME 2
+#define PHP_STREAM_META_OWNER 3
+#define PHP_STREAM_META_GROUP_NAME 4
+#define PHP_STREAM_META_GROUP 5
+#define PHP_STREAM_META_ACCESS 6
/*
* Local variables:
* tab-width: 4