michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:set ts=2 sw=2 sts=2 et cindent: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef WINDIRENT_H__ michael@0: #define WINDIRENT_H__ michael@0: michael@0: #ifndef XP_WIN michael@0: #error This library should only be used on Windows michael@0: #endif michael@0: michael@0: #include michael@0: michael@0: struct DIR { michael@0: explicit DIR(const WCHAR* path); michael@0: ~DIR(); michael@0: HANDLE findHandle; michael@0: WCHAR name[MAX_PATH]; michael@0: }; michael@0: michael@0: struct dirent { michael@0: dirent(); michael@0: WCHAR d_name[MAX_PATH]; michael@0: }; michael@0: michael@0: DIR* opendir(const WCHAR* path); michael@0: int closedir(DIR* dir); michael@0: dirent* readdir(DIR* dir); michael@0: michael@0: #endif // WINDIRENT_H__