xmodem: Make new API spec

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>