wfut  0.2.4
A client side C++ implementation of WFUT (WorldForge Update Tool).
platform.h
1 // This file may be redistributed and modified only under the terms of
2 // the GNU Lesser General Public License (See COPYING for details).
3 // Copyright (C) 2007 Simon Goodall
4 
5 #ifndef LIBWFUT_PLATFORM_H
6 #define LIBWFUT_PLATFORM_H 1
7 
8 #include <string>
9 #include <list>
10 
11 namespace WFUT {
12 
13 FILE *os_create_tmpfile();
14 void os_free_tmpfile(FILE *fp);
15 
16 int os_mkdir(const std::string &dir);
17 bool os_exists(const std::string &file);
18 int os_set_executable(const std::string &file);
19 int os_dir_walk(const std::string &path, const std::list<std::string> &excludes, std::list<std::string> &files);
20 
21 } /* namespace WFUT */
22 
23 #endif /* LIBWFUT_PLATFORM_H */