scanner: Use an enum to determine the type of thing we're writing out
scanner: Use an enum to determine the type of thing we're writing out

Reviewed-by: Marek Chalupa <a05df156a69ad59faa9af9b666ef78009594c145@gmail.com>
Reviewed-by: Pekka Paalanen <0f6ae7001e34c37b02fb2c1c2573ddf8f442136a@collabora.co.uk>

tulcod/wayland,sir-murray/wayland,eyolfson/wayland,bitfactor/wayland,abooij/wayland,bitfactor/wayland,eyolfson/wayland,tulcod/wayland,abooij/wayland,sir-murray/wayland,sir-murray/wayland,abooij/wayland,bitfactor/wayland,tulcod/wayland,mchalupa/wayland,eyolfson/wayland,mchalupa/wayland,mchalupa/wayland