+++ /dev/null
-#ifndef FDISK_GPT_H
-#define FDISK_GPT_H
-
-extern void gpt_list_table(struct fdisk_context *cxt, int xtra);
-
-#endif /* FDISK_GPT_H */
extern int fdisk_probe_labels(struct fdisk_context *cxt);
extern void fdisk_deinit_label(struct fdisk_label *lb);
+
+/* gpt.c -- temporary bypass library API... */
+extern void gpt_list_table(struct fdisk_context *cxt, int xtra);
+
#endif /* _LIBFDISK_PRIVATE_H */
#include <ctype.h>
#include <uuid.h>
+#include "fdiskP.h"
+
#include "nls.h"
#include "xalloc.h"
-#include "common.h"
-#include "fdisk.h"
#include "crc32.h"
-#include "gpt.h"
#include "blkdev.h"
#include "bitops.h"
#include "strutils.h"
#include "all-io.h"
+/* temporary -- exported from fdisk/sfdisk.c
+ * TODO: use fdisk_dialog API
+ */
+extern unsigned int read_int(struct fdisk_context *cxt,
+ unsigned int low, unsigned int dflt,
+ unsigned int high, unsigned int base, char *mesg);
+
+extern unsigned int read_int_with_suffix(struct fdisk_context *cxt,
+ unsigned int low, unsigned int dflt, unsigned int high,
+ unsigned int base, char *mesg, int *is_suffix_used);
+
#define GPT_HEADER_SIGNATURE 0x5452415020494645LL /* EFI PART */
#define GPT_HEADER_REVISION_V1_02 0x00010200
#define GPT_HEADER_REVISION_V1_00 0x00010000