]>
git.saurik.com Git - wxWidgets.git/blob - src/freetype/freetype/ftsystem.h
bc74bced2254420e5da00632553e83ad549cd48b
1 /***************************************************************************/
5 /* FreeType low-level system interface definition (specification). */
7 /* Copyright 1996-2000 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10 /* This file is part of the FreeType project, and may only be used, */
11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */
16 /***************************************************************************/
23 /*************************************************************************/
25 /* M E M O R Y M A N A G E M E N T */
27 /*************************************************************************/
30 typedef struct FT_MemoryRec_
* FT_Memory
;
33 typedef void* (*FT_Alloc_Func
)( FT_Memory memory
,
36 typedef void (*FT_Free_Func
)( FT_Memory memory
,
39 typedef void* (*FT_Realloc_Func
)( FT_Memory memory
,
50 FT_Realloc_Func realloc
;
54 /*************************************************************************/
56 /* I / O M A N A G E M E N T */
58 /*************************************************************************/
61 typedef union FT_StreamDesc_
69 typedef struct FT_StreamRec_
* FT_Stream
;
72 typedef unsigned long (*FT_Stream_IO
)( FT_Stream stream
,
74 unsigned char* buffer
,
75 unsigned long count
);
77 typedef void (*FT_Stream_Close
)( FT_Stream stream
);
86 FT_StreamDesc descriptor
;
87 FT_StreamDesc pathname
; /* ignored by FreeType -- */
88 /* useful for debugging */
90 FT_Stream_Close close
;
93 unsigned char* cursor
;
98 #endif /* FTSYSTEM_H */