dbus-module.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * D-Bus module support.
  3. *
  4. * Copyright (C) 2021 Red Hat, Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 or
  9. * (at your option) version 3 of the License.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #include "qemu/osdep.h"
  20. #include "qapi/error.h"
  21. #include "ui/dbus-module.h"
  22. int using_dbus_display;
  23. static bool
  24. qemu_dbus_display_add_client(int csock, Error **errp)
  25. {
  26. error_setg(errp, "D-Bus display isn't enabled");
  27. return false;
  28. }
  29. struct QemuDBusDisplayOps qemu_dbus_display = {
  30. .add_client = qemu_dbus_display_add_client,
  31. };