Gnash  0.8.11dev
tu_file.h
Go to the documentation of this file.
1 // tu_file.h -- Ignacio Castaņo, Thatcher Ulrich 2003
2 
3 // This source code has been donated to the Public Domain. Do
4 // whatever you want with it.
5 
6 // A very generic file class that can be customized with callbacks.
7 
8 
9 #ifndef TU_FILE_H
10 #define TU_FILE_H
11 
12 #include <cstdio>
13 #include <memory>
14 #include "dsodefs.h"
15 
16 namespace gnash {
17  class IOChannel;
18 }
19 
20 namespace gnash {
21 
24 //
28 DSOEXPORT std::auto_ptr<IOChannel> makeFileChannel(FILE* fp, bool close);
29 
32 //
39 DSOEXPORT std::auto_ptr<IOChannel> makeFileChannel(const char* filepath, const char* mode);
40 
41 } // namespace gnash
42 #endif
43 
44 // Local Variables:
45 // mode: C++
46 // indent-tabs-mode: t
47 // End: