fntfilio.h revision 23a0898a
123a0898aSmrg/* $Xorg: fntfilio.h,v 1.4 2001/02/09 02:04:04 xorgcvs Exp $ */ 223a0898aSmrg 323a0898aSmrg/* 423a0898aSmrg 523a0898aSmrgCopyright 1991, 1998 The Open Group 623a0898aSmrg 723a0898aSmrgPermission to use, copy, modify, distribute, and sell this software and its 823a0898aSmrgdocumentation for any purpose is hereby granted without fee, provided that 923a0898aSmrgthe above copyright notice appear in all copies and that both that 1023a0898aSmrgcopyright notice and this permission notice appear in supporting 1123a0898aSmrgdocumentation. 1223a0898aSmrg 1323a0898aSmrgThe above copyright notice and this permission notice shall be included in 1423a0898aSmrgall copies or substantial portions of the Software. 1523a0898aSmrg 1623a0898aSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1723a0898aSmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1823a0898aSmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1923a0898aSmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 2023a0898aSmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 2123a0898aSmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2223a0898aSmrg 2323a0898aSmrgExcept as contained in this notice, the name of The Open Group shall not be 2423a0898aSmrgused in advertising or otherwise to promote the sale, use or other dealings 2523a0898aSmrgin this Software without prior written authorization from The Open Group. 2623a0898aSmrg 2723a0898aSmrg*/ 2823a0898aSmrg/* $XFree86: xc/lib/font/include/fntfilio.h,v 1.6 2001/10/31 22:50:26 tsi Exp $ */ 2923a0898aSmrg 3023a0898aSmrg/* 3123a0898aSmrg * Author: Keith Packard, MIT X Consortium 3223a0898aSmrg */ 3323a0898aSmrg 3423a0898aSmrg#ifndef _FNTFILIO_H_ 3523a0898aSmrg#define _FNTFILIO_H_ 3623a0898aSmrg 3723a0898aSmrg#include <X11/fonts/bufio.h> 3823a0898aSmrg 3923a0898aSmrgtypedef BufFilePtr FontFilePtr; 4023a0898aSmrg 4123a0898aSmrg#define FontFileGetc(f) BufFileGet(f) 4223a0898aSmrg#define FontFilePutc(c,f) BufFilePut(c,f) 4323a0898aSmrg#define FontFileRead(f,b,n) BufFileRead(f,b,n) 4423a0898aSmrg#define FontFileWrite(f,b,n) BufFileWrite(f,b,n) 4523a0898aSmrg#define FontFileSkip(f,n) (BufFileSkip (f, n) != BUFFILEEOF) 4623a0898aSmrg#define FontFileSeek(f,n) (BufFileSeek (f,n,0) != BUFFILEEOF) 4723a0898aSmrg 4823a0898aSmrg#define FontFileEOF BUFFILEEOF 4923a0898aSmrg 5023a0898aSmrgextern FontFilePtr FontFileOpen ( const char *name ); 5123a0898aSmrgextern int FontFileClose ( FontFilePtr f ); 5223a0898aSmrgextern FontFilePtr FontFileOpenWrite ( const char *name ); 5323a0898aSmrgextern FontFilePtr FontFileOpenWriteFd ( int fd ); 5423a0898aSmrgextern FontFilePtr FontFileOpenFd ( int fd ); 5523a0898aSmrg 5623a0898aSmrg#endif /* _FNTFILIO_H_ */ 57