aboutsummaryrefslogtreecommitdiff
path: root/include/ui/dbus-display.h
blob: 88f153c2371d5563973713830173d176d49386ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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_ */