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:
tu_file.h
dsodefs.h
_
#define _(String)
Definition: log.h:44
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
utility.h
gnash::log_error
void log_error(StringType msg, Args... args)
Definition: log.h:283
gnash::makeFileChannel
std::unique_ptr< IOChannel > makeFileChannel(const char *filepath, const char *mode)
Creates an IOChannel by opening the given file in the given mode.
Definition: tu_file.cpp:251
GnashFileUtilities.h
gnash::amf::write
void write(SimpleBuffer &buf, const std::string &str)
Write a string to an AMF buffer.
Definition: AMF.cpp:161
gnash::key::p
@ p
Definition: GnashKey.h:162
log.h
gnash::makeFileChannel
std::unique_ptr< IOChannel > makeFileChannel(FILE *fp, bool close)
Creates an IOChannel wrapper around a C stream.
Definition: tu_file.cpp:244
DSOEXPORT
#define DSOEXPORT
Definition: dsodefs.h:55
gnash::key::u
@ u
Definition: GnashKey.h:167
IOChannel.h