ftccback.h (2031B)
1 /**************************************************************************** 2 * 3 * ftccback.h 4 * 5 * Callback functions of the caching sub-system (specification only). 6 * 7 * Copyright (C) 2004-2025 by 8 * David Turner, Robert Wilhelm, and Werner Lemberg. 9 * 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. 15 * 16 */ 17 18 #ifndef FTCCBACK_H_ 19 #define FTCCBACK_H_ 20 21 #include <freetype/ftcache.h> 22 #include "ftccache.h" 23 24 FT_BEGIN_HEADER 25 26 FT_LOCAL( void ) 27 ftc_inode_free( FTC_Node inode, 28 FTC_Cache cache ); 29 30 FT_LOCAL( FT_Error ) 31 ftc_inode_new( FTC_Node *pinode, 32 FT_Pointer gquery, 33 FTC_Cache cache ); 34 35 FT_LOCAL( FT_Offset ) 36 ftc_inode_weight( FTC_Node inode, 37 FTC_Cache cache ); 38 39 40 FT_LOCAL( void ) 41 ftc_snode_free( FTC_Node snode, 42 FTC_Cache cache ); 43 44 FT_LOCAL( FT_Error ) 45 ftc_snode_new( FTC_Node *psnode, 46 FT_Pointer gquery, 47 FTC_Cache cache ); 48 49 FT_LOCAL( FT_Offset ) 50 ftc_snode_weight( FTC_Node snode, 51 FTC_Cache cache ); 52 53 FT_LOCAL( FT_Bool ) 54 ftc_snode_compare( FTC_Node snode, 55 FT_Pointer gquery, 56 FTC_Cache cache, 57 FT_Bool* list_changed ); 58 59 60 FT_LOCAL( FT_Bool ) 61 ftc_gnode_compare( FTC_Node gnode, 62 FT_Pointer gquery, 63 FTC_Cache cache, 64 FT_Bool* list_changed ); 65 66 67 FT_LOCAL( FT_Error ) 68 ftc_gcache_init( FTC_Cache cache ); 69 70 FT_LOCAL( void ) 71 ftc_gcache_done( FTC_Cache cache ); 72 73 74 FT_LOCAL( FT_Error ) 75 ftc_cache_init( FTC_Cache cache ); 76 77 FT_LOCAL( void ) 78 ftc_cache_done( FTC_Cache cache ); 79 80 FT_END_HEADER 81 82 #endif /* FTCCBACK_H_ */ 83 84 85 /* END */