Deleted Added
full compact
sade.h (156118) sade.h (156123)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last attempt in the `sysinstall' line, the next
5 * generation being slated to essentially a complete rewrite.
6 *
7 * Copyright (c) 1995
8 * Jordan Hubbard. All rights reserved.

--- 16 unchanged lines hidden (view full) ---

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last attempt in the `sysinstall' line, the next
5 * generation being slated to essentially a complete rewrite.
6 *
7 * Copyright (c) 1995
8 * Jordan Hubbard. All rights reserved.

--- 16 unchanged lines hidden (view full) ---

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $FreeBSD: head/usr.sbin/sade/sade.h 156118 2006-02-28 20:29:43Z jhb $
33 * $FreeBSD: head/usr.sbin/sade/sade.h 156123 2006-02-28 21:49:33Z jhb $
34 */
35
36#ifndef _SYSINSTALL_H_INCLUDE
37#define _SYSINSTALL_H_INCLUDE
38
39#include <sys/types.h>
40#include <sys/wait.h>
41#include <errno.h>

--- 221 unchanged lines hidden (view full) ---

263 int maxlen; /* How much the user can type in ... */
264 char *prompt; /* The string for the prompt */
265 char *help; /* The display for the help line */
266 void *var; /* The var to set when this changes */
267 int type; /* The type of the dialog to create */
268 void *obj; /* The obj pointer returned by libdialog */
269} Layout;
270
34 */
35
36#ifndef _SYSINSTALL_H_INCLUDE
37#define _SYSINSTALL_H_INCLUDE
38
39#include <sys/types.h>
40#include <sys/wait.h>
41#include <errno.h>

--- 221 unchanged lines hidden (view full) ---

263 int maxlen; /* How much the user can type in ... */
264 char *prompt; /* The string for the prompt */
265 char *help; /* The display for the help line */
266 void *var; /* The var to set when this changes */
267 int type; /* The type of the dialog to create */
268 void *obj; /* The obj pointer returned by libdialog */
269} Layout;
270
271/* Layout array terminator. */
272#define LAYOUT_END { 0, 0, 0, 0, NULL, NULL, NULL, 0, NULL }
273
271typedef enum {
272 DEVICE_TYPE_NONE,
273 DEVICE_TYPE_DISK,
274 DEVICE_TYPE_FLOPPY,
275 DEVICE_TYPE_FTP,
276 DEVICE_TYPE_NETWORK,
277 DEVICE_TYPE_CDROM,
278 DEVICE_TYPE_TAPE,

--- 71 unchanged lines hidden (view full) ---

350
351/* An option */
352typedef struct _opt {
353 char *name;
354 char *desc;
355 enum { OPT_IS_STRING, OPT_IS_INT, OPT_IS_FUNC, OPT_IS_VAR } type;
356 void *data;
357 void *aux;
274typedef enum {
275 DEVICE_TYPE_NONE,
276 DEVICE_TYPE_DISK,
277 DEVICE_TYPE_FLOPPY,
278 DEVICE_TYPE_FTP,
279 DEVICE_TYPE_NETWORK,
280 DEVICE_TYPE_CDROM,
281 DEVICE_TYPE_TAPE,

--- 71 unchanged lines hidden (view full) ---

353
354/* An option */
355typedef struct _opt {
356 char *name;
357 char *desc;
358 enum { OPT_IS_STRING, OPT_IS_INT, OPT_IS_FUNC, OPT_IS_VAR } type;
359 void *data;
360 void *aux;
358 char *(*check)();
361 char *(*check)(struct _opt *);
359} Option;
360
361/* Weird index nodey things we use for keeping track of package information */
362typedef enum { PACKAGE, PLACE } node_type; /* Types of nodes */
363
364typedef struct _pkgnode { /* A node in the reconstructed hierarchy */
365 struct _pkgnode *next; /* My next sibling */
366 node_type type; /* What am I? */

--- 530 unchanged lines hidden ---
362} Option;
363
364/* Weird index nodey things we use for keeping track of package information */
365typedef enum { PACKAGE, PLACE } node_type; /* Types of nodes */
366
367typedef struct _pkgnode { /* A node in the reconstructed hierarchy */
368 struct _pkgnode *next; /* My next sibling */
369 node_type type; /* What am I? */

--- 530 unchanged lines hidden ---