Lines Matching refs:vfb
642 libxl_device_vfb *vfb, bool hotplug) in libxl__device_vfb_setdefault() argument
646 libxl_defbool_setdefault(&vfb->vnc.enable, true); in libxl__device_vfb_setdefault()
647 if (libxl_defbool_val(vfb->vnc.enable)) { in libxl__device_vfb_setdefault()
648 if (!vfb->vnc.listen) { in libxl__device_vfb_setdefault()
649 vfb->vnc.listen = strdup("127.0.0.1"); in libxl__device_vfb_setdefault()
650 if (!vfb->vnc.listen) return ERROR_NOMEM; in libxl__device_vfb_setdefault()
653 libxl_defbool_setdefault(&vfb->vnc.findunused, true); in libxl__device_vfb_setdefault()
655 libxl_defbool_setdefault(&vfb->vnc.findunused, false); in libxl__device_vfb_setdefault()
658 libxl_defbool_setdefault(&vfb->sdl.enable, false); in libxl__device_vfb_setdefault()
659 libxl_defbool_setdefault(&vfb->sdl.opengl, false); in libxl__device_vfb_setdefault()
661 rc = libxl__resolve_domid(gc, vfb->backend_domname, &vfb->backend_domid); in libxl__device_vfb_setdefault()
665 int libxl_device_vfb_add(libxl_ctx *ctx, uint32_t domid, libxl_device_vfb *vfb, in libxl_device_vfb_add() argument
671 rc = libxl__device_add(gc, domid, &libxl__vfb_devtype, vfb); in libxl_device_vfb_add()
683 libxl_device_vfb *vfb, in libxl__set_xenstore_vfb() argument
688 libxl_defbool_val(vfb->vnc.enable) ? "1" : "0"); in libxl__set_xenstore_vfb()
689 flexarray_append_pair(back, "vnclisten", vfb->vnc.listen); in libxl__set_xenstore_vfb()
690 flexarray_append_pair(back, "vncpasswd", vfb->vnc.passwd); in libxl__set_xenstore_vfb()
692 GCSPRINTF("%d", vfb->vnc.display)); in libxl__set_xenstore_vfb()
694 libxl_defbool_val(vfb->vnc.findunused) ? "1" : "0"); in libxl__set_xenstore_vfb()
696 libxl_defbool_val(vfb->sdl.enable) ? "1" : "0"); in libxl__set_xenstore_vfb()
698 libxl_defbool_val(vfb->sdl.opengl) ? "1" : "0"); in libxl__set_xenstore_vfb()
699 if (vfb->sdl.xauthority) { in libxl__set_xenstore_vfb()
700 flexarray_append_pair(back, "xauthority", vfb->sdl.xauthority); in libxl__set_xenstore_vfb()
702 if (vfb->sdl.display) { in libxl__set_xenstore_vfb()
703 flexarray_append_pair(back, "display", vfb->sdl.display); in libxl__set_xenstore_vfb()
722 static LIBXL_DEFINE_UPDATE_DEVID(vfb)
723 static LIBXL_DEFINE_DEVICE_FROM_TYPE(vfb)
726 LIBXL_DEFINE_DEVICE_REMOVE(vfb)
728 DEFINE_DEVICE_TYPE_STRUCT(vfb, VFB,