Commit 28bfba04 authored by Pavel Hrdina's avatar Pavel Hrdina

connect: introduce VIRT_DBUS_CONNECT_INTERFACE

This also fixes the one wrong interface name in events.c.
Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Pavel Hrdina's avatarPavel Hrdina <phrdina@redhat.com>
parent 274a4731
......@@ -258,7 +258,7 @@ virtDBusConnectNew(virtDBusConnect **connectp,
r = sd_bus_add_object_vtable(connect->bus,
NULL,
connect->connectPath,
"org.libvirt.Connect",
VIRT_DBUS_CONNECT_INTERFACE,
virt_connect_vtable,
connect);
if (r < 0)
......
......@@ -5,6 +5,8 @@
#include <libvirt/libvirt.h>
#include <systemd/sd-bus.h>
#define VIRT_DBUS_CONNECT_INTERFACE "org.libvirt.Connect"
struct virtDBusConnect {
sd_bus *bus;
const char *uri;
......
......@@ -54,7 +54,7 @@ virtDBusEventsDomainLifecycle(virConnectPtr connection VIRT_ATTR_UNUSED,
r = sd_bus_message_new_signal(connect->bus,
&message,
connect->connectPath,
"org.libvirt.connect",
VIRT_DBUS_CONNECT_INTERFACE,
signal);
if (r < 0)
return r;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment