If we want to load backends during runtime, we must allow them to store
their data. Instead of hardcoding it, we now provide a "data" pointer so
they can store arbitrary data.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
struct uterm_mode *next;
const struct mode_ops *ops;
+ void *data;
union {
struct drm_mode drm;
struct dumb_mode dumb;
struct ev_timer *vblank_timer;
const struct display_ops *ops;
+ void *data;
union {
struct drm_display drm;
struct dumb_display dumb;
const struct uterm_video_module *mod;
const struct video_ops *ops;
+ void *data;
union {
struct drm_video drm;
struct dumb_video dumb;