vhost-vdpa: stick to -errno error return convention
[qemu/kevin.git] / include / ui / dbus-display.h
blob88f153c2371d5563973713830173d176d49386ee
1 #ifndef DBUS_DISPLAY_H_
2 #define DBUS_DISPLAY_H_
4 #include "qapi/error.h"
5 #include "ui/dbus-module.h"
7 static inline bool qemu_using_dbus_display(Error **errp)
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;
14 return true;
17 #endif /* DBUS_DISPLAY_H_ */