summaryrefslogtreecommitdiffstats
path: root/src/fat_cluster.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-02-20 14:03:59 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-02-20 14:03:59 +0100
commit9c85398217c0e9bd52afbe0d799394c05b13a6bf (patch)
tree0788571471cfd9bc691fd9f4ab88439267b6cab3 /src/fat_cluster.h
parent2801b7815b8091c482db498051eb43f3a8725ec6 (diff)
export find_sectors_per_cluster_aux()
Diffstat (limited to 'src/fat_cluster.h')
-rw-r--r--src/fat_cluster.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/fat_cluster.h b/src/fat_cluster.h
index 0a0483f..d648b4a 100644
--- a/src/fat_cluster.h
+++ b/src/fat_cluster.h
@@ -25,8 +25,26 @@
extern "C" {
#endif
+typedef struct sector_cluster_struct sector_cluster_t;
+typedef struct cluster_offset_struct cluster_offset_t;
+
+struct sector_cluster_struct
+{
+ unsigned int sector;
+ unsigned int cluster;
+};
+
+struct cluster_offset_struct
+{
+ unsigned int sectors_per_cluster;
+ unsigned long int offset;
+ unsigned int nbr;
+ unsigned int first_sol;
+};
+
int find_sectors_per_cluster(disk_t *disk_car, partition_t *partition, const int verbose, const int dump_ind,const int interface, unsigned int *sectors_per_cluster, uint64_t *offset);
upart_type_t no_of_cluster2part_type(const unsigned long int no_of_cluster);
+int find_sectors_per_cluster_aux(const sector_cluster_t *sector_cluster, const unsigned int nbr_sector_cluster,unsigned int *sectors_per_cluster, uint64_t *offset, const int verbose, const unsigned long int part_size_in_sectors);
#ifdef __cplusplus
} /* closing brace for extern "c" */