Changeset 6c8d267 in mainline for uspace/srv/fs/fat/fat_fat.h


Ignore:
Timestamp:
2008-11-09T14:12:20Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
913a821c
Parents:
24d6efc
Message:

Simplify the fat_cluster_walk() interface.
Introduce the bn_t type for holding block offsets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_fat.h

    r24d6efc r6c8d267  
    3636#include "../../vfs/vfs.h"
    3737#include <stdint.h>
     38#include <libblock.h>
    3839
    3940#define FAT1            0
     
    5960
    6061#define fat_clusters_get(bs, dh, fc) \
    61     fat_cluster_walk((bs), (dh), (fc), NULL, NULL, (uint16_t) -1)
    62 #define fat_block_get(bs, np, off) \
    63     _fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (off))
     62    fat_cluster_walk((bs), (dh), (fc), NULL, (uint16_t) -1)
     63extern uint16_t fat_cluster_walk(struct fat_bs *, dev_handle_t, fat_cluster_t,
     64    fat_cluster_t *, uint16_t);
     65
     66#define fat_block_get(bs, np, bn) \
     67    _fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (bn))
    6468
    6569extern struct block *_fat_block_get(struct fat_bs *, dev_handle_t,
    66     fat_cluster_t, off_t);
    67 extern uint16_t fat_cluster_walk(struct fat_bs *, dev_handle_t, fat_cluster_t,
    68     fat_cluster_t *, fat_cluster_t *, uint16_t);
     70    fat_cluster_t, bn_t);
    6971 
    7072extern void fat_append_clusters(struct fat_bs *, struct fat_node *,
Note: See TracChangeset for help on using the changeset viewer.