Include internal.h instead of otferror.h.
authorhanda <handa>
Mon, 23 Nov 2009 23:28:59 +0000 (23:28 +0000)
committerhanda <handa>
Mon, 23 Nov 2009 23:28:59 +0000 (23:28 +0000)
(OTF_InternalData): New member drive_log.
(set_drive_log, get_drive_log): New functions.

src/otfopen.c

index 2cdb3f5..c688728 100644 (file)
@@ -27,7 +27,7 @@ write to the Free Software Foundation, Inc., 59 Temple Place, Suite
 #include <config.h>
 
 #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);
+}
+
 \f
 /*** (1-2) "head" table */