summaryrefslogtreecommitdiff
path: root/parted/ui.h
diff options
context:
space:
mode:
authorAnant Narayanan <anant@kix.in>2006-09-14 15:18:45 +0000
committerAnant Narayanan <anant@kix.in>2006-09-14 15:18:45 +0000
commit232dbda915dfcfec99e5983b7f53d57d4498a6aa (patch)
tree4d54060e75f7f2df07de6e83004551b610ac9865 /parted/ui.h
downloadparted-232dbda915dfcfec99e5983b7f53d57d4498a6aa.tar.gz
Fix ChangeLog
git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@820 2d424fd7-7fe2-0310-af74-8bc65edeb173
Diffstat (limited to 'parted/ui.h')
-rw-r--r--parted/ui.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/parted/ui.h b/parted/ui.h
new file mode 100644
index 0000000..3ea0acb
--- /dev/null
+++ b/parted/ui.h
@@ -0,0 +1,83 @@
+/*
+ parted - a frontend to libparted
+ Copyright (C) 1999, 2000, 2001 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
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+*/
+
+#ifndef UI_H_INCLUDED
+#define UI_H_INCLUDED
+
+#include "strlist.h"
+
+extern char* prog_name;
+
+extern int init_ui ();
+extern int non_interactive_mode (PedDevice** dev, Command* cmd_list[],
+ int argc, char* argv[]);
+extern int interactive_mode (PedDevice** dev, Command* cmd_list[]);
+extern void done_ui ();
+
+extern int screen_width ();
+extern void wipe_line ();
+
+extern void command_line_push_word (const char* word);
+extern char* command_line_pop_word ();
+extern char* command_line_peek_word ();
+extern void command_line_flush ();
+extern int command_line_get_word_count ();
+extern void command_line_prompt_words (const char* prompt, const char* def,
+ const StrList* possibilities,
+ int multi_word);
+extern char* command_line_get_word (const char* prompt, const char* def,
+ const StrList* possibilities,
+ 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);
+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_partition (const char* prompt, PedDisk* disk,
+ PedPartition** value);
+extern int command_line_get_fs_type (const char* prompt,
+ const PedFileSystemType*(* value));
+extern int command_line_get_disk_type (const char* prompt,
+ const PedDiskType*(* value));
+extern int command_line_get_part_flag (const char* prompt,
+ const PedPartition* part,
+ PedPartitionFlag* flag);
+extern int command_line_get_part_type (const char* prompt, const PedDisk* disk,
+ PedPartitionType* type);
+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_is_integer ();
+extern int command_line_is_sector ();
+
+extern void help_msg ();
+
+extern void print_using_dev (PedDevice* dev);
+
+/* in parted.c */
+extern int opt_script_mode;
+
+extern void print_options_help ();
+extern void print_commands_help ();
+
+
+#endif /* UI_H_INCLUDED */
+