aboutsummaryrefslogtreecommitdiffstats
path: root/libterminput_unmarshal_position__.c
blob: 9040c505fe2a6bf2c97cba25589915e1037b96e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
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);
}