if (def->data.vnc.port == -1) {
if (flags & VIR_DOMAIN_XML_INACTIVE)
def->data.vnc.port = 0;
- def->data.vnc.autoport = 1;
+ def->data.vnc.autoport = true;
}
} else {
def->data.vnc.port = 0;
- def->data.vnc.autoport = 1;
+ def->data.vnc.autoport = true;
}
if ((autoport = virXMLPropString(node, "autoport")) != NULL) {
if (STREQ(autoport, "yes")) {
if (flags & VIR_DOMAIN_XML_INACTIVE)
def->data.vnc.port = 0;
- def->data.vnc.autoport = 1;
+ def->data.vnc.autoport = true;
}
VIR_FREE(autoport);
}
if (fullscreen != NULL) {
if (STREQ(fullscreen, "yes")) {
- def->data.sdl.fullscreen = 1;
+ def->data.sdl.fullscreen = true;
} else if (STREQ(fullscreen, "no")) {
- def->data.sdl.fullscreen = 0;
+ def->data.sdl.fullscreen = false;
} else {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("unknown fullscreen value '%s'"), fullscreen);
}
VIR_FREE(fullscreen);
} else {
- def->data.sdl.fullscreen = 0;
+ def->data.sdl.fullscreen = false;
}
def->data.sdl.xauth = virXMLPropString(node, "xauth");
def->data.sdl.display = virXMLPropString(node, "display");
}
/* Legacy compat syntax, used -1 for auto-port */
if (def->data.rdp.port == -1)
- def->data.rdp.autoport = 1;
+ def->data.rdp.autoport = true;
VIR_FREE(port);
} else {
def->data.rdp.port = 0;
- def->data.rdp.autoport = 1;
+ def->data.rdp.autoport = true;
}
if ((autoport = virXMLPropString(node, "autoport")) != NULL) {
if (STREQ(autoport, "yes"))
- def->data.rdp.autoport = 1;
+ def->data.rdp.autoport = true;
VIR_FREE(autoport);
}
if ((replaceUser = virXMLPropString(node, "replaceUser")) != NULL) {
if (STREQ(replaceUser, "yes")) {
- def->data.rdp.replaceUser = 1;
+ def->data.rdp.replaceUser = true;
}
VIR_FREE(replaceUser);
}
if ((multiUser = virXMLPropString(node, "multiUser")) != NULL) {
if (STREQ(multiUser, "yes")) {
- def->data.rdp.multiUser = 1;
+ def->data.rdp.multiUser = true;
}
VIR_FREE(multiUser);
}
if (fullscreen != NULL) {
if (STREQ(fullscreen, "yes")) {
- def->data.desktop.fullscreen = 1;
+ def->data.desktop.fullscreen = true;
} else if (STREQ(fullscreen, "no")) {
- def->data.desktop.fullscreen = 0;
+ def->data.desktop.fullscreen = false;
} else {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("unknown fullscreen value '%s'"), fullscreen);
}
VIR_FREE(fullscreen);
} else {
- def->data.desktop.fullscreen = 0;
+ def->data.desktop.fullscreen = false;
}
def->data.desktop.display = virXMLPropString(node, "display");
if ((autoport = virXMLPropString(node, "autoport")) != NULL) {
if (STREQ(autoport, "yes"))
- def->data.spice.autoport = 1;
+ def->data.spice.autoport = true;
VIR_FREE(autoport);
}
if (def->data.spice.port == -1 && def->data.spice.tlsPort == -1) {
/* Legacy compat syntax, used -1 for auto-port */
- def->data.spice.autoport = 1;
+ def->data.spice.autoport = true;
}
if (def->data.spice.autoport && (flags & VIR_DOMAIN_XML_INACTIVE)) {
VBOX_UTF16_FREE(VRDEPortsValue);
#endif /* VBOX_API_VERSION >= 4000 */
} else {
- def->graphics[def->ngraphics]->data.rdp.autoport = 1;
+ def->graphics[def->ngraphics]->data.rdp.autoport = true;
}
def->graphics[def->ngraphics]->type = VIR_DOMAIN_GRAPHICS_TYPE_RDP;
VRDxServer->vtbl->GetAllowMultiConnection(VRDxServer, &allowMultiConnection);
if (allowMultiConnection) {
- def->graphics[def->ngraphics]->data.rdp.multiUser = 1;
+ def->graphics[def->ngraphics]->data.rdp.multiUser = true;
}
VRDxServer->vtbl->GetReuseSingleConnection(VRDxServer, &reuseSingleConnection);
if (reuseSingleConnection) {
- def->graphics[def->ngraphics]->data.rdp.replaceUser = 1;
+ def->graphics[def->ngraphics]->data.rdp.replaceUser = true;
}
def->ngraphics++;