Even though it's auto-generated it's based on qemu.conf option and listen type
address already uses "fromConfig" to carry this information. Following commits
will convert the socket to listen element so this rename is required because
there will be also an option to get socket auto-generated independently on the
qemu.conf option.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
switch (def->type) {
case VIR_DOMAIN_GRAPHICS_TYPE_VNC:
if (def->data.vnc.socket) {
- if (!def->data.vnc.socketAutogenerated ||
+ if (!def->data.vnc.socketFromConfig ||
!(flags & VIR_DOMAIN_DEF_FORMAT_MIGRATABLE)) {
virBufferEscapeString(buf, " socket='%s'",
def->data.vnc.socket);
bool autoport;
char *keymap;
char *socket;
- bool socketAutogenerated;
+ bool socketFromConfig;
virDomainGraphicsAuthDef auth;
int sharePolicy;
} vnc;
"%s/vnc.sock", domainLibDir) < 0)
goto error;
- graphics->data.vnc.socketAutogenerated = true;
+ graphics->data.vnc.socketFromConfig = true;
}
virBufferAddLit(&opt, "unix:");
return -1;
}
else
- graphics->data.vnc.socketAutogenerated = true;
+ graphics->data.vnc.socketFromConfig = true;
}
}