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
11namespace WFUT {
12
13FILE *os_create_tmpfile();
14void os_free_tmpfile(FILE *fp);
15
16int os_mkdir(const std::string &dir);
17bool os_exists(const std::string &file);
18int os_set_executable(const std::string &file);
19int 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 */