Ian Elliott | 2d4ab1e | 2015-01-13 17:52:38 -0700 | [diff] [blame] | 1 | #ifndef DIRENT_INCLUDED |
| 2 | #define DIRENT_INCLUDED |
| 3 | |
| 4 | /* |
| 5 | |
| 6 | Declaration of POSIX directory browsing functions and types for Win32. |
| 7 | |
| 8 | Author: Kevlin Henney (kevlin@acm.org, kevlin@curbralan.com) |
| 9 | History: Created March 1997. Updated June 2003. |
| 10 | Rights: See end of file. |
Jon Ashburn | 23d36b1 | 2016-02-02 17:47:28 -0700 | [diff] [blame] | 11 | |
Ian Elliott | 2d4ab1e | 2015-01-13 17:52:38 -0700 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | #ifdef __cplusplus |
Jon Ashburn | 23d36b1 | 2016-02-02 17:47:28 -0700 | [diff] [blame] | 15 | extern "C" { |
Ian Elliott | 2d4ab1e | 2015-01-13 17:52:38 -0700 | [diff] [blame] | 16 | #endif |
| 17 | |
| 18 | typedef struct DIR DIR; |
| 19 | |
Jon Ashburn | 23d36b1 | 2016-02-02 17:47:28 -0700 | [diff] [blame] | 20 | struct dirent { |
Ian Elliott | 2d4ab1e | 2015-01-13 17:52:38 -0700 | [diff] [blame] | 21 | char *d_name; |
| 22 | }; |
| 23 | |
Jon Ashburn | 23d36b1 | 2016-02-02 17:47:28 -0700 | [diff] [blame] | 24 | DIR *opendir(const char *); |
| 25 | int closedir(DIR *); |
Ian Elliott | 2d4ab1e | 2015-01-13 17:52:38 -0700 | [diff] [blame] | 26 | struct dirent *readdir(DIR *); |
Jon Ashburn | 23d36b1 | 2016-02-02 17:47:28 -0700 | [diff] [blame] | 27 | void rewinddir(DIR *); |
Ian Elliott | 2d4ab1e | 2015-01-13 17:52:38 -0700 | [diff] [blame] | 28 | |
| 29 | /* |
| 30 | |
| 31 | Copyright Kevlin Henney, 1997, 2003. All rights reserved. |
Jon Ashburn | 23d36b1 | 2016-02-02 17:47:28 -0700 | [diff] [blame] | 32 | Copyright (c) 2015 The Khronos Group Inc. |
| 33 | Copyright (c) 2015 Valve Corporation |
| 34 | Copyright (c) 2015 LunarG, Inc. |
Ian Elliott | 2d4ab1e | 2015-01-13 17:52:38 -0700 | [diff] [blame] | 35 | |
| 36 | Permission to use, copy, modify, and distribute this software and its |
| 37 | documentation for any purpose is hereby granted without fee, provided |
| 38 | that this copyright and permissions notice appear in all copies and |
| 39 | derivatives. |
Jon Ashburn | 23d36b1 | 2016-02-02 17:47:28 -0700 | [diff] [blame] | 40 | |
Ian Elliott | 2d4ab1e | 2015-01-13 17:52:38 -0700 | [diff] [blame] | 41 | This software is supplied "as is" without express or implied warranty. |
| 42 | |
| 43 | But that said, if there are any problems please get in touch. |
| 44 | |
| 45 | */ |
| 46 | |
| 47 | #ifdef __cplusplus |
| 48 | } |
| 49 | #endif |
| 50 | |
| 51 | #endif |