builtin.h revision 23a0898a
1/*
2 * Id: builtin.h,v 1.2 1999/11/02 06:16:47 keithp Exp $
3 *
4 * Copyright 1999 SuSE, Inc.
5 *
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of SuSE not be used in advertising or
11 * publicity pertaining to distribution of the software without specific,
12 * written prior permission.  SuSE makes no representations about the
13 * suitability of this software for any purpose.  It is provided "as is"
14 * without express or implied warranty.
15 *
16 * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
18 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
20 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
21 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22 *
23 * Author:  Keith Packard, SuSE, Inc.
24 */
25/* $XFree86: xc/lib/font/builtins/builtin.h,v 1.3 1999/12/30 02:29:49 robin Exp $ */
26
27#include <X11/Xdefs.h>
28#include <X11/fonts/font.h>
29#include <X11/fonts/fontxlfd.h>
30#include <X11/fonts/fntfil.h>
31#include <X11/fonts/fntfilio.h>
32#include <X11/fonts/fntfilst.h>
33
34typedef struct _BuiltinFile {
35    const char  *name;
36    int		len;
37    const char  *bits;
38} BuiltinFileRec, *BuiltinFilePtr;
39
40typedef struct _BuiltinDir {
41    char	*file_name;
42    char	*font_name;
43} BuiltinDirRec, *BuiltinDirPtr;
44
45typedef struct _BuiltinAlias {
46    char	*alias_name;
47    char	*font_name;
48} BuiltinAliasRec, *BuiltinAliasPtr;
49
50extern const BuiltinFileRec	builtin_files[];
51extern const int		builtin_files_count;
52
53extern const BuiltinDirRec	builtin_dir[];
54extern const int		builtin_dir_count;
55
56extern const BuiltinAliasRec	builtin_alias[];
57extern const int		builtin_alias_count;
58
59extern FontFilePtr	BuiltinFileOpen (char *);
60extern int		BuiltinFileClose (BufFilePtr, int);
61extern int BuiltinReadDirectory (char *, FontDirectoryPtr *);
62extern void BuiltinRegisterFontFileFunctions (void);
63
64extern void BuiltinRegisterFpeFunctions (void);
65