2013-08-30 03:46:37 -05:00
|
|
|
#ifndef UTIL_LINUX_FDISK_H
|
|
|
|
#define UTIL_LINUX_FDISK_H
|
2006-12-06 17:25:33 -06:00
|
|
|
/*
|
|
|
|
fdisk.h
|
|
|
|
*/
|
|
|
|
|
2009-10-15 18:26:46 -05:00
|
|
|
#include "c.h"
|
|
|
|
|
2012-11-30 08:29:03 -06:00
|
|
|
/* Let's temporary include private libfdisk header file. The final libfdisk.h
|
|
|
|
* maybe included when fdisk.c and libfdisk code will be completely spit.
|
|
|
|
*/
|
|
|
|
#include "fdiskP.h"
|
2013-06-25 09:14:23 -05:00
|
|
|
#include "blkdev.h"
|
2013-09-02 03:54:30 -05:00
|
|
|
#include "colors.h"
|
2012-11-30 08:29:03 -06:00
|
|
|
|
2013-05-21 08:06:11 -05:00
|
|
|
extern int get_user_reply(struct fdisk_context *cxt,
|
|
|
|
const char *prompt,
|
|
|
|
char *buf, size_t bufsz);
|
2013-07-10 07:17:58 -05:00
|
|
|
extern int process_fdisk_menu(struct fdisk_context **cxt);
|
2013-05-17 08:11:11 -05:00
|
|
|
|
2013-01-28 09:16:11 -06:00
|
|
|
extern int ask_callback(struct fdisk_context *cxt, struct fdisk_ask *ask,
|
|
|
|
void *data __attribute__((__unused__)));
|
|
|
|
|
2006-12-06 17:25:33 -06:00
|
|
|
/* prototypes for fdisk.c */
|
2013-09-03 10:36:35 -05:00
|
|
|
extern void dump_firstsector(struct fdisk_context *cxt);
|
|
|
|
extern void dump_disklabel(struct fdisk_context *cxt);
|
|
|
|
|
2012-09-24 06:24:09 -05:00
|
|
|
extern void list_partition_types(struct fdisk_context *cxt);
|
2013-08-30 03:46:37 -05:00
|
|
|
extern void list_disk_geometry(struct fdisk_context *cxt);
|
2013-12-18 03:38:43 -06:00
|
|
|
extern void list_disklabel(struct fdisk_context *cxt);
|
2013-08-30 03:46:37 -05:00
|
|
|
extern void change_partition_type(struct fdisk_context *cxt);
|
2013-06-12 10:09:28 -05:00
|
|
|
extern struct fdisk_parttype *ask_partition_type(struct fdisk_context *cxt);
|
2006-12-06 17:25:43 -06:00
|
|
|
|
2013-06-25 08:55:02 -05:00
|
|
|
extern void toggle_dos_compatibility_flag(struct fdisk_context *cxt);
|
2006-12-06 17:25:39 -06:00
|
|
|
|
2013-08-30 03:46:37 -05:00
|
|
|
#endif /* UTIL_LINUX_FDISK_H */
|