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
35exception Not_a_directory of string
36exception Not_a_value of string
37exception Already_exist
38exception Doesnt_exist
39exception Lookup_Doesnt_exist of string
40exception Invalid_path
41exception Permission_denied
42exception Unknown_operation
43