OSDN Git Service

build: update gnulib submodule to latest
[android-x86/external-parted.git] / parted / ui.h
index 6fb039a..14ba380 100644 (file)
@@ -1,6 +1,6 @@
 /*
     parted - a frontend to libparted
-    Copyright (C) 1999-2001, 2007-2009 Free Software Foundation, Inc.
+    Copyright (C) 1999-2001, 2007-2011 Free Software Foundation, Inc.
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 
 #include "strlist.h"
 
+enum AlignmentType
+  {
+    PA_MINIMUM = 1,
+    PA_OPTIMUM
+  };
+
 extern const char *prog_name;
 
 extern int init_ui ();
@@ -46,10 +52,11 @@ extern char* command_line_get_word (const char* prompt, const char* def,
                                    int multi_word);
 extern int command_line_get_integer (const char* prompt, int* value);
 extern int command_line_get_sector (const char* prompt, PedDevice* dev,
-                                   PedSector* value, PedGeometry** range);
+                                   PedSector* value, PedGeometry** range, char** raw_input);
 extern int command_line_get_state (const char* prompt, int* value);
 extern int command_line_get_device (const char* prompt, PedDevice** value);
-extern int command_line_get_disk (const char* prompt, PedDisk** value);
+extern int command_line_get_disk (const char* prompt, PedDisk** value)
+  __attribute__((__nonnull__(2)));
 extern int command_line_get_partition (const char* prompt, PedDisk* disk,
                                       PedPartition** value);
 extern int command_line_get_fs_type (const char* prompt,
@@ -64,6 +71,8 @@ extern int command_line_get_part_type (const char* prompt, const PedDisk* disk,
 extern PedExceptionOption command_line_get_ex_opt (const char* prompt,
                                                   PedExceptionOption options);
 extern int command_line_get_unit (const char* prompt, PedUnit* unit);
+extern int command_line_get_align_type (const char *prompt,
+                                       enum AlignmentType *align_type);
 
 extern int command_line_is_integer ();
 extern int command_line_is_sector ();
@@ -79,5 +88,4 @@ extern int    pretend_input_tty;
 extern void print_options_help ();
 extern void print_commands_help ();
 
-
 #endif /* UI_H_INCLUDED */