xrdp-ng: start defining protocol in terms of structures