*/
# define VIR_DOMAIN_GUEST_INFO_TIMEZONE_OFFSET "timezone.offset"
+
+/**
+ * VIR_DOMAIN_GUEST_INFO_HOSTNAME_HOSTNAME:
+ *
+ * The hostname of the domain as a string.
+ *
+ * Since: 11.2.0
+ */
+# define VIR_DOMAIN_GUEST_INFO_HOSTNAME_HOSTNAME "hostname"
+
/**
* virDomainGuestInfoTypes:
*
* The VIR_DOMAIN_GUEST_INFO_TIMEZONE_* constants define the known typed parameter
* keys.
*
+ * VIR_DOMAIN_GUEST_INFO_HOSTNAME:
+ * Returns information about the hostname of the domain.
+ * The VIR_DOMAIN_GUEST_INFO_HOSTNAME_* constants define the known typed parameter
+ * keys.
+ *
* VIR_DOMAIN_GUEST_INFO_FILESYSTEM:
* Returns information about the filesystems within the domain. The typed
* parameter keys are in this format:
* this is a name assigned by device mapper
* "disk.<num>.guest_bus" - disk bus as reported by the guest OS
*
- * VIR_DOMAIN_GUEST_INFO_HOSTNAME:
- * Returns information about the hostname of the domain. The typed
- * parameter keys are in this format:
- *
- * "hostname" - the hostname of the domain
- *
* VIR_DOMAIN_GUEST_INFO_INTERFACES:
* Returns information about the interfaces within the domain. The typed
* parameter keys are in this format:
goto exitagent;
if (hostname)
- virTypedParamListAddString(list, hostname, "hostname");
+ virTypedParamListAddString(list, hostname,
+ VIR_DOMAIN_GUEST_INFO_HOSTNAME_HOSTNAME);
if (supportedTypes & VIR_DOMAIN_GUEST_INFO_FILESYSTEM) {
rc = qemuAgentGetFSInfo(agent, &agentfsinfo, report_unsupported);