2002-05-01 10:36:54 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 by Daniel Stenberg <daniel@haxx.se>
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2003-06-29 16:43:15 +00:00
|
|
|
#ifndef _X11_DIR_H_
|
|
|
|
#define _X11_DIR_H_
|
2002-05-01 10:36:54 +00:00
|
|
|
|
2002-04-30 13:14:59 +00:00
|
|
|
#include <sys/types.h>
|
2002-05-07 12:25:30 +00:00
|
|
|
typedef void DIR;
|
2002-05-07 11:35:03 +00:00
|
|
|
|
|
|
|
#define DIRFUNCTIONS_DEFINED /* prevent those prototypes */
|
2002-05-07 12:25:30 +00:00
|
|
|
#define dirent x11_dirent
|
2003-02-07 10:10:17 +00:00
|
|
|
#include "../../firmware/include/dir.h"
|
2002-05-07 12:25:30 +00:00
|
|
|
#undef dirent
|
2002-05-07 11:35:03 +00:00
|
|
|
|
2002-05-07 12:25:30 +00:00
|
|
|
typedef void * MYDIR;
|
2002-05-07 12:06:32 +00:00
|
|
|
|
2004-04-20 11:08:07 +00:00
|
|
|
extern MYDIR *x11_opendir(const char *name);
|
2002-05-07 12:25:30 +00:00
|
|
|
extern struct x11_dirent* x11_readdir(MYDIR* dir);
|
2003-06-29 16:43:15 +00:00
|
|
|
extern int x11_closedir(MYDIR *dir);
|
2004-01-21 14:58:40 +00:00
|
|
|
extern int x11_mkdir(char *name, int mode);
|
2004-04-16 10:03:49 +00:00
|
|
|
extern int x11_rmdir(char *name);
|
2003-06-29 16:43:15 +00:00
|
|
|
|
|
|
|
#ifndef NO_REDEFINES_PLEASE
|
2002-05-07 12:06:32 +00:00
|
|
|
|
|
|
|
#define DIR MYDIR
|
2002-05-07 12:25:30 +00:00
|
|
|
#define dirent x11_dirent
|
|
|
|
#define opendir(x) x11_opendir(x)
|
|
|
|
#define readdir(x) x11_readdir(x)
|
|
|
|
#define closedir(x) x11_closedir(x)
|
2004-01-21 14:58:40 +00:00
|
|
|
#define mkdir(x, y) x11_mkdir(x, y)
|
2004-04-16 09:24:38 +00:00
|
|
|
#define rmdir(x) x11_rmdir(x)
|
2002-05-07 12:25:30 +00:00
|
|
|
|
2003-06-29 16:43:15 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|