Merge pull request #932 from danslo/libevent
[hiphop-php.git] / hphp / runtime / base / php_stream_wrapper.h
blobb97c8e26ffbca5809c4949230e5406ab77bef6e9
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 2.00 of the Zend license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.zend.com/license/2_00.txt. |
12 | If you did not receive a copy of the Zend license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@zend.com so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
17 #ifndef HPHP_PHP_STREAM_WRAPPER_H
18 #define HPHP_PHP_STREAM_WRAPPER_H
20 #include "hphp/runtime/base/types.h"
21 #include "hphp/runtime/base/file.h"
22 #include "hphp/runtime/base/stream_wrapper.h"
24 namespace HPHP {
25 ///////////////////////////////////////////////////////////////////////////////
27 class PhpStreamWrapper : public Stream::Wrapper {
28 public:
29 File *openFD(const char *sFD);
30 virtual File* open(CStrRef filename, CStrRef mode,
31 int options, CVarRef context);
34 ///////////////////////////////////////////////////////////////////////////////
37 #endif // HPHP_PHP_STREAM_WRAPPER_H