]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Rename interop locations
authorAndrea Bolognani <abologna@redhat.com>
Mon, 15 Nov 2021 17:03:44 +0000 (18:03 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 18 Nov 2021 14:48:56 +0000 (15:48 +0100)
Use abstract names that more closely match the Meson
nomenclature.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_interop_config.c

index fe1bd44b411c1ec2bfa93e3561c6ce35a0b172ce..d3f1f34ecf2ea4334b52307e06c7b1398813c59a 100644 (file)
@@ -80,8 +80,8 @@ qemuBuildFileList(GHashTable *files, const char *dir)
     return 0;
 }
 
-#define QEMU_SYSTEM_LOCATION DATADIR "/qemu"
-#define QEMU_ETC_LOCATION SYSCONFDIR "/qemu"
+#define QEMU_DATADIR DATADIR "/qemu"
+#define QEMU_CONFDIR SYSCONFDIR "/qemu"
 
 int
 qemuInteropFetchConfigs(const char *name,
@@ -91,8 +91,8 @@ qemuInteropFetchConfigs(const char *name,
     g_autoptr(GHashTable) files = virHashNew(g_free);
     g_autofree char *homeConfig = NULL;
     g_autofree char *xdgConfig = NULL;
-    g_autofree char *sysLocation = virFileBuildPath(QEMU_SYSTEM_LOCATION, name, NULL);
-    g_autofree char *etcLocation = virFileBuildPath(QEMU_ETC_LOCATION, name, NULL);
+    g_autofree char *dataLocation = virFileBuildPath(QEMU_DATADIR, name, NULL);
+    g_autofree char *confLocation = virFileBuildPath(QEMU_CONFDIR, name, NULL);
     g_autofree virHashKeyValuePair *pairs = NULL;
     size_t npairs;
     virHashKeyValuePair *tmp = NULL;
@@ -117,10 +117,10 @@ qemuInteropFetchConfigs(const char *name,
         homeConfig = g_strdup_printf("%s/qemu/%s", xdgConfig, name);
     }
 
-    if (qemuBuildFileList(files, sysLocation) < 0)
+    if (qemuBuildFileList(files, dataLocation) < 0)
         return -1;
 
-    if (qemuBuildFileList(files, etcLocation) < 0)
+    if (qemuBuildFileList(files, confLocation) < 0)
         return -1;
 
     if (homeConfig &&