mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 19:43:37 +00:00

It is not a good idea to export these internal symbols now that they are not required to run the unit tests. Signed-off-by: Vicent Marti <tanoku@gmail.com>
42 lines
746 B
C
42 lines
746 B
C
#ifndef INCLUDE_dir_h__
|
|
#define INCLUDE_dir_h__
|
|
|
|
#include "common.h"
|
|
|
|
#ifndef GIT_WIN32
|
|
# include <dirent.h>
|
|
#endif
|
|
|
|
#ifdef GIT_WIN32
|
|
|
|
struct git__dirent {
|
|
int d_ino;
|
|
char d_name[261];
|
|
};
|
|
|
|
typedef struct {
|
|
HANDLE h;
|
|
WIN32_FIND_DATA f;
|
|
struct git__dirent entry;
|
|
char *dir;
|
|
int first;
|
|
} git__DIR;
|
|
|
|
extern git__DIR *git__opendir(const char *);
|
|
extern struct git__dirent *git__readdir(git__DIR *);
|
|
extern void git__rewinddir(git__DIR *);
|
|
extern int git__closedir(git__DIR *);
|
|
|
|
# ifndef GIT__WIN32_NO_WRAP_DIR
|
|
# define dirent git__dirent
|
|
# define DIR git__DIR
|
|
# define opendir git__opendir
|
|
# define readdir git__readdir
|
|
# define rewinddir git__rewinddir
|
|
# define closedir git__closedir
|
|
# endif
|
|
|
|
#endif
|
|
|
|
#endif /* INCLUDE_dir_h__ */
|