Added browse_root(void)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@415 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
dbf60ee358
commit
523f228bbe
2 changed files with 7 additions and 1 deletions
|
@ -22,15 +22,20 @@
|
||||||
#include <lcd.h>
|
#include <lcd.h>
|
||||||
#include <button.h>
|
#include <button.h>
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
|
#include "tree.h"
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
|
|
||||||
#define TREE_MAX_LEN 15
|
#define TREE_MAX_LEN 15
|
||||||
#define TREE_MAX_ON_SCREEN 7
|
#define TREE_MAX_ON_SCREEN 7
|
||||||
|
|
||||||
int dircursor=0;
|
int dircursor=0;
|
||||||
|
|
||||||
|
void browse_root(void) {
|
||||||
|
dirbrowse("/");
|
||||||
|
}
|
||||||
|
|
||||||
bool dirbrowse(char *root)
|
bool dirbrowse(char *root)
|
||||||
{
|
{
|
||||||
DIR *dir = opendir(root);
|
DIR *dir = opendir(root);
|
||||||
|
|
|
@ -17,4 +17,5 @@
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
void browse_root(void);
|
||||||
bool dirbrowse(char *root);
|
bool dirbrowse(char *root);
|
||||||
|
|
Loading…
Reference in a new issue