Blame gettext-tools/src/dir-list.h

Packit Bot 06c835
/* GNU gettext - internationalization aids
Packit Bot 06c835
   Copyright (C) 1996, 1998, 2000-2003, 2015 Free Software Foundation,
Packit Bot 06c835
   Inc.
Packit Bot 06c835
Packit Bot 06c835
   This file was written by Peter Miller <millerp@canb.auug.org.au>
Packit Bot 06c835
Packit Bot 06c835
   This program is free software: you can redistribute it and/or modify
Packit Bot 06c835
   it under the terms of the GNU General Public License as published by
Packit Bot 06c835
   the Free Software Foundation; either version 3 of the License, or
Packit Bot 06c835
   (at your option) any later version.
Packit Bot 06c835
Packit Bot 06c835
   This program is distributed in the hope that it will be useful,
Packit Bot 06c835
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 06c835
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Bot 06c835
   GNU General Public License for more details.
Packit Bot 06c835
Packit Bot 06c835
   You should have received a copy of the GNU General Public License
Packit Bot 06c835
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit Bot 06c835
Packit Bot 06c835
#ifndef _DIR_LIST_H
Packit Bot 06c835
#define _DIR_LIST_H
Packit Bot 06c835
Packit Bot 06c835
/* Management of the list of directories where PO files are searched.
Packit Bot 06c835
   It is an ordered list, without duplicates.  The default value of the
Packit Bot 06c835
   list consists of the single directory ".".  */
Packit Bot 06c835
Packit Bot 06c835
Packit Bot 06c835
#ifdef __cplusplus
Packit Bot 06c835
extern "C" {
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
Packit Bot 06c835
/* Append a directory to the end of the list of directories.  */
Packit Bot 06c835
extern void dir_list_append (const char *directory);
Packit Bot 06c835
Packit Bot 06c835
/* Return the nth directory, or NULL of n is out of range.  */
Packit Bot 06c835
extern const char *dir_list_nth (int n);
Packit Bot 06c835
Packit Bot 06c835
/* Return the current list of directories, for later use with dir_list_restore.
Packit Bot 06c835
   Reset the list to empty.  */
Packit Bot 06c835
extern void *dir_list_save_reset (void);
Packit Bot 06c835
Packit Bot 06c835
/* Restore a previously saved list of directories.  */
Packit Bot 06c835
extern void dir_list_restore (void *saved_value);
Packit Bot 06c835
Packit Bot 06c835
Packit Bot 06c835
#ifdef __cplusplus
Packit Bot 06c835
}
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
Packit Bot 06c835
#endif /* _DIR_LIST_H */