display: add close "virtual" function
authorVincent Stehlé <v-stehle@ti.com>
Tue, 28 Aug 2012 13:32:34 +0000 (15:32 +0200)
committerVincent Stehlé <v-stehle@ti.com>
Tue, 28 Aug 2012 13:37:12 +0000 (15:37 +0200)
commitcc5b27da0239ca76f78f5fdc8384523aea8d3066
treeb383c5a26aed00691dd5f3125be87a7fc3ce012a
parent83700fa7bcbc99796a53f38578a7000268c13afd
display: add close "virtual" function

Change the per-display close function into a proper "virtual" function
mechanism with function pointer in the display structure. This fixes the
segfault, when closing a kms display.

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
util/display-kms.c
util/display-x11.c
util/util.c
util/util.h