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