Ignore:
File:
1 edited

Legend:

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

    rcca29e3c r5f116e7  
    5959typedef uint16_t fat_cluster_t;
    6060
    61 #define fat_clusters_get(numc, bs, dh, fc) \
    62     fat_cluster_walk((bs), (dh), (fc), NULL, (numc), (uint16_t) -1)
    63 extern int fat_cluster_walk(struct fat_bs *, dev_handle_t, fat_cluster_t,
    64     fat_cluster_t *, uint16_t *, uint16_t);
     61#define fat_clusters_get(bs, dh, fc) \
     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);
    6565
    66 #define fat_block_get(b, bs, np, bn, flags) \
    67     _fat_block_get((b), (bs), (np)->idx->dev_handle, (np)->firstc, (bn), \
    68     (flags))
     66#define fat_block_get(bs, np, bn, flags) \
     67    _fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (bn), (flags))
    6968
    70 extern int _fat_block_get(block_t **, struct fat_bs *, dev_handle_t,
     69extern struct block *_fat_block_get(struct fat_bs *, dev_handle_t,
    7170    fat_cluster_t, bn_t, int);
    7271 
    73 extern int fat_append_clusters(struct fat_bs *, struct fat_node *,
     72extern void fat_append_clusters(struct fat_bs *, struct fat_node *,
    7473    fat_cluster_t);
    75 extern int fat_chop_clusters(struct fat_bs *, struct fat_node *,
     74extern void fat_chop_clusters(struct fat_bs *, struct fat_node *,
    7675    fat_cluster_t);
    7776extern int fat_alloc_clusters(struct fat_bs *, dev_handle_t, unsigned,
    7877    fat_cluster_t *, fat_cluster_t *);
    79 extern int fat_free_clusters(struct fat_bs *, dev_handle_t, fat_cluster_t);
    80 extern int fat_alloc_shadow_clusters(struct fat_bs *, dev_handle_t,
     78extern void fat_free_clusters(struct fat_bs *, dev_handle_t, fat_cluster_t);
     79extern void fat_alloc_shadow_clusters(struct fat_bs *, dev_handle_t,
    8180    fat_cluster_t *, unsigned);
    82 extern int fat_get_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t,
    83     fat_cluster_t *);
    84 extern int fat_set_cluster(struct fat_bs *, dev_handle_t, unsigned,
     81extern fat_cluster_t fat_get_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t);
     82extern void fat_set_cluster(struct fat_bs *, dev_handle_t, unsigned,
    8583    fat_cluster_t, fat_cluster_t);
    86 extern int fat_fill_gap(struct fat_bs *, struct fat_node *, fat_cluster_t,
     84extern void fat_fill_gap(struct fat_bs *, struct fat_node *, fat_cluster_t,
    8785    off_t);
    88 extern int fat_zero_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t);
     86extern void fat_zero_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t);
    8987
    9088#endif
Note: See TracChangeset for help on using the changeset viewer.