package mirage
Source file mirage_impl_qubesdb.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21open Functoria module Key = Mirage_key open Mirage_impl_misc type qubesdb = QUBES_DB let qubesdb = Type.v QUBES_DB let pkg = package ~min:"0.9.0" ~max:"0.10.0" "mirage-qubes" let default_qubesdb = let packages = [ pkg ] in let configure i = match get_target i with | `Qubes | `Xen -> Action.ok () | _ -> Action.error "Qubes DB invoked for an unsupported target; qubes and xen are \ supported" in let connect _ modname _args = Fmt.str "%s.connect ~domid:0 ()" modname in impl ~packages ~configure ~connect "Qubes.DB" qubesdb