1/* Opening PO files.
2   Copyright (C) 1995-1997, 2000-2003, 2006 Free Software Foundation, Inc.
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 3 of the License, or
7   (at your option) any later version.
8
9   This program is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   GNU General Public License for more details.
13
14   You should have received a copy of the GNU General Public License
15   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
16
17#ifndef _OPEN_CATALOG_H
18#define _OPEN_CATALOG_H
19
20#include <stdbool.h>
21#include <stdio.h>
22
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28
29/* Open the input file with the name INPUT_NAME.  The ending .po is added
30   if necessary.  If INPUT_NAME is not an absolute file name and the file is
31   not found, the list of directories in "dir-list.h" is searched.  The
32   file's pathname is returned in *REAL_FILE_NAME_P, for error message
33   purposes.  */
34extern FILE *open_catalog_file (const char *input_name,
35				char **real_file_name_p, bool exit_on_error);
36
37
38#ifdef __cplusplus
39}
40#endif
41
42
43#endif /* _OPEN_CATALOG_H */
44