1 /*
   2     libparted
   3     Copyright (C) 1998, 1999, 2000, 2007 Free Software Foundation, Inc.
   4 
   5     This program is free software; you can redistribute it and/or modify
   6     it under the terms of the GNU General Public License as published by
   7     the Free Software Foundation; either version 3 of the License, or
   8     (at your option) any later version.
   9 
  10     This program is distributed in the hope that it will be useful,
  11     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13     GNU General Public License for more details.
  14 
  15     You should have received a copy of the GNU General Public License
  16     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17 */
  18 
  19 #ifndef FATIO_H_INCLUDED
  20 #define FATIO_H_INCLUDED
  21 
  22 #include "fat.h"
  23 
  24 extern int fat_read_fragments (PedFileSystem* fs, char* buf, FatFragment frag,
  25                                FatFragment count);
  26 extern int fat_write_fragments (PedFileSystem* fs, char* buf, FatFragment frag,
  27                                 FatFragment count);
  28 extern int fat_write_sync_fragments (PedFileSystem* fs, char* buf,
  29                                      FatFragment frag, FatFragment count);
  30 
  31 extern int fat_read_fragment (PedFileSystem* fs, char* buf, FatFragment frag);
  32 extern int fat_write_fragment (PedFileSystem* fs, char* buf, FatFragment frag);
  33 extern int fat_write_sync_fragment (PedFileSystem* fs, char* buf,
  34                                     FatFragment frag);
  35 
  36 extern int fat_read_clusters (PedFileSystem* fs, char* buf, FatCluster cluster,
  37                               FatCluster count);
  38 extern int fat_write_clusters (PedFileSystem* fs, char* buf, FatCluster cluster,
  39                                FatCluster count);
  40 extern int fat_write_sync_clusters (PedFileSystem* fs, char* buf,
  41                                     FatCluster cluster, FatCluster count);
  42 
  43 extern int fat_read_cluster (PedFileSystem* fs, char *buf, FatCluster cluster);
  44 extern int fat_write_cluster (PedFileSystem* fs, char *buf, FatCluster cluster);
  45 extern int fat_write_sync_cluster (PedFileSystem* fs, char *buf,
  46                                    FatCluster cluster);
  47 
  48 #endif /* FATIO_H_INCLUDED */