summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2005-10-13 14:30:57 +0000
committerDavid Turner <david@freetype.org>2005-10-13 14:30:57 +0000
commit5944eff19dc8c782bdcda170f234f7bfbf0f88f1 (patch)
tree8aad57646fff784c12b98653e4038f454f07e2f3
parent17c5aee6764ee6007a4e7432404333f7e8ea627c (diff)
downloadfreetype2-5944eff19dc8c782bdcda170f234f7bfbf0f88f1.tar.gz
add missing file, oops
-rw-r--r--src/cache/ftcint.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/cache/ftcint.h b/src/cache/ftcint.h
new file mode 100644
index 000000000..3e3f2564c
--- /dev/null
+++ b/src/cache/ftcint.h
@@ -0,0 +1,44 @@
+#ifndef __FT_CACHE_INTERNALS_H__
+#define __FT_CACHE_INTERNALS_H__
+
+#include <ft2build.h>
+#include FT_CACHE_H
+
+#define FTC_MAX_FACES_DEFAULT 2
+#define FTC_MAX_SIZES_DEFAULT 4
+#define FTC_MAX_BYTES_DEFAULT 200000L /* ~200kByte by default */
+
+/* maximum number of caches registered in a single manager
+ */
+#define FTC_MAX_CACHES 16
+
+
+/* internal fields of the @FTC_ManagerRec structure
+ */
+#define FTC_MANAGER_PRIVATE \
+ FTC_Node nodes_list; \
+ FT_ULong max_weight; \
+ \
+ FTC_Cache caches[FTC_MAX_CACHES]; \
+ FT_UInt num_caches; \
+ \
+ FTC_MruListRec faces; \
+ FTC_MruListRec sizes; \
+ \
+ FT_Pointer request_data; \
+ FTC_Face_Requester request_face; \
+ \
+ FT_UInt retry_depth; \
+ FT_UInt retry_num_nodes; \
+ FT_UInt retry_num_faces; \
+ FT_UInt retry_overflow;
+
+#include FT_CACHE_INTERNAL_MANAGER_H
+
+ FT_LOCAL( void )
+ ftc_node_destroy( FTC_Node node,
+ FTC_Manager manager );
+
+/* */
+
+#endif /* __FT_CACHE_INTERNALS_H__ */