7fdeb357030ab607d58b7cf5b056d19b62a4eb4f
[debian/tar] / gnu / dirent-private.h
1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* Private details of the DIR type.
4    Copyright (C) 2011-2013 Free Software Foundation, Inc.
5
6    This program is free software: you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 3 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
18
19 #ifndef _DIRENT_PRIVATE_H
20 #define _DIRENT_PRIVATE_H 1
21
22 #define WIN32_LEAN_AND_MEAN
23 #include <windows.h>
24
25 struct gl_directory
26 {
27   /* Status, or error code to produce in next readdir() call.
28      -2 means the end of the directory is already reached,
29      -1 means the entry was already filled by FindFirstFile,
30      0 means the entry needs to be filled using FindNextFile.
31      A positive value is an error code.  */
32   int status;
33   /* Handle, reading the directory, at current position.  */
34   HANDLE current;
35   /* Found directory entry.  */
36   WIN32_FIND_DATA entry;
37   /* Argument to pass to FindFirstFile.  It consists of the absolutized
38      directory name, followed by a directory separator and the wildcards.  */
39   char dir_name_mask[1];
40 };
41
42 #endif /* _DIRENT_PRIVATE_H */