Subversion Repositories freemyipod

Rev

Rev 57 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 57 Rev 58
Line 20... Line 20...
20
 ****************************************************************************/
20
 ****************************************************************************/
21
#ifndef __DIR_H__
21
#ifndef __DIR_H__
22
#define __DIR_H__
22
#define __DIR_H__
23
 
23
 
24
#include "global.h"
24
#include "global.h"
-
 
25
#include "thread.h"
25
#include "file.h"
26
#include "file.h"
26
 
27
 
27
#define ATTR_READ_ONLY   0x01
28
#define ATTR_READ_ONLY   0x01
28
#define ATTR_HIDDEN      0x02
29
#define ATTR_HIDDEN      0x02
29
#define ATTR_SYSTEM      0x04
30
#define ATTR_SYSTEM      0x04
Line 46... Line 47...
46
typedef struct {
47
typedef struct {
47
    bool busy;
48
    bool busy;
48
    long startcluster;
49
    long startcluster;
49
    struct fat_dir fatdir;
50
    struct fat_dir fatdir;
50
    struct dirent theent;
51
    struct dirent theent;
-
 
52
    struct scheduler_thread* process;
51
#ifdef HAVE_MULTIVOLUME
53
#ifdef HAVE_MULTIVOLUME
52
    int volumecounter; /* running counter for faked volume entries */
54
    int volumecounter; /* running counter for faked volume entries */
53
#endif
55
#endif
54
} DIR;
56
} DIR;
55
 
57
 
Line 61... Line 63...
61
    int strip_volume(const char*, char*);
63
    int strip_volume(const char*, char*);
62
#endif
64
#endif
63
 
65
 
64
extern DIR* opendir(const char* name);
66
extern DIR* opendir(const char* name);
65
extern int closedir(DIR* dir);
67
extern int closedir(DIR* dir);
-
 
68
extern int closedir_all_of_process(struct scheduler_thread* process);
66
extern int mkdir(const char* name);
69
extern int mkdir(const char* name);
67
extern int rmdir(const char* name);
70
extern int rmdir(const char* name);
68
 
71
 
69
extern struct dirent* readdir(DIR* dir);
72
extern struct dirent* readdir(DIR* dir);
70
 
73