]>
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
27 UL_DEBUG_DECLARE_MASK(fdisk
);
28 #define DBG(m, x) __UL_DBG(fdisk, FDISKPROG_DEBUG_, m, x)
29 #define ON_DBG(m, x) __UL_DBG_CALL(fdisk, FDISKPROG_DEBUG_, m, x)
31 extern int get_user_reply(struct fdisk_context
*cxt
,
33 char *buf
, size_t bufsz
);
34 extern int process_fdisk_menu(struct fdisk_context
**cxt
);
36 extern int ask_callback(struct fdisk_context
*cxt
, struct fdisk_ask
*ask
,
37 void *data
__attribute__((__unused__
)));
39 extern int print_partition_info(struct fdisk_context
*cxt
);
41 /* prototypes for fdisk.c */
42 extern void dump_firstsector(struct fdisk_context
*cxt
);
43 extern void dump_disklabel(struct fdisk_context
*cxt
);
45 extern void list_partition_types(struct fdisk_context
*cxt
);
46 extern void change_partition_type(struct fdisk_context
*cxt
);
48 extern void toggle_dos_compatibility_flag(struct fdisk_context
*cxt
);
50 #endif /* UTIL_LINUX_FDISK_H */