]>
Commit | Line | Data |
---|---|---|
23c9e63c | 1 | /* |
eb20d728 | 2 | * Copyright (c) 2000,2007 Red Hat, Inc. |
23c9e63c DD |
3 | * |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation; either version 2 of the License, or | |
7 | * (at your option) any later version. | |
8 | * | |
9 | * A copy of the GNU General Public License can be found at | |
10 | * http://www.gnu.org/ | |
11 | * | |
12 | * Written by DJ Delorie <dj@cygnus.com> | |
13 | * | |
14 | */ | |
15 | ||
c93bc6d0 MB |
16 | #ifndef SETUP_INI_H |
17 | #define SETUP_INI_H | |
8f53e82a | 18 | |
341988b9 | 19 | class io_stream; |
fd93eff9 | 20 | #include <string> |
b92028a4 | 21 | class IniState; |
076654e7 | 22 | class IniDBBuilder; |
aa1e3b4d RC |
23 | class IniParseFeedback; |
24 | void ini_init (io_stream *, IniDBBuilder *, IniParseFeedback &); | |
d0fa1c4e RC |
25 | #define YYSTYPE char * |
26 | ||
23c9e63c DD |
27 | /* When setup.ini is parsed, the information is stored according to |
28 | the declarations here. ini.cc (via inilex and iniparse) | |
29 | initializes these structures. choose.cc sets the action and trust | |
30 | fields. download.cc downloads any needed files for selected | |
31 | packages (the chosen "install" field). install.cc installs | |
32 | selected packages. */ | |
33 | ||
c46a33a9 CF |
34 | typedef enum |
35 | { | |
36 | EXCLUDE_NONE = 0, | |
37 | EXCLUDE_BY_SETUP, | |
38 | EXCLUDE_NOT_FOUND | |
b24c88b3 RC |
39 | } |
40 | excludes; | |
c46a33a9 | 41 | |
909f5cf9 BD |
42 | #define SETUP_INI_FILENAME (IsWindowsNT () ? "setup.ini" : "setup_legacy.ini") |
43 | #define SETUP_BZ2_FILENAME (IsWindowsNT () ? "setup.bz2" : "setup_legacy.bz2") | |
5072c0bb | 44 | |
eb20d728 BD |
45 | /* The following three vars are used to facilitate error handling between the |
46 | parser/lexer and its callers, namely ini.cc:do_remote_ini() and | |
47 | IniParseFindVisitor::visitFile(). */ | |
48 | ||
49 | extern std::string current_ini_name; /* current filename/URL being parsed */ | |
dbfe3c19 | 50 | extern std::string current_ini_sig_name; /* current filename/URL for sig file */ |
eb20d728 BD |
51 | extern std::string yyerror_messages; /* textual parse error messages */ |
52 | extern int yyerror_count; /* number of parse errors */ | |
8f53e82a | 53 | |
c93bc6d0 | 54 | #endif /* SETUP_INI_H */ |