aboutsummaryrefslogtreecommitdiffstats
path: root/host/apdu_split.h
diff options
context:
space:
mode:
Diffstat (limited to 'host/apdu_split.h')
-rw-r--r--host/apdu_split.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/host/apdu_split.h b/host/apdu_split.h
new file mode 100644
index 0000000..64cbe91
--- /dev/null
+++ b/host/apdu_split.h
@@ -0,0 +1,16 @@
+#ifndef _APDU_SPLIT_H
+#define _APDU_SPLIT_H
+
+#include <stdint.h>
+
+struct apdu_split;
+
+typedef void apdu_cb_t(uint8_t *buf, unsigned int len, void *user_data);
+
+struct apdu_split *apdu_split_init(apdu_cb_t *apdu_out_cb, void *user_data);
+
+int apdu_split_reset(struct apdu_split *as);
+void apdu_split_in(struct apdu_split *as, uint8_t *buf, int len);
+void apdu_split_boundary(struct apdu_split *as);
+
+#endif