mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
RaaA: Move directory related stuff from filesystem-unix.c into rbpaths.c.
Part of this change is to align sdlapp builds to other application targets in that the sim_* wrappers are not used anymore (except for sim_read/write). Path mangling is now done in rbpaths.c as well. Change-Id: I9726da73b50a83d9e1a1840288de16ec01ea029d
This commit is contained in:
parent
cbc57af0f3
commit
0f928f8785
10 changed files with 216 additions and 357 deletions
|
|
@ -1,48 +0,0 @@
|
|||
/***************************************************************************
|
||||
* __________ __ ___.
|
||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
* \/ \/ \/ \/ \/
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (C) 2010 by Thomas Martitz
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
* KIND, either express or implied.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __DIR_TARGET_H__
|
||||
#define __DIR_TARGET_H__
|
||||
|
||||
#include <dirent.h>
|
||||
/* including unistd.h is too noisy */
|
||||
extern int rmdir(const char* name);
|
||||
|
||||
|
||||
#define dirent_uncached dirent
|
||||
#define DIR_UNCACHED DIR
|
||||
#define opendir_uncached _opendir
|
||||
#define readdir_uncached _readdir
|
||||
#define closedir_uncached _closedir
|
||||
#define mkdir_uncached _mkdir
|
||||
#define rmdir_uncached rmdir
|
||||
|
||||
extern DIR* _opendir(const char* name);
|
||||
extern int _mkdir(const char* name);
|
||||
extern int _rmdir(const char* name);
|
||||
extern int _closedir(DIR* dir);
|
||||
extern struct dirent *_readdir(DIR* dir);
|
||||
|
||||
#define DIRFUNCTIONS_DEFINED
|
||||
#define DIRENT_DEFINED
|
||||
#define DIR_DEFINED
|
||||
|
||||
#endif /* __DIR_TARGET_H__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue