2 * Simple prototyle Xen Store Daemon providing simple tree-like database.
3 * Copyright (C) 2005 Rusty Russell IBM Corporation
5 * This file may be distributed separately from the Linux kernel, or
6 * incorporated into other software packages, subject to the following license:
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this source file (the "Software"), to deal in the Software without
10 * restriction, including without limitation the rights to use, copy, modify,
11 * merge, publish, distribute, sublicense, and/or sell copies of the Software,
12 * and to permit persons to whom the Software is furnished to do so, subject to
13 * the following conditions:
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
42 XS_OP_READ_ONLY = XS_TRANSACTION_END,
54 #define XS_WRITE_NONE "NONE"
55 #define XS_WRITE_CREATE "CREATE"
56 #define XS_WRITE_CREATE_EXCL "CREATE|EXCL"
58 /* We hand errors as strings, for portability. */
62 const char *errstring;
64 #define XSD_ERROR(x) { x, #x }
65 static struct xsd_errors xsd_errors[] __attribute__((unused)) = {
84 uint32_t len; /* Length of data following this. */
86 /* Generally followed by nul-terminated string(s). */
89 #endif /* _XENSTORED_H */