]> git.ipfire.org Git - thirdparty/util-linux.git/blame - disk-utils/fdisk.h
fixed mount man page typo, "bythe" -> "by the"
[thirdparty/util-linux.git] / disk-utils / fdisk.h
CommitLineData
fcd9a2a4
KZ
1#ifndef UTIL_LINUX_FDISK_H
2#define UTIL_LINUX_FDISK_H
726f69e2 3/*
e6d0c4c1
KZ
4 * fdisk.h
5 */
726f69e2 6
17d0d058 7#include "c.h"
e6d0c4c1
KZ
8#include <assert.h>
9#include <libfdisk.h>
17d0d058 10
f3744ac5
KZ
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.
13 */
bb58112e 14#include "blkdev.h"
80a1712f 15#include "colors.h"
e6d0c4c1
KZ
16#include "debug.h"
17#include "nls.h"
18
fdb006e8
KZ
19#include "fdisk-list.h"
20
e6d0c4c1
KZ
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
26
ba465623 27extern int pwipemode;
fadd8e08
KZ
28extern struct fdisk_table *original_layout;
29extern int device_is_used;
c1154128 30extern int is_interactive;
ba465623 31
e6d0c4c1
KZ
32UL_DEBUG_DECLARE_MASK(fdisk);
33#define DBG(m, x) __UL_DBG(fdisk, FDISKPROG_DEBUG_, m, x)
34#define ON_DBG(m, x) __UL_DBG_CALL(fdisk, FDISKPROG_DEBUG_, m, x)
f3744ac5 35
c1154128 36extern int get_user_reply(const char *prompt,
a410f8df 37 char *buf, size_t bufsz);
a47fec81 38extern int process_fdisk_menu(struct fdisk_context **cxt);
39f01b7b 39
416c43a9
KZ
40extern int ask_callback(struct fdisk_context *cxt, struct fdisk_ask *ask,
41 void *data __attribute__((__unused__)));
42
3e3b51b3
JLB
43extern int print_partition_info(struct fdisk_context *cxt);
44
726f69e2 45/* prototypes for fdisk.c */
e916600f
KZ
46extern void dump_firstsector(struct fdisk_context *cxt);
47extern void dump_disklabel(struct fdisk_context *cxt);
48
7b575fcc 49extern void list_partition_types(struct fdisk_context *cxt);
fcd9a2a4 50extern void change_partition_type(struct fdisk_context *cxt);
22853e4a 51
f02fecd1 52extern void toggle_dos_compatibility_flag(struct fdisk_context *cxt);
7eda085c 53
5635d195
KZ
54extern void follow_wipe_mode(struct fdisk_context *cxt);
55
fcd9a2a4 56#endif /* UTIL_LINUX_FDISK_H */