Skip to content

Commit 03ab8bd

Browse files
authored
Merge pull request #144 from kc284/master
CP-20287: expose experimental features to the API
2 parents 8bf3ea9 + acccceb commit 03ab8bd

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

v6/v6_interface.ml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,22 @@ let uri () = "file:" ^ !default_path
2020

2121
type debug_info = string
2222

23+
type edition_info = {
24+
edition: string;
25+
xapi_params: (string * string) list;
26+
additional_params: (string * string) list;
27+
experimental_features: (string * bool) list;
28+
}
29+
2330
exception Invalid_edition of string
2431
exception V6d_failure
2532
exception License_expired
2633
exception License_processing_error
2734
exception Missing_connection_details
2835
exception License_checkout_error of string
2936

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 = ""
37+
(* dbg_str -> requested edition -> current params -> edition_info *)
38+
external apply_edition : debug_info -> string -> (string * string) list -> edition_info = ""
3439

3540
(* dbg_str -> list of editions *)
3641
external get_editions : debug_info -> (string * (string * string * int)) list = ""

0 commit comments

Comments
 (0)