123a0898aSmrg/*
223a0898aSmrg *
323a0898aSmrg * Copyright 1999 SuSE, Inc.
423a0898aSmrg *
523a0898aSmrg * Permission to use, copy, modify, distribute, and sell this software and its
623a0898aSmrg * documentation for any purpose is hereby granted without fee, provided that
723a0898aSmrg * the above copyright notice appear in all copies and that both that
823a0898aSmrg * copyright notice and this permission notice appear in supporting
923a0898aSmrg * documentation, and that the name of SuSE not be used in advertising or
1023a0898aSmrg * publicity pertaining to distribution of the software without specific,
1123a0898aSmrg * written prior permission.  SuSE makes no representations about the
1223a0898aSmrg * suitability of this software for any purpose.  It is provided "as is"
1323a0898aSmrg * without express or implied warranty.
1423a0898aSmrg *
1523a0898aSmrg * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
1623a0898aSmrg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
1723a0898aSmrg * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1823a0898aSmrg * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
1941c30155Smrg * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
2023a0898aSmrg * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2123a0898aSmrg *
2223a0898aSmrg * Author:  Keith Packard, SuSE, Inc.
2323a0898aSmrg */
2423a0898aSmrg
2523a0898aSmrg#include <X11/Xdefs.h>
2623a0898aSmrg#include <X11/fonts/font.h>
2723a0898aSmrg#include <X11/fonts/fontxlfd.h>
2823a0898aSmrg#include <X11/fonts/fntfil.h>
2923a0898aSmrg#include <X11/fonts/fntfilio.h>
3023a0898aSmrg#include <X11/fonts/fntfilst.h>
3123a0898aSmrg
3223a0898aSmrgtypedef struct _BuiltinFile {
3323a0898aSmrg    const char  *name;
3423a0898aSmrg    int		len;
3523a0898aSmrg    const char  *bits;
3623a0898aSmrg} BuiltinFileRec, *BuiltinFilePtr;
3723a0898aSmrg
3823a0898aSmrgtypedef struct _BuiltinDir {
3941c30155Smrg    const char	*file_name;
4023a0898aSmrg    char	*font_name;
4123a0898aSmrg} BuiltinDirRec, *BuiltinDirPtr;
4223a0898aSmrg
4323a0898aSmrgtypedef struct _BuiltinAlias {
4423a0898aSmrg    char	*alias_name;
4523a0898aSmrg    char	*font_name;
4623a0898aSmrg} BuiltinAliasRec, *BuiltinAliasPtr;
4723a0898aSmrg
4823a0898aSmrgextern const BuiltinFileRec	builtin_files[];
4923a0898aSmrgextern const int		builtin_files_count;
5023a0898aSmrg
5123a0898aSmrgextern const BuiltinDirRec	builtin_dir[];
5223a0898aSmrgextern const int		builtin_dir_count;
5323a0898aSmrg
5423a0898aSmrgextern const BuiltinAliasRec	builtin_alias[];
5523a0898aSmrgextern const int		builtin_alias_count;
5623a0898aSmrg
570145ab54Ssnjextern FontFilePtr	BuiltinFileOpen (const char *);
5823a0898aSmrgextern int		BuiltinFileClose (BufFilePtr, int);
590145ab54Ssnjextern int BuiltinReadDirectory (const char *, FontDirectoryPtr *);
6023a0898aSmrgextern void BuiltinRegisterFontFileFunctions (void);
6123a0898aSmrg
6223a0898aSmrgextern void BuiltinRegisterFpeFunctions (void);
63