|
| 1 | +(* |
| 2 | + * Copyright (C) Citrix Systems Inc. |
| 3 | + * |
| 4 | + * This program is free software; you can redistribute it and/or modify |
| 5 | + * it under the terms of the GNU Lesser General Public License as published |
| 6 | + * by the Free Software Foundation; version 2.1 only. with the special |
| 7 | + * exception on linking described in file LICENSE. |
| 8 | + * |
| 9 | + * This program is distributed in the hope that it will be useful, |
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | + * GNU Lesser General Public License for more details. |
| 13 | + *) |
| 14 | + |
| 15 | +let service_name = "v6d" |
| 16 | +let queue_name = ref (Xcp_service.common_prefix ^ service_name) |
| 17 | +let default_sockets_dir = "/var/lib/xcp" |
| 18 | +let default_path = ref (Filename.concat default_sockets_dir service_name) |
| 19 | +let uri () = "file:" ^ !default_path |
| 20 | + |
| 21 | +type debug_info = string |
| 22 | + |
| 23 | +exception Invalid_edition of string |
| 24 | +exception V6d_failure |
| 25 | +exception License_expired |
| 26 | +exception License_processing_error |
| 27 | +exception Missing_connection_details |
| 28 | +exception License_checkout_error of string |
| 29 | + |
| 30 | +(* dbg_str -> requested edition -> current params -> |
| 31 | + new edition * new xapi params * new additional params *) |
| 32 | +external apply_edition : debug_info -> string -> (string * string) list -> |
| 33 | + string * (string * string) list * (string * string) list = "" |
| 34 | + |
| 35 | +(* dbg_str -> list of editions *) |
| 36 | +external get_editions : debug_info -> (string * (string * string * int)) list = "" |
| 37 | + |
| 38 | +(* dbg_str -> result *) |
| 39 | +external get_version : debug_info -> string = "" |
0 commit comments