9c0928045c
Leading underscores are ill-advised because such identifiers are reserved. Trailing underscores are merely ugly. Strip both. Our header guards commonly end in _H. Normalize the exceptions. Macros should be ALL_CAPS. Normalize the exception. Done with scripts/clean-header-guards.pl. include/hw/xen/interface/ and tools/virtiofsd/ left alone, because these were imported from Xen and libfuse respectively. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20220506134911.2856099-3-armbru@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
18 lines
371 B
C
18 lines
371 B
C
#ifndef DBUS_DISPLAY_H
|
|
#define DBUS_DISPLAY_H
|
|
|
|
#include "qapi/error.h"
|
|
#include "ui/dbus-module.h"
|
|
|
|
static inline bool qemu_using_dbus_display(Error **errp)
|
|
{
|
|
if (!using_dbus_display) {
|
|
error_set(errp, ERROR_CLASS_DEVICE_NOT_ACTIVE,
|
|
"D-Bus display is not in use");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
#endif /* DBUS_DISPLAY_H */
|