summaryrefslogtreecommitdiff
path: root/lib/drmtest.h
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2013-05-22 17:40:46 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-05-22 18:18:28 +0200
commitbce7d8a06133f1d92ca99acae23ff498552ad327 (patch)
treedf334806955bb2f22766d55220bdd91a37693b85 /lib/drmtest.h
parent4dec89aef746a60a98a1b93823e79b51a5a8a3c6 (diff)
lib: export the exit handler interface
Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.h')
-rw-r--r--lib/drmtest.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/drmtest.h b/lib/drmtest.h
index 6f781029..7202ad50 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -132,4 +132,10 @@ inline static void _do_or_die(const char *function, int line, int ret)
#define do_or_die(x) _do_or_die(__FUNCTION__, __LINE__, x)
#define do_ioctl(fd, ptr, sz) do_or_die(drmIoctl((fd), (ptr), (sz)))
+typedef void (*drmtest_exit_handler_t)(int sig);
+
+int drmtest_install_exit_handler(drmtest_exit_handler_t fn);
+void drmtest_enable_exit_handler(void);
+void drmtest_disable_exit_handler(void);
+
int drmtest_set_vt_graphics_mode(void);