1*9c092804SMarkus Armbruster #ifndef DBUS_DISPLAY_H 2*9c092804SMarkus Armbruster #define DBUS_DISPLAY_H 399997823SMarc-André Lureau 499997823SMarc-André Lureau #include "qapi/error.h" 599997823SMarc-André Lureau #include "ui/dbus-module.h" 699997823SMarc-André Lureau qemu_using_dbus_display(Error ** errp)799997823SMarc-André Lureaustatic inline bool qemu_using_dbus_display(Error **errp) 899997823SMarc-André Lureau { 999997823SMarc-André Lureau if (!using_dbus_display) { 1099997823SMarc-André Lureau error_set(errp, ERROR_CLASS_DEVICE_NOT_ACTIVE, 1199997823SMarc-André Lureau "D-Bus display is not in use"); 1299997823SMarc-André Lureau return false; 1399997823SMarc-André Lureau } 1499997823SMarc-André Lureau return true; 1599997823SMarc-André Lureau } 1699997823SMarc-André Lureau 17*9c092804SMarkus Armbruster #endif /* DBUS_DISPLAY_H */ 18