summaryrefslogtreecommitdiff
path: root/H64E-2/h64e-model.h
diff options
context:
space:
mode:
authorsystemcoder <systemcoder@protonmail.com>2020-03-13 22:58:43 +0000
committersystemcoder <systemcoder@protonmail.com>2020-03-13 22:58:43 +0000
commitedc949143c3e0a93c3868f0bbcc884fe721f4e92 (patch)
tree68e3bc4e663baa42d7e5d0217ca238dcf3fec016 /H64E-2/h64e-model.h
parent07ff9b8204da0b4a5ea8ad8a66ba12ae3e48abb8 (diff)
downloadH64D-2-edc949143c3e0a93c3868f0bbcc884fe721f4e92.tar.gz
H64D-2-edc949143c3e0a93c3868f0bbcc884fe721f4e92.zip
Added code for arguments settings, all function names defined
Diffstat (limited to 'H64E-2/h64e-model.h')
-rw-r--r--H64E-2/h64e-model.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/H64E-2/h64e-model.h b/H64E-2/h64e-model.h
new file mode 100644
index 0000000..41c4a4a
--- /dev/null
+++ b/H64E-2/h64e-model.h
@@ -0,0 +1,38 @@
+//
+// h64e-model.h
+// H64E-2
+//
+// Created by dianshi on 3/13/20.
+// Copyright © 2020 dianshi. All rights reserved.
+//
+
+#ifndef h64e_model_h
+#define h64e_model_h
+
+#include <stdio.h>
+
+typedef int (*trnf_clb)(char*);
+
+typedef struct H64E_stream_in {
+ int cur_size;
+ int size;
+ uint8_t *buf;
+} H64E_stream_in;
+
+//used to get collected data
+int H64E_si_init(H64E_stream_in *in, ssize_t size);
+int H64E_si_data_in(H64E_stream_in *in, uint8_t *data, size_t size);
+int H64E_si_data_out(H64E_stream_in *in, const uint8_t *data, size_t size);
+
+typedef struct H64E_stream_out {
+ int cur_size;
+ int size;
+ uint8_t *buf;
+} H64E_stream_out;
+
+//using to collect output formated data
+int H64E_so_init(H64E_stream_out *out, ssize_t size);
+int H64E_so_data_in(H64E_stream_in *out, uint8_t *data, size_t size);
+int H64E_so_data_out(H64E_stream_in *out, const uint8_t *data, size_t size);
+
+#endif /* h64e_model_h */