installer: Remove unused code to update /usr/src with cvsup.
[dragonfly.git] / usr.sbin / installer / dfuibe_installer / fn.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 * 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 *);
337ad0df
DH
58void fn_install_packages(struct i_fn_args *);
59void fn_remove_packages(struct i_fn_args *);
60void fn_select_services(struct i_fn_args *);
61
62int mount_target_system(struct i_fn_args *);
63
64/* Configure the LiveCD Environment -or- an Installed System */
65
66void fn_assign_datetime(struct i_fn_args *);
67void fn_set_timezone(struct i_fn_args *);
68void fn_set_kbdmap(struct i_fn_args *);
69void fn_set_vidfont(struct i_fn_args *);
70void fn_set_scrnmap(struct i_fn_args *);
71void fn_assign_hostname_domain(struct i_fn_args *);
72void fn_assign_ip(struct i_fn_args *);
73
74/* LiveCD Utilities: Diagnostics */
75
76void fn_show_dmesg(struct i_fn_args *);
77void fn_show_pciconf(struct i_fn_args *);
78void fn_show_pnpinfo(struct i_fn_args *);
04bf803f 79void fn_show_natacontrol(struct i_fn_args *);
337ad0df
DH
80void fn_memtest(struct i_fn_args *);
81
82void view_memtest_log(struct i_fn_args *);
83void show_ifconfig(struct dfui_connection *, char *);
84
85/* LiveCD Utilties: Disk Utilities */
86
87char *fn_select_file(const char *, const char *, const char *,
88 const char *, const char *, const char *,
89 const struct i_fn_args *);
90
91void fn_format_disk(struct i_fn_args *);
92void fn_install_bootblocks(struct i_fn_args *);
93void fn_wipe_start_of_disk(struct i_fn_args *);
94void fn_wipe_start_of_slice(struct i_fn_args *);
95void fn_format_msdos_floppy(struct i_fn_args *);
96void fn_create_cdboot_floppy(struct i_fn_args *);
97void fn_create_memtest86_floppy(struct i_fn_args *);
98
99int format_slice(struct i_fn_args *);
337ad0df 100
971d1cca
MS
101void fn_create_subpartitions_ufs(struct i_fn_args *);
102void fn_create_subpartitions_hammer(struct i_fn_args *);
337ad0df
DH
103void fn_install_os(struct i_fn_args *);
104
105/* Global variables */
106
107struct config_vars *rc_conf;
108
109#endif /* !__FN_H_ */