From: handa Date: Mon, 23 Nov 2009 23:28:59 +0000 (+0000) Subject: Include internal.h instead of otferror.h. X-Git-Tag: REL-0-9-11~27 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1673b73aefbe40a38625e2d3fb49531755eb2b81;p=m17n%2Flibotf.git Include internal.h instead of otferror.h. (OTF_InternalData): New member drive_log. (set_drive_log, get_drive_log): New functions. --- 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 */