Debian Codegraph @

tools/ocaml/libs/xs/xsraw.mli

raw symbols SCIP
1 (*
2 * Copyright (C) 2006-2007 XenSource Ltd.
3 * Copyright (C) 2008 Citrix Ltd.
4 * Author Vincent Hanquez <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation; version 2.1 only. with the special
9 * exception on linking described in file LICENSE.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *)
16 exception Partial_not_empty
17 exception Unexpected_packet of string
18 exception Invalid_path of string
19 val unexpected_packet : Xenbus.Xb.Op.operation -> Xenbus.Xb.Op.operation -> 'a
20 type con = { xb : Xenbus.Xb.t; watchevents : (string * string) Queue.t; }
21 val close : con -> unit
22 val open_fd : Unix.file_descr -> con
23 val split_string : ?limit:int -> char -> string -> string list
24 type perm = PERM_NONE | PERM_READ | PERM_WRITE | PERM_RDWR
25 type perms = int * perm * (int * perm) list
26 val string_of_perms : int * perm * (int * perm) list -> string
27 val perms_of_string : string -> int * perm * (int * perm) list
28 val pkt_send : con -> unit
29 val pkt_recv : con -> Xenbus.Xb.Packet.t
30 val pkt_recv_timeout : con -> float -> bool * Xenbus.Xb.Packet.t option
31 val queue_watchevent : con -> string -> unit
32 val has_watchevents : con -> bool
33 val get_watchevent : con -> string * string
34 val read_watchevent : con -> string * string
35 val sync_recv : Xenbus.Xb.Op.operation -> con -> string
36 val sync : (Xenbus.Xb.t -> unit) -> con -> string
37 val ack : string -> unit
38 val validate_path : string -> unit
39 val validate_watch_path : string -> unit
40 val directory : int -> string -> con -> string list
41 val debug : string list -> con -> string
42 val read : int -> string -> con -> string
43 val readv : int -> string -> string list -> con -> string list
44 val getperms : int -> string -> con -> int * perm * (int * perm) list
45 val watch : string -> string -> con -> unit
46 val unwatch : string -> string -> con -> unit
47 val transaction_start : con -> int
48 val transaction_end : int -> bool -> con -> bool
49 val introduce : int -> nativeint -> int -> con -> unit
50 val release : int -> con -> unit
51 val resume : int -> con -> unit
52 val getdomainpath : int -> con -> string
53 val write : int -> string -> string -> con -> unit
54 val writev : int -> string -> (string * string) list -> con -> unit
55 val mkdir : int -> string -> con -> unit
56 val rm : int -> string -> con -> unit
57 val setperms : int -> string -> int * perm * (int * perm) list -> con -> unit
58 val setpermsv :
59 int ->
60 string -> string list -> int * perm * (int * perm) list -> con -> unit