uterm: video: modularize video backends
authorDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 11 Jan 2013 11:16:43 +0000 (12:16 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 11 Jan 2013 11:16:43 +0000 (12:16 +0100)
commit694f451ae81ff23cece6afdbe349a5e879d1c602
treecfabe1a57be1b98dbfc4626e545ccaf27b1f63ab
parent81b691b742534ca5e1dda003f6549477733b60d3
uterm: video: modularize video backends

We want to allow dynamic backend loading during runtime so we need to
avoid static definitions. This converts the backend IDs into module
structures which are then linked into the binary.

To make this fully modular, we need to load the backends dynamicly via
dlsym() and move all the static declarations from uterm_video.h into the
backends. But for now at least the backends can be easily exchanged and
configured during compile-time.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/kmscon_main.c
src/uterm_video.c
src/uterm_video.h
src/uterm_video_drm.c
src/uterm_video_dumb.c
src/uterm_video_fbdev.c
src/uterm_video_internal.h