ftapi.c

Go to the documentation of this file.
00001 /***************************************************************************/
00002 /*                                                                         */
00003 /*  ftapi.c                                                                */
00004 /*                                                                         */
00005 /*    The FreeType compatibility functions (body).                         */
00006 /*                                                                         */
00007 /*  Copyright 2002 by                                                      */
00008 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
00009 /*                                                                         */
00010 /*  This file is part of the FreeType project, and may only be used,       */
00011 /*  modified, and distributed under the terms of the FreeType project      */
00012 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
00013 /*  this file you indicate that you have read the license and              */
00014 /*  understand and accept it fully.                                        */
00015 /*                                                                         */
00016 /***************************************************************************/
00017 
00018 
00019 #include <ft2build.h>
00020 #include FT_LIST_H
00021 #include FT_OUTLINE_H
00022 #include FT_INTERNAL_OBJECTS_H
00023 #include FT_INTERNAL_DEBUG_H
00024 #include FT_INTERNAL_STREAM_H
00025 #include FT_TRUETYPE_TABLES_H
00026 #include FT_OUTLINE_H
00027 
00028 
00029   /*************************************************************************/
00030   /*************************************************************************/
00031   /*************************************************************************/
00032   /****                                                                 ****/
00033   /****                                                                 ****/
00034   /****                 C O M P A T I B I L I T Y                       ****/
00035   /****                                                                 ****/
00036   /****                                                                 ****/
00037   /*************************************************************************/
00038   /*************************************************************************/
00039   /*************************************************************************/
00040 
00041   /* backwards compatibility API */
00042 
00043   FT_BASE_DEF( void )
00044   FT_New_Memory_Stream( FT_Library  library,
00045                         FT_Byte*    base,
00046                         FT_ULong    size,
00047                         FT_Stream   stream )
00048   {
00049     FT_UNUSED( library );
00050 
00051     FT_Stream_OpenMemory( stream, base, size );
00052   }
00053 
00054 
00055   FT_BASE_DEF( FT_Error )
00056   FT_Seek_Stream( FT_Stream  stream,
00057                   FT_ULong   pos )
00058   {
00059     return FT_Stream_Seek( stream, pos );
00060   }
00061 
00062 
00063   FT_BASE_DEF( FT_Error )
00064   FT_Skip_Stream( FT_Stream  stream,
00065                   FT_Long    distance )
00066   {
00067     return FT_Stream_Skip( stream, distance );
00068   }
00069 
00070 
00071   FT_BASE_DEF( FT_Error )
00072   FT_Read_Stream( FT_Stream  stream,
00073                   FT_Byte*   buffer,
00074                   FT_ULong   count )
00075   {
00076     return FT_Stream_Read( stream, buffer, count );
00077   }
00078 
00079 
00080   FT_BASE_DEF( FT_Error )
00081   FT_Read_Stream_At( FT_Stream  stream,
00082                      FT_ULong   pos,
00083                      FT_Byte*   buffer,
00084                      FT_ULong   count )
00085   {
00086     return FT_Stream_ReadAt( stream, pos, buffer, count );
00087   }
00088 
00089 
00090   FT_BASE_DEF( FT_Error )
00091   FT_Extract_Frame( FT_Stream  stream,
00092                     FT_ULong   count,
00093                     FT_Byte**  pbytes )
00094   {
00095     return FT_Stream_ExtractFrame( stream, count, pbytes );
00096   }
00097 
00098 
00099   FT_BASE_DEF( void )
00100   FT_Release_Frame( FT_Stream  stream,
00101                     FT_Byte**  pbytes )
00102   {
00103     FT_Stream_ReleaseFrame( stream, pbytes );
00104   }
00105 
00106   FT_BASE_DEF( FT_Error )
00107   FT_Access_Frame( FT_Stream  stream,
00108                    FT_ULong   count )
00109   {
00110     return FT_Stream_EnterFrame( stream, count );
00111   }
00112 
00113 
00114   FT_BASE_DEF( void )
00115   FT_Forget_Frame( FT_Stream  stream )
00116   {
00117     FT_Stream_ExitFrame( stream );
00118   }
00119 
00120 
00121 /* END */

Generated on Tue Jul 5 14:13:42 2011 for ROOT_528-00b_version by  doxygen 1.5.1