]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - disk-utils/fdisk.h
1 #ifndef UTIL_LINUX_FDISK_H
2 #define UTIL_LINUX_FDISK_H
11 /* Let's temporary include private libfdisk header file. The final libfdisk.h
12 * maybe included when fdisk.c and libfdisk code will be completely spit.
19 #include "fdisk-list.h"
21 #define FDISKPROG_DEBUG_INIT (1 << 1)
22 #define FDISKPROG_DEBUG_MENU (1 << 3)
23 #define FDISKPROG_DEBUG_MISC (1 << 4)
24 #define FDISKPROG_DEBUG_ASK (1 << 5)
25 #define FDISKPROG_DEBUG_ALL 0xFFFF
29 UL_DEBUG_DECLARE_MASK(fdisk
);
30 #define DBG(m, x) __UL_DBG(fdisk, FDISKPROG_DEBUG_, m, x)
31 #define ON_DBG(m, x) __UL_DBG_CALL(fdisk, FDISKPROG_DEBUG_, m, x)
33 extern int get_user_reply(struct fdisk_context
*cxt
,
35 char *buf
, size_t bufsz
);
36 extern int process_fdisk_menu(struct fdisk_context
**cxt
);
38 extern int ask_callback(struct fdisk_context
*cxt
, struct fdisk_ask
*ask
,
39 void *data
__attribute__((__unused__
)));
41 extern int print_partition_info(struct fdisk_context
*cxt
);
43 /* prototypes for fdisk.c */
44 extern void dump_firstsector(struct fdisk_context
*cxt
);
45 extern void dump_disklabel(struct fdisk_context
*cxt
);
47 extern void list_partition_types(struct fdisk_context
*cxt
);
48 extern void change_partition_type(struct fdisk_context
*cxt
);
50 extern void toggle_dos_compatibility_flag(struct fdisk_context
*cxt
);
52 extern void follow_wipe_mode(struct fdisk_context
*cxt
);
54 #endif /* UTIL_LINUX_FDISK_H */