1N/A/*
1N/A parted - a frontend to libparted
1N/A Copyright (C) 1999-2001, 2007-2010 Free Software Foundation, Inc.
1N/A
1N/A This program is free software; you can redistribute it and/or modify
1N/A it under the terms of the GNU General Public License as published by
1N/A the Free Software Foundation; either version 3 of the License, or
1N/A (at your option) any later version.
1N/A
1N/A This program is distributed in the hope that it will be useful,
1N/A but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A GNU General Public License for more details.
1N/A
1N/A You should have received a copy of the GNU General Public License
1N/A along with this program. If not, see <http://www.gnu.org/licenses/>.
1N/A*/
1N/A
1N/A#ifndef UI_H_INCLUDED
1N/A#define UI_H_INCLUDED
1N/A
1N/A#include "strlist.h"
1N/A
1N/A#ifdef __sun
1N/A#define __attribute__(X) /*nothing*/
1N/A#endif /* __sun */
1N/A
1N/Aenum AlignmentType
1N/A {
1N/A PA_MINIMUM = 1,
1N/A PA_OPTIMUM
1N/A };
1N/A
1N/Aextern const char *prog_name;
1N/A
1N/Aextern int init_ui ();
1N/Aextern int init_readline ();
1N/Aextern int non_interactive_mode (PedDevice** dev, Command* cmd_list[],
1N/A int argc, char* argv[]);
1N/Aextern int interactive_mode (PedDevice** dev, Command* cmd_list[]);
1N/Aextern void done_ui ();
1N/A
1N/Aextern int screen_width ();
1N/Aextern void wipe_line ();
1N/A
1N/Aextern void command_line_push_word (const char* word);
1N/Aextern char* command_line_pop_word ();
1N/Aextern char* command_line_peek_word ();
1N/Aextern void command_line_flush ();
1N/Aextern int command_line_get_word_count ();
1N/Aextern void command_line_prompt_words (const char* prompt, const char* def,
1N/A const StrList* possibilities,
1N/A int multi_word);
1N/Aextern char* command_line_get_word (const char* prompt, const char* def,
1N/A const StrList* possibilities,
1N/A int multi_word);
1N/Aextern int command_line_get_integer (const char* prompt, int* value);
1N/Aextern int command_line_get_sector (const char* prompt, PedDevice* dev,
1N/A PedSector* value, PedGeometry** range);
1N/Aextern int command_line_get_state (const char* prompt, int* value);
1N/Aextern int command_line_get_device (const char* prompt, PedDevice** value);
1N/Aextern int command_line_get_disk (const char* prompt, PedDisk** value)
1N/A __attribute__((__nonnull__(2)));
1N/Aextern int command_line_get_partition (const char* prompt, PedDisk* disk,
1N/A PedPartition** value);
1N/Aextern int command_line_get_fs_type (const char* prompt,
1N/A const PedFileSystemType*(* value));
1N/Aextern int command_line_get_disk_type (const char* prompt,
1N/A const PedDiskType*(* value));
1N/Aextern int command_line_get_part_flag (const char* prompt,
1N/A const PedPartition* part,
1N/A PedPartitionFlag* flag);
1N/Aextern int command_line_get_part_type (const char* prompt, const PedDisk* disk,
1N/A PedPartitionType* type);
1N/Aextern PedExceptionOption command_line_get_ex_opt (const char* prompt,
1N/A PedExceptionOption options);
1N/Aextern int command_line_get_unit (const char* prompt, PedUnit* unit);
1N/Aextern int command_line_get_align_type (const char *prompt,
1N/A enum AlignmentType *align_type);
1N/A
1N/Aextern int command_line_is_integer ();
1N/Aextern int command_line_is_sector ();
1N/A
1N/Aextern void help_msg ();
1N/A
1N/Aextern void print_using_dev (PedDevice* dev);
1N/A
1N/A/* in parted.c */
1N/Aextern int opt_script_mode;
1N/Aextern int pretend_input_tty;
1N/A
1N/Aextern void print_options_help ();
1N/Aextern void print_commands_help ();
1N/A
1N/A#endif /* UI_H_INCLUDED */