2023-04-20 16:25:05 +02:00
|
|
|
#ifndef FSCTL_FUGUE_BITS_DIR_H
|
|
|
|
#define FSCTL_FUGUE_BITS_DIR_H 1
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "fsctl/fugue/bits/fs.h"
|
|
|
|
|
2023-04-21 12:49:06 +02:00
|
|
|
/* fugue_dirent : Fugue directory abstraction */
|
|
|
|
struct fugue_dirent
|
2023-04-20 16:25:05 +02:00
|
|
|
{
|
|
|
|
/* middle-level information */
|
|
|
|
uintptr_t current_dir_addr;
|
|
|
|
uintptr_t cluster_addr_start;
|
|
|
|
uintptr_t cluster_addr_end;
|
|
|
|
uint32_t cluster_idx;
|
|
|
|
|
|
|
|
/* low-level information */
|
|
|
|
struct {
|
|
|
|
fugue_fs_t fs;
|
2023-04-21 18:55:54 +02:00
|
|
|
int lfn_prev_idx;
|
2023-04-20 16:25:05 +02:00
|
|
|
} _private;
|
|
|
|
|
|
|
|
};
|
2023-04-21 12:49:06 +02:00
|
|
|
typedef struct fugue_dirent fugue_dirent_t;
|
2023-04-20 16:25:05 +02:00
|
|
|
|
|
|
|
#endif /* FSCTL_FUGUE_BITS_DIR_H */
|