aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ocaml/xenstored/define.ml
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-06 11:04:39 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-06 11:04:39 +0100
commitf44af660412c358c2fd8c9fd15496b4b6e0018d7 (patch)
treed5bd373776217689d401d93d8d82d5c062d05fb8 /tools/ocaml/xenstored/define.ml
parentea8ddf27e5c825229946a8e8b3e0f7ee28903983 (diff)
downloadxen-f44af660412c358c2fd8c9fd15496b4b6e0018d7.tar.gz
xen-f44af660412c358c2fd8c9fd15496b4b6e0018d7.tar.bz2
xen-f44af660412c358c2fd8c9fd15496b4b6e0018d7.zip
ocaml: Add xenstored implementation.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
Diffstat (limited to 'tools/ocaml/xenstored/define.ml')
-rw-r--r--tools/ocaml/xenstored/define.ml40
1 files changed, 40 insertions, 0 deletions
diff --git a/tools/ocaml/xenstored/define.ml b/tools/ocaml/xenstored/define.ml
new file mode 100644
index 0000000000..19a699f6ce
--- /dev/null
+++ b/tools/ocaml/xenstored/define.ml
@@ -0,0 +1,40 @@
+(*
+ * Copyright (C) 2006-2007 XenSource Ltd.
+ * Copyright (C) 2008 Citrix Ltd.
+ * Author Vincent Hanquez <vincent.hanquez@eu.citrix.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; version 2.1 only. with the special
+ * exception on linking described in file LICENSE.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *)
+
+let xenstored_major = 1
+let xenstored_minor = 0
+
+let xenstored_proc_kva = "/proc/xen/xsd_kva"
+let xenstored_proc_port = "/proc/xen/xsd_port"
+
+let xs_daemon_socket = "/var/run/xenstored/socket"
+let xs_daemon_socket_ro = "/var/run/xenstored/socket_ro"
+
+let default_config_dir = "/etc/xensource"
+
+let maxwatch = ref (50)
+let maxtransaction = ref (20)
+
+let domid_self = 0x7FF0
+
+exception Not_a_directory of string
+exception Not_a_value of string
+exception Already_exist
+exception Doesnt_exist
+exception Lookup_Doesnt_exist of string
+exception Invalid_path
+exception Permission_denied
+exception Unknown_operation