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 2, or (at your option)
7   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, write to the Free Software Foundation,
16   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
17
18#ifndef _OPEN_CATALOG_H
19#define _OPEN_CATALOG_H
20
21#include <stdbool.h>
22#include <stdio.h>
23
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29
30/* Open the input file with the name INPUT_NAME.  The ending .po is added
31   if necessary.  If INPUT_NAME is not an absolute file name and the file is
32   not found, the list of directories in "dir-list.h" is searched.  The
33   file's pathname is returned in *REAL_FILE_NAME_P, for error message
34   purposes.  */
35extern FILE *open_catalog_file (const char *input_name,
36				char **real_file_name_p, bool exit_on_error);
37
38
39#ifdef __cplusplus
40}
41#endif
42
43
44#endif /* _OPEN_CATALOG_H */
45