orphan
[debian/elilo] / vars.h
1 /*
2  *  Copyright (C) 2001-2003 Hewlett-Packard Co.
3  *      Contributed by Stephane Eranian <eranian@hpl.hp.com>
4  *
5  *  Copyright (C) 2001 Silicon Graphics, Inc.
6  *      Contributed by Brent Casavant <bcasavan@sgi.com>
7  *
8  * This file is part of the ELILO, the EFI Linux boot loader.
9  *
10  *  GNU EFI is free software; you can redistribute it and/or modify
11  *  it under the terms of the GNU General Public License as published by
12  *  the Free Software Foundation; either version 2, or (at your option)
13  *  any later version.
14  *
15  *  GNU EFI is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  *  GNU General Public License for more details.
19  *
20  *  You should have received a copy of the GNU General Public License
21  *  along with GNU EFI; see the file COPYING.  If not, write to the Free
22  *  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23  *  02111-1307, USA.
24  *
25  * Please check out the elilo.txt for complete documentation on how
26  * to use this program.
27  */
28
29 #ifndef __ELILO_VARS_H__
30 #define __ELILO_VARS_H__
31 /*
32  * This file contains the list of defined variables.
33  * It is expected that every module which uses a variable add its entry
34  * here.
35  * The syntax for the name is: VAR_modulename_meaning L'X'
36  * where:
37  *      - modulename: a string representing the module that uses the variable
38  *      - meaning   : a string representing the meaning of the variable for the module
39  *      - X         : the variable name [A-Za-z]
40  */
41
42 /* from glue_netfs.c */
43 #define VAR_NETFS_IPADDR        L'I'    /* the IP address obtained by DHCP/PXE */
44 #define VAR_NETFS_NETMASK       L'M'    /* the netmask obtained by DHCP/PXE */
45 #define VAR_NETFS_GATEWAY       L'G'    /* the gateway obtained by DHCP/PXE */
46 #define VAR_NETFS_HOSTNAME      L'H'    /* the hostname obtained by DHCP/PXE */
47 #define VAR_NETFS_DOMAINAME     L'D'    /* the domain name obtained by DHCP/PXE */
48
49 extern INTN set_var(CHAR16 v, CHAR16 *value);
50 extern CHAR16 * get_var(CHAR16 v);
51 extern VOID print_vars(VOID);
52 extern INTN subst_vars(CHAR16 *in, CHAR16 *out, INTN maxlen);
53
54 #endif /* __ELILO_VARS_H__ */
55