fcca6f731a8f01277f95624a2fe03cc12fdf590f
[idzebra-moved-to-github.git] / include / direntz.h
1 /*
2  * Copyright (c) 1997-1999, Index Data.
3  * See the file LICENSE for details.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: direntz.h,v $
7  * Revision 1.6  2002-04-04 20:50:36  adam
8  * Multi register works with record paths and data1 profile path
9  *
10  * Revision 1.5  2002/04/04 14:14:13  adam
11  * Multiple registers (alpha early)
12  *
13  * Revision 1.4  1999/05/26 07:49:13  adam
14  * C++ compilation.
15  *
16  * Revision 1.3  1999/02/02 14:50:33  adam
17  * Updated WIN32 code specific sections. Changed header.
18  *
19  * Revision 1.2  1997/09/17 12:19:09  adam
20  * Zebra version corresponds to YAZ version 1.4.
21  * Changed Zebra server so that it doesn't depend on global common_resource.
22  *
23  * Revision 1.1  1997/09/09 13:38:03  adam
24  * Partial port to WIN95/NT.
25  *
26  *
27  */
28
29
30 #ifdef WIN32
31 /* make WIN32 version of dirent */
32 #include <windows.h>
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 struct dirent {
39     char d_name[MAX_PATH];
40 };
41
42 typedef struct DIR DIR;
43
44 DIR *opendir (const char *path);
45 struct dirent *readdir (DIR *dd);
46 void closedir (DIR *dd);
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #else
53 /* include UNIX version */
54 #include <dirent.h>
55 #endif
56