nrelease - fix/improve livecd
[dragonfly.git] / usr.sbin / installer / dfuibe_installer / flow.h
CommitLineData
337ad0df
DH
1/*
2 * Copyright (c)2004 The DragonFly Project. All rights reserved.
21c1c48a 3 *
337ad0df
DH
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
21c1c48a 7 *
337ad0df
DH
8 * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
21c1c48a 10 *
337ad0df
DH
11 * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in
13 * the documentation and/or other materials provided with the
14 * distribution.
21c1c48a 15 *
337ad0df
DH
16 * Neither the name of the DragonFly Project nor the names of its
17 * contributors may be used to endorse or promote products derived
21c1c48a
SW
18 * from this software without specific prior written permission.
19 *
337ad0df
DH
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24 * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
21c1c48a 31 * OF THE POSSIBILITY OF SUCH DAMAGE.
337ad0df
DH
32 */
33
34/*
35 * flow.h
36 * $Id: flow.h,v 1.10 2005/03/20 18:40:40 den Exp $
37 */
38
39#ifndef __FLOW_H_
40#define __FLOW_H_
41
d2acd9e7 42#define DISK_MIN 4096
344b24ad
SW
43#define HAMMER_WARN 51200
44#define HAMMER_MIN 10240
337ad0df 45
f9602a12
MD
46#define SWAP_MIN 256 /* suggested minimum */
47#define SWAP_MAX 524288
48#define BUILD_MIN 10240 /* suggested */
49#define BUILD_MAX 20480 /* suggested */
337ad0df
DH
50
51struct i_fn_args;
14825f9d
SW
52
53extern int use_hammer; /* 0=UFS 1=HAMMER 2=HAMMER2 */
54extern int use_uefi;
55extern int during_install;
56
337ad0df
DH
57/*** PROTOTYPES ***/
58
59/* Menus */
60
61#ifdef ENABLE_NLS
62void state_lang_menu(struct i_fn_args *);
63#endif
64void state_welcome(struct i_fn_args *);
65void state_welcome_system(struct i_fn_args *);
66void state_configure_menu(struct i_fn_args *);
67void state_utilities_menu(struct i_fn_args *);
68
69void state_environment_menu(struct i_fn_args *);
70void state_diagnostics_menu(struct i_fn_args *);
71void state_diskutil_menu(struct i_fn_args *);
72
73/* Install */
74
75void state_begin_install(struct i_fn_args *);
76void state_begin_upgrade(struct i_fn_args *);
7b1aa074 77void state_ask_uefi(struct i_fn_args *);
337ad0df 78void state_select_disk(struct i_fn_args *);
971d1cca 79void state_ask_fs(struct i_fn_args *);
337ad0df
DH
80void state_format_disk(struct i_fn_args *);
81void state_select_slice(struct i_fn_args *);
82void state_create_subpartitions(struct i_fn_args *);
83void state_install_os(struct i_fn_args *);
84void state_install_bootstrap(struct i_fn_args *);
85void state_finish_install(struct i_fn_args *);
86void state_reboot(struct i_fn_args *);
87void state_setup_remote_installation_server(struct i_fn_args *);
88
89/* Entry Point */
90
c4d6eff4 91int flow(int, char *, char *, int);
337ad0df
DH
92
93#endif /* !__FLOW_H_ */