master
h 17 lines 371 Bytes
Raw
1 #ifndef DBUS_DISPLAY_H
2 #define DBUS_DISPLAY_H
3
4 #include "qapi/error.h"
5 #include "ui/dbus-module.h"
6
7 static inline bool qemu_using_dbus_display(Error **errp)
8 {
9 if (!using_dbus_display) {
10 error_set(errp, ERROR_CLASS_DEVICE_NOT_ACTIVE,
11 "D-Bus display is not in use");
12 return false;
13 }
14 return true;
15 }
16
17 #endif /* DBUS_DISPLAY_H */