libweston, backends: store backend pointer in struct weston_head
Split out from !578 (merged), maybe this change can be reviewed and merged on its own.
Add a backend pointer to the struct weston_head
, which allows compositor code to use opaque pointer comparison to determine whether a head belongs to a given backend. This will lets the compositor select the correct backend specific output configuration code.