aboutsummaryrefslogtreecommitdiffstats
path: root/libterminput_marshal_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'libterminput_marshal_state.c')
-rw-r--r--libterminput_marshal_state.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libterminput_marshal_state.c b/libterminput_marshal_state.c
new file mode 100644
index 0000000..8c0c79c
--- /dev/null
+++ b/libterminput_marshal_state.c
@@ -0,0 +1,9 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+
+
+int
+libterminput_marshal_state(struct libterminput_marshaller *how, const struct libterminput_state *what) /* TODO test */
+{
+ return how->store(how, what, sizeof(*what));
+}