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