Blame locale/programs/charmap-dir.h

Packit Service 82fcde
/* Copyright (C) 2000-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   This program is free software; you can redistribute it and/or modify
Packit Service 82fcde
   it under the terms of the GNU General Public License as published
Packit Service 82fcde
   by the Free Software Foundation; version 2 of the License, or
Packit Service 82fcde
   (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   This program is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 82fcde
   GNU General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU General Public License
Packit Service 82fcde
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
#ifndef _CHARMAP_DIR_H
Packit Service 82fcde
#define _CHARMAP_DIR_H 1
Packit Service 82fcde
Packit Service 82fcde
/* The data type of a charmap directory being traversed.  */
Packit Service 82fcde
typedef struct charmap_dir CHARMAP_DIR;
Packit Service 82fcde
Packit Service 82fcde
/* Starts a charmap directory traversal.
Packit Service 82fcde
   Returns a CHARMAP_DIR, or NULL if the directory doesn't exist.  */
Packit Service 82fcde
extern CHARMAP_DIR *charmap_opendir (const char *directory);
Packit Service 82fcde
Packit Service 82fcde
/* Reads the next directory entry.
Packit Service 82fcde
   Returns its charmap name, or NULL if past the last entry or upon error.
Packit Service 82fcde
   The storage returned may be overwritten by a later charmap_readdir
Packit Service 82fcde
   call on the same CHARMAP_DIR.  */
Packit Service 82fcde
extern const char *charmap_readdir (CHARMAP_DIR *dir);
Packit Service 82fcde
Packit Service 82fcde
/* Finishes a charmap directory traversal, and frees the resources
Packit Service 82fcde
   attached to the CHARMAP_DIR.  */
Packit Service 82fcde
extern int charmap_closedir (CHARMAP_DIR *dir);
Packit Service 82fcde
Packit Service 82fcde
/* Returns a NULL terminated list of alias names of a charmap.  */
Packit Service 82fcde
extern char **charmap_aliases (const char *directory, const char *name);
Packit Service 82fcde
Packit Service 82fcde
/* Frees an alias list returned by charmap_aliases.  */
Packit Service 82fcde
extern void charmap_free_aliases (char **aliases);
Packit Service 82fcde
Packit Service 82fcde
/* Opens a charmap for reading, given its name (not an alias name).  */
Packit Service 82fcde
extern FILE *charmap_open (const char *directory, const char *name);
Packit Service 82fcde
Packit Service 82fcde
#endif /* _CHARMAP_DIR_H */