/*
parted - a frontend to libparted
Copyright (C) 1999-2001, 2007-2010 Free Software Foundation, Inc.
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef UI_H_INCLUDED
#define UI_H_INCLUDED
#include "strlist.h"
#ifdef __sun
#endif /* __sun */
enum AlignmentType
{
};
extern const char *prog_name;
extern int init_ui ();
extern int init_readline ();
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 ();
const StrList* possibilities,
int multi_word);
const StrList* possibilities,
int multi_word);
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,
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 ();
extern void help_msg ();
/* in parted.c */
extern int opt_script_mode;
extern int pretend_input_tty;
extern void print_options_help ();
extern void print_commands_help ();
#endif /* UI_H_INCLUDED */