LibreOffice Module onlineupdate (master) 1
win_dirent.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* vim:set ts=2 sw=2 sts=2 et cindent: */
3/* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7#ifndef WINDIRENT_H__
8#define WINDIRENT_H__
9#ifdef _WIN32
10#include <windows.h>
11
12struct DIR
13{
14 explicit DIR(const WCHAR* path);
15 ~DIR();
16 HANDLE findHandle;
17 WCHAR name[MAX_PATH];
18};
19
20struct dirent
21{
22 dirent();
23 WCHAR d_name[MAX_PATH];
24};
25
26DIR* opendir(const WCHAR* path);
27int closedir(DIR* dir);
28dirent* readdir(DIR* dir);
29
30#endif // WNT
31#endif // WINDIRENT_H__
#define MAX_PATH
const char * name