Add HAMMER support to the installer
[dragonfly.git] / contrib / bsdinstaller-1.1.6 / src / backend / installer / fn.h
CommitLineData
337ad0df
DH
1/*
2 * Copyright (c)2004 The DragonFly Project. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
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.
15 *
16 * Neither the name of the DragonFly Project nor the names of its
17 * contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
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
31 * OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34/*
35 * fn.h
36 * $Id: fn.h,v 1.3 2005/02/07 06:46:20 cpressey Exp $
37 */
38
39#ifndef __FN_H_
40#define __FN_H_
41
bc3d4063
SW
42#include "libaura/dict.h"
43#include "libdfui/dfui.h"
337ad0df 44
bc3d4063 45#include "libinstaller/functions.h"
337ad0df
DH
46
47/*** PROTOTYPES ***/
48
49/* General fn_ functions */
50
51void fn_select_disk(struct i_fn_args *);
52void fn_select_slice(struct i_fn_args *);
53
54/* Configure an Installed System (only) */
55
56void fn_root_passwd(struct i_fn_args *);
57void fn_add_user(struct i_fn_args *);
58void fn_cvsup_sources(struct i_fn_args *);
59void fn_install_packages(struct i_fn_args *);
60void fn_remove_packages(struct i_fn_args *);
61void fn_select_services(struct i_fn_args *);
62
63int mount_target_system(struct i_fn_args *);
64
65/* Configure the LiveCD Environment -or- an Installed System */
66
67void fn_assign_datetime(struct i_fn_args *);
68void fn_set_timezone(struct i_fn_args *);
69void fn_set_kbdmap(struct i_fn_args *);
70void fn_set_vidfont(struct i_fn_args *);
71void fn_set_scrnmap(struct i_fn_args *);
72void fn_assign_hostname_domain(struct i_fn_args *);
73void fn_assign_ip(struct i_fn_args *);
74
75/* LiveCD Utilities: Diagnostics */
76
77void fn_show_dmesg(struct i_fn_args *);
78void fn_show_pciconf(struct i_fn_args *);
79void fn_show_pnpinfo(struct i_fn_args *);
80void fn_show_atacontrol(struct i_fn_args *);
81void fn_memtest(struct i_fn_args *);
82
83void view_memtest_log(struct i_fn_args *);
84void show_ifconfig(struct dfui_connection *, char *);
85
86/* LiveCD Utilties: Disk Utilities */
87
88char *fn_select_file(const char *, const char *, const char *,
89 const char *, const char *, const char *,
90 const struct i_fn_args *);
91
92void fn_format_disk(struct i_fn_args *);
93void fn_install_bootblocks(struct i_fn_args *);
94void fn_wipe_start_of_disk(struct i_fn_args *);
95void fn_wipe_start_of_slice(struct i_fn_args *);
96void fn_format_msdos_floppy(struct i_fn_args *);
97void fn_create_cdboot_floppy(struct i_fn_args *);
98void fn_create_memtest86_floppy(struct i_fn_args *);
99
100int format_slice(struct i_fn_args *);
101int autopacket(struct disk *);
102
103void fn_create_subpartitions(struct i_fn_args *);
971d1cca
MS
104void fn_create_subpartitions_ufs(struct i_fn_args *);
105void fn_create_subpartitions_hammer(struct i_fn_args *);
337ad0df
DH
106void fn_install_os(struct i_fn_args *);
107
108/* Global variables */
109
110struct config_vars *rc_conf;
111
112#endif /* !__FN_H_ */