Hash :
09370c8c
        
        Author :
  
        
        Date :
2004-02-17T18:41:58
        
      
Fix callback functions in cache module. * src/cache/ftccback.h: New file for callback declarations. * src/cache/ftcbasic.c (ftc_basic_family_compare, ftc_basic_family_init, ftc_basic_family_get_count, ftc_basic_family_load_bitmap, ftc_basic_family_load_glyph, ftc_basic_gnode_compare_faceid): Use FT_CALLBACK_DEF. (ftc_basic_image_family_class, ftc_basic_image_cache_class, ftc_basic_sbit_family_class, ftc_basic_sbit_cache_class): Use FT_CALLBACK_TABLE_DEF and local wrapper functions. * src/cache/ftccache.c: Include ftccback.h. (ftc_cache_init, ftc_cache_done): New wrapper functions which use FT_LOCAL_DEF. * src/cache/ftccmap.c: Include ftccback.h. (ftc_cmap_cache_class): Use local wrapper functions. * src/cache/ftcglyph.c: Include ftccback.h. (ftc_gnode_compare, ftc_gcache_init, ftc_gcache_done): New wrapper functions which use FT_LOCAL_DEF. * src/cache/ftcimage.c: Include ftccback.h. (ftc_inode_free, ftc_inode_new, ftc_inode_weight): New wrapper functions which use FT_LOCAL_DEF. * src/cache/ftcmanag.c (ftc_size_list_class, ftc_face_list_class): Use FT_CALLBACK_TABLE_DEF. * src/cache;/ftcsbits.c: Include ftccback.h. (ftc_snode_free, ftc_snode_new, ftc_snode_weight, ftc_snode_compare): New wrapper functions which use FT_LOCAL_DEF. * src/cache/rules.mk (CACHE_DRV_H): Add ftccback.h.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
/***************************************************************************/
/*                                                                         */
/*  ftccback.h                                                             */
/*                                                                         */
/*    Callback functions of the caching sub-system (specification only).   */
/*                                                                         */
/*  Copyright 2004 by                                                      */
/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
/*                                                                         */
/*  This file is part of the FreeType project, and may only be used,       */
/*  modified, and distributed under the terms of the FreeType project      */
/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
/*  this file you indicate that you have read the license and              */
/*  understand and accept it fully.                                        */
/*                                                                         */
/***************************************************************************/
#ifndef __FTCCBACK_H__
#define __FTCCBACK_H__
#include <ft2build.h>
#include FT_CACHE_H
#include FT_CACHE_INTERNAL_MRU_H
#include FT_CACHE_INTERNAL_IMAGE_H
#include FT_CACHE_INTERNAL_MANAGER_H
#include FT_CACHE_INTERNAL_GLYPH_H
#include FT_CACHE_INTERNAL_SBITS_H
  FT_LOCAL( void )
  ftc_inode_free( FTC_INode  inode,
                  FTC_Cache  cache );
  FT_LOCAL( FT_Error )
  ftc_inode_new( FTC_INode   *pinode,
                 FTC_GQuery   gquery,
                 FTC_Cache    cache );
  FT_LOCAL( FT_ULong )
  ftc_inode_weight( FTC_INode  inode );
  FT_LOCAL( void )
  ftc_snode_free( FTC_SNode  snode,
                  FTC_Cache  cache );
  FT_LOCAL( FT_Error )
  ftc_snode_new( FTC_SNode  *psnode,
                 FTC_GQuery  gquery,
                 FTC_Cache   cache );
  FT_LOCAL( FT_ULong )
  ftc_snode_weight( FTC_SNode  snode );
  FT_LOCAL( FT_Bool )
  ftc_snode_compare( FTC_SNode   snode,
                     FTC_GQuery  gquery,
                     FTC_Cache   cache );
  FT_LOCAL( FT_Bool )
  ftc_gnode_compare( FTC_GNode   gnode,
                     FTC_GQuery  gquery );
  FT_LOCAL( FT_Error )
  ftc_gcache_init( FTC_GCache  cache );
  FT_LOCAL( void )
  ftc_gcache_done( FTC_GCache  cache );
  FT_LOCAL( FT_Error )
  ftc_cache_init( FTC_Cache  cache );
  FT_LOCAL( void )
  ftc_cache_done( FTC_Cache  cache );
#endif /* __FTCCBACK_H__ */
/* END */