Changeset 4f1c0b4 in mainline for uspace/srv/fs/fat/fat_fat.h


Ignore:
Timestamp:
2008-11-05T22:28:54Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9d20ea8
Parents:
8334a427
Message:

Extend _fat_blcks_get() to fat_cluster_walk(). Use fat_cluster_walk() to
implement fat_clusters_get() and _fat_block_get().

File:
1 edited

Legend:

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

    r8334a427 r4f1c0b4  
    5858typedef uint16_t fat_cluster_t;
    5959
     60#define fat_clusters_get(bs, dh, fc) \
     61    fat_cluster_walk((bs), (dh), (fc), NULL, NULL, (uint16_t) -1)
    6062#define fat_block_get(bs, np, off) \
    6163    _fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (off))
    62    
     64
    6365extern struct block *_fat_block_get(struct fat_bs *, dev_handle_t,
    6466    fat_cluster_t, off_t);
    65 extern uint16_t _fat_blcks_get(struct fat_bs *, dev_handle_t, fat_cluster_t,
    66     fat_cluster_t *);
     67extern uint16_t fat_cluster_walk(struct fat_bs *, dev_handle_t, fat_cluster_t,
     68    fat_cluster_t *, fat_cluster_t *, uint16_t);
    6769 
    6870extern void fat_append_clusters(struct fat_bs *, struct fat_node *,
Note: See TracChangeset for help on using the changeset viewer.