]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: cleanup header file
authorKarel Zak <kzak@redhat.com>
Fri, 30 Aug 2013 08:46:37 +0000 (10:46 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Sep 2013 14:47:08 +0000 (16:47 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdisk.c
fdisks/fdisk.h

index 45df92906de55568da92e485fd0e885b594c9f13..a71815b04bba1ff792b251a9c58c8438a51c1781 100644 (file)
@@ -44,6 +44,8 @@
 # include <linux/blkpg.h>
 #endif
 
+#include "fdisk.h"
+
 static void __attribute__ ((__noreturn__)) usage(FILE *out)
 {
        fputs(USAGE_HEADER, out);
index 05721bbd843ff4f1b0d4589480bd4896bbd88919..a416f2c2533273d44cee4d5dee50c7326e833aba 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef UTIL_LINUX_FDISK_H
+#define UTIL_LINUX_FDISK_H
 /*
    fdisk.h
 */
@@ -32,6 +34,9 @@ extern int ask_callback(struct fdisk_context *cxt, struct fdisk_ask *ask,
 
 /* prototypes for fdisk.c */
 extern void list_partition_types(struct fdisk_context *cxt);
+extern void list_disk_geometry(struct fdisk_context *cxt);
+extern void print_raw(struct fdisk_context *cxt);
+extern void change_partition_type(struct fdisk_context *cxt);
 extern struct fdisk_parttype *ask_partition_type(struct fdisk_context *cxt);
 extern void reread_partition_table(struct fdisk_context *cxt, int leave);
 
@@ -40,3 +45,4 @@ extern int warn_geometry(struct fdisk_context *cxt);
 extern void toggle_dos_compatibility_flag(struct fdisk_context *cxt);
 extern void warn_limits(struct fdisk_context *cxt);
 
+#endif /* UTIL_LINUX_FDISK_H */