1 /*
2  * confg.h
3  *
4  * Read and understanding everything about the options
5  * & (dynamic) configuration of a2ps.
6  * Copyright (c) 1988, 89, 90, 91, 92, 93 Miguel Santana
7  * Copyright (c) 1995, 96, 97, 98 Akim Demaille, Miguel Santana
8  */
9 
10 /*
11  * This file is part of a2ps.
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; see the file COPYING.  If not, write to
25  * the Free Software Foundation, 59 Temple Place - Suite 330,
26  * Boston, MA 02111-1307, USA.
27  */
28 
29 #ifndef _CONFG_H_
30 #define _CONFG_H_
31 
32 #ifdef HAVE_CONFIG_H
33 #  include "config.h"
34 #endif
35 
36 struct a2ps_job;
37 
38 /*
39  * Type of the functions that can be used as hooks when reading
40  * the config files
41  */
42 typedef void (* config_hook) PARAMS ((const char * filename, int line,
43 				      char * config_line));
44 extern config_hook delegation_hook;
45 extern config_hook toc_entry_hook;
46 
47 /* liba2ps.h:begin */
48 /*
49  * Read the configuration file
50  */
51 int a2_read_config PARAMS ((struct a2ps_job * job,
52 			 const char *path, const char *file));
53 
54 /*
55  * Read the system's configuration file
56  * (i.e., a2_read_config  (job, etc, a2ps.cfg))
57  */
58 void a2_read_sys_config PARAMS ((struct a2ps_job * job));
59 /* liba2ps.h:end */
60 #endif
61