Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

smapiv2: move "query" into the module "Query" for consistency with xe…

…nops
  • Loading branch information...
commit 66cc2d43484271d42d8142add894dbb9c5dfc000 1 parent 29a5730
@djs55 authored
Showing with 30 additions and 0 deletions.
  1. +30 −0 smapiv2.ml
View
30 smapiv2.ml
@@ -108,6 +108,36 @@ let api =
];
interfaces =
[
+ {
+ Interface.name = "Query";
+ description = "Discover properties of this implementation";
+ type_decls = [
+ {
+ TyDecl.name = "query_result";
+ description = "properties of this implementation";
+ ty = Type.(Struct( ("name", Basic String, "short name"), [
+ "vendor", Basic String, "entity which produced this implementation";
+ "version", Basic String, "version";
+ "features", Array (Basic String), "features supported by this plugin"
+ ]))
+ }
+ ];
+ methods = [
+ {
+ Method.name = "query";
+ description = "Query the implementation and return its properties";
+ inputs = [];
+ outputs = [
+ {
+ Arg.name = "query_result";
+ ty = Type.Name "query_result";
+ description = "The properies of this implementation"
+ }
+ ]
+ }
+ ]
+ };
+
{
Interface.name = "VDI";
description = "Operations which operate on Virtual Disk Images";
Please sign in to comment.
Something went wrong with that request. Please try again.