summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mfluadir/otfcc/include/otfcc/handle.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/mfluadir/otfcc/include/otfcc/handle.h')
-rw-r--r--Build/source/texk/web2c/mfluadir/otfcc/include/otfcc/handle.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/mfluadir/otfcc/include/otfcc/handle.h b/Build/source/texk/web2c/mfluadir/otfcc/include/otfcc/handle.h
new file mode 100644
index 00000000000..364d136307b
--- /dev/null
+++ b/Build/source/texk/web2c/mfluadir/otfcc/include/otfcc/handle.h
@@ -0,0 +1,40 @@
+#ifndef CARYLL_INCLUDE_OTFCC_HANDLE_H
+#define CARYLL_INCLUDE_OTFCC_HANDLE_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include "dep/sds.h"
+#include "caryll/ownership.h"
+#include "caryll/element.h"
+#include "primitives.h"
+
+typedef enum {
+ HANDLE_STATE_EMPTY = 0,
+ HANDLE_STATE_INDEX = 1,
+ HANDLE_STATE_NAME = 2,
+ HANDLE_STATE_CONSOLIDATED = 3
+} handle_state;
+struct otfcc_Handle {
+ handle_state state;
+ glyphid_t index;
+ OWNING sds name;
+};
+
+typedef struct otfcc_Handle otfcc_Handle;
+typedef struct otfcc_Handle otfcc_GlyphHandle;
+typedef struct otfcc_Handle otfcc_FDHandle;
+typedef struct otfcc_Handle otfcc_LookupHandle;
+typedef struct otfcc_Handle otfcc_AxisHandle;
+
+struct otfcc_HandlePackage {
+ caryll_VT(otfcc_Handle);
+ struct otfcc_Handle (*fromIndex)(glyphid_t id);
+ struct otfcc_Handle (*fromName)(MOVE sds s);
+ struct otfcc_Handle (*fromConsolidated)(glyphid_t id, COPY sds s);
+ void (*consolidateTo)(struct otfcc_Handle *h, glyphid_t id, sds name);
+};
+
+extern const struct otfcc_HandlePackage otfcc_iHandle;
+
+#endif