]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
src/lxc/lxc_controller: convert to use GLib DBus
authorPavel Hrdina <phrdina@redhat.com>
Wed, 9 Sep 2020 14:43:12 +0000 (16:43 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 17 Sep 2020 16:20:05 +0000 (18:20 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/lxc/lxc_controller.c
src/lxc/meson.build

index 37a28ac2f3c13708a5cdbd01f67c30587d36b61d..c3cf485e2c0670d7ba70cf4c738dae2c8eb76d05 100644 (file)
 #include "virnetdevveth.h"
 #include "viralloc.h"
 #include "virfile.h"
+#include "virgdbus.h"
 #include "virpidfile.h"
 #include "vircommand.h"
 #include "virhostcpu.h"
 #include "virrandom.h"
 #include "virprocess.h"
 #include "virnuma.h"
-#include "virdbus.h"
 #include "rpc/virnetdaemon.h"
 #include "virstring.h"
 #include "virgettext.h"
@@ -2430,7 +2430,7 @@ virLXCControllerRun(virLXCControllerPtr ctrl)
      * of LXC instance, since dbus-daemon is limited to
      * only a few 100 connections by default
      */
-    virDBusCloseSystemBus();
+    virGDBusCloseSystemBus();
 
     rc = virLXCControllerMain(ctrl);
 
@@ -2612,7 +2612,7 @@ int main(int argc, char *argv[])
 
     virEventRegisterDefaultImpl();
 
-    virDBusSetSharedBus(false);
+    virGDBusSetSharedBus(false);
 
     if (!(ctrl = virLXCControllerNew(name)))
         goto cleanup;
index 2810da760467fbc1a4cf24c9080cfaced563ddb2..f8e2a8852ad0d6d770bcb864720c58d4d334443f 100644 (file)
@@ -139,7 +139,6 @@ if conf.has('WITH_LXC')
     'deps': [
       blkid_dep,
       capng_dep,
-      dbus_dep,
       fuse_dep,
       libnl_dep,
       rpc_dep,