diff options
Diffstat (limited to '')
-rw-r--r-- | libterminput_marshal_text__.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libterminput_marshal_text__.c b/libterminput_marshal_text__.c new file mode 100644 index 0000000..fa9b542 --- /dev/null +++ b/libterminput_marshal_text__.c @@ -0,0 +1,12 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + + +int +libterminput_marshal_text__(struct libterminput_marshaller *how, const struct libterminput_text *what) +{ + if (how->store(how, &what->nbytes, sizeof(what->nbytes)) || + how->store(how, what->bytes, sizeof(what->nbytes))) + return -1; + return 0; +} |