| 1 | /****************************************************************************** |
| 2 | * |
| 3 | * LDC2 source code |
| 4 | * |
| 5 | * $Date: 2007/03/26 01:00:38 $ |
| 6 | * $Author: hachti $ |
| 7 | * |
| 8 | * $Log: config.hh,v $ |
| 9 | * Revision 2.0 2007/03/26 01:00:38 hachti |
| 10 | * *** empty log message *** |
| 11 | * |
| 12 | * |
| 13 | ******************************************************************************/ |
| 14 | |
| 15 | #ifndef CONFIG_HH |
| 16 | #define CONFIG_HH |
| 17 | |
| 18 | #include <string> |
| 19 | using namespace std; |
| 20 | |
| 21 | /* Global configuration data */ |
| 22 | |
| 23 | extern string cfg_infile; |
| 24 | extern string cfg_outfile; |
| 25 | extern int cfg_infile_set; |
| 26 | extern int cfg_outfile_set; |
| 27 | extern int cfg_config_file_set; |
| 28 | |
| 29 | extern int cfg_do_help; |
| 30 | extern int cfg_output_info; |
| 31 | extern int cfg_output_called; |
| 32 | extern int cfg_output_exported; |
| 33 | extern int cfg_output_unsatisfied; |
| 34 | extern int cfg_split_objects; |
| 35 | extern int cfg_split_objects_numbered; |
| 36 | extern int cfg_split_blocks; |
| 37 | extern int cfg_ignore_block_errors; |
| 38 | extern int cfg_ignore_checksum_errors; |
| 39 | extern int cfg_pause_on_checksum_error; |
| 40 | extern int cfg_ignore_unknown_block_errors; |
| 41 | extern int cfg_ignore_object_integrity_errors; |
| 42 | extern int cfg_list_contents; |
| 43 | extern int cfg_verbose; |
| 44 | extern int cfg_version; |
| 45 | extern int cfg_quiet; |
| 46 | |
| 47 | extern int in_fd; //! File descriptor for data input |
| 48 | extern int out_fd; //! File descriptor for text output |
| 49 | |
| 50 | extern void do_config(int argc, char ** args); |
| 51 | |
| 52 | #endif |