diff options
Diffstat (limited to 'libterminput_unmarshal_position__.c')
-rw-r--r-- | libterminput_unmarshal_position__.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libterminput_unmarshal_position__.c b/libterminput_unmarshal_position__.c new file mode 100644 index 0000000..9040c50 --- /dev/null +++ b/libterminput_unmarshal_position__.c @@ -0,0 +1,10 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + + +int +libterminput_unmarshal_position__(struct libterminput_unmarshaller *how, struct libterminput_position *what) +{ + what->type = LIBTERMINPUT_CURSOR_POSITION; + return how->load(how, &what->x, sizeof(size_t) * 2U); +} |