summaryrefslogtreecommitdiff
path: root/libparted/tests/common.h
diff options
context:
space:
mode:
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2016-12-04 17:12:45 +0100
committerBrian C. Lane <bcl@redhat.com>2016-12-22 17:02:20 -0800
commit5f9b0a24607ad645dc0a685934521d4571f7dcf0 (patch)
tree69f9875d7a741051b16810260ae8351e1c1c9458 /libparted/tests/common.h
parent5a9a49776ee98ca86cfe123b79bbee2279f93961 (diff)
downloadparted-5f9b0a24607ad645dc0a685934521d4571f7dcf0.tar.gz
libparted:tests: Move get_sector_size() to common.c
Moving get_sector_size() from disk.c to common.c allows us to use it in _implemented_disk_label() to test for 512-byte sectors. This change is required to be able to enable this test for atari partition tables for which support is added in a follow-up patch. Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Signed-off-by: Brian C. Lane <bcl@redhat.com>
Diffstat (limited to 'libparted/tests/common.h')
-rw-r--r--libparted/tests/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libparted/tests/common.h b/libparted/tests/common.h
index 1b1c801..5d7485e 100644
--- a/libparted/tests/common.h
+++ b/libparted/tests/common.h
@@ -1,5 +1,10 @@
#include <parted/parted.h>
+/* Determine sector size from environment
+ *
+ */
+size_t get_sector_size (void);
+
/* Create an empty disk image
*
* filename: file (with full path) where to write the disk image