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::unique_ptr<IOChannel> makeFileChannel(FILE* fp, bool close);
29 
32 //
39 DSOEXPORT std::unique_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:
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
std::unique_ptr< IOChannel > makeFileChannel(FILE *fp, bool close)
Creates an IOChannel wrapper around a C stream.
Definition: tu_file.cpp:244
#define DSOEXPORT
Definition: dsodefs.h:55