summaryrefslogtreecommitdiffstats
path: root/src/msdos.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-04-11 11:45:06 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-04-11 11:45:06 +0200
commitb62aab4cde8ec4b2296b40ab05014ee3e9c01854 (patch)
treeff0d8fa7651a23dda50d395248bcd234dd8cfd71 /src/msdos.h
parentef4cf90c9405b38b39ec1b033cd17e5a0f4eb65e (diff)
Reorganize how disk geometry, size and sector size is gathered
Diffstat (limited to 'src/msdos.h')
-rw-r--r--src/msdos.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/msdos.h b/src/msdos.h
new file mode 100644
index 0000000..a9bfdc6
--- /dev/null
+++ b/src/msdos.h
@@ -0,0 +1,32 @@
+/*
+
+ File: msdos.h
+
+ Copyright (C) 1998-2008 Christophe GRENIER <grenier@cgsecurity.org>
+
+ This software is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write the Free Software Foundation, Inc., 51
+ Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ */
+struct info_disk_struct
+{
+ unsigned int disk;
+ CHS_t CHSR; /* CHS low level */
+ int mode_enh;
+ int bad_geometry;
+};
+
+disk_t *hd_identify(const int verbose, const unsigned int disk, const arch_fnct_t *arch, const int testdisk_mode);
+const char *disk_description(disk_t *disk_car);
+