From 1673b73aefbe40a38625e2d3fb49531755eb2b81 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 23 Nov 2009 23:28:59 +0000 Subject: [PATCH] Include internal.h instead of otferror.h. (OTF_InternalData): New member drive_log. (set_drive_log, get_drive_log): New functions. --- src/otfopen.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/otfopen.c b/src/otfopen.c index 2cdb3f5..c688728 100644 --- a/src/otfopen.c +++ b/src/otfopen.c @@ -27,7 +27,7 @@ write to the Free Software Foundation, Inc., 59 Temple Place, Suite #include #include "otf.h" -#include "otferror.h" +#include "internal.h" #include FT_TRUETYPE_TABLES_H @@ -331,8 +331,10 @@ struct OTF_InternalData /* Root of application data chain. */ OTF_ApplicationData *app_data; -}; + /* Log of applied features by OTF_driver_XXX. */ + OTF_DriveLog *drive_log; +}; static OTF_MemoryRecord * allocate_memory_record (OTF *otf) @@ -385,6 +387,22 @@ allocate_memory_record (OTF *otf) } \ } while (0) +void +set_drive_log (OTF *otf, OTF_DriveLog *log) +{ + OTF_InternalData *internal_data = (OTF_InternalData *) otf->internal_data; + + internal_data->drive_log = log; +} + +OTF_DriveLog * +get_drive_log (OTF *otf) +{ + OTF_InternalData *internal_data = (OTF_InternalData *) otf->internal_data; + + return (internal_data->drive_log); +} + /*** (1-2) "head" table */ -- 1.7.10.4