| NotifyTcp6 of string
| NotifyTcp of Unix.inet_addr * int
| NotifyUnix of string
+ | NotifyDBus of string option
| NotifyNone
let string_of_notify ty =
| NotifyTcp6 s -> sprintf "tcp6,%s" s
| NotifyTcp (iaddr, port) -> sprintf "tcp,%s:%d" "" port
| NotifyUnix path -> sprintf "unix,%s" path
+ | NotifyDBus path -> sprintf "dbus%s" (match path with None -> "" | Some path -> "," ^ path)
| NotifyNone -> ""
type snapshot_mode =
failwith "notify: tcp6 not implemented"
| "unix" :: path :: [] ->
NotifyUnix path
+ | "dbus" :: args -> (
+ match args with
+ | [] -> NotifyDBus (None)
+ | path :: [] -> NotifyDBus (Some path)
+ | _ -> failwith "notify: bad dbus format"
+ )
| _ ->
failwith "bah"