1(*
2 * Copyright (C) 2006-2007 XenSource Ltd.
3 * Copyright (C) 2008      Citrix Ltd.
4 * Author Vincent Hanquez <vincent.hanquez@eu.citrix.com>
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
17let xenstored_major = 1
18let xenstored_minor = 0
19
20let xs_daemon_socket = Paths.xen_run_stored ^ "/socket"
21let xs_daemon_socket_ro = Paths.xen_run_stored ^ "/socket_ro"
22
23let default_config_dir = Paths.xen_config_dir
24
25let maxwatch = ref (50)
26let maxtransaction = ref (20)
27let maxrequests = ref (-1)   (* maximum requests per transaction *)
28
29let conflict_burst_limit = ref 5.0
30let conflict_max_history_seconds = ref 0.05
31let conflict_rate_limit_is_aggregate = ref true
32
33let domid_self = 0x7FF0
34
35let path_max = ref Xenbus.Partial.xenstore_rel_path_max
36
37exception Not_a_directory of string
38exception Not_a_value of string
39exception Already_exist
40exception Doesnt_exist
41exception Lookup_Doesnt_exist of string
42exception Invalid_path
43exception Permission_denied
44exception Unknown_operation
45