mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-23 00:09:14 +01:00
60 lines
1.2 KiB
C
Executable File
60 lines
1.2 KiB
C
Executable File
|
|
#ifndef DIRENT_INCLUDED
|
|
#define DIRENT_INCLUDED
|
|
|
|
/*
|
|
|
|
Declaration of POSIX directory browsing functions and types for Win32.
|
|
|
|
Author: Kevlin Henney (kevlin@acm.org, kevlin@curbralan.com)
|
|
History: Created March 1997. Updated June 2003.
|
|
Rights: See end of file.
|
|
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
typedef struct DIR DIR;
|
|
|
|
//static int errno;
|
|
|
|
struct dirent
|
|
{
|
|
char *d_name;
|
|
};
|
|
|
|
DIR *opendir(const char *);
|
|
int closedir(DIR *);
|
|
struct dirent *readdir(DIR *);
|
|
void rewinddir(DIR *);
|
|
int scandir(
|
|
const char* dir,
|
|
struct dirent*** namelist,
|
|
int(*filter)(const struct dirent*),
|
|
int(*compar)(const void*, const void*) );
|
|
int alphasort(const void* lhs, const void* rhs);
|
|
|
|
/*
|
|
|
|
Copyright Kevlin Henney, 1997, 2003. All rights reserved.
|
|
|
|
Permission to use, copy, modify, and distribute this software and its
|
|
documentation for any purpose is hereby granted without fee, provided
|
|
that this copyright and permissions notice appear in all copies and
|
|
derivatives.
|
|
|
|
This software is supplied "as is" without express or implied warranty.
|
|
|
|
But that said, if there are any problems please get in touch.
|
|
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|