forked from xapi-project/xen-api-libs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the concept of versions to rpc-light
Add the line: let version="<version>" to your interface definition file, and this will autogenerate a 'get_version' RPC call to the client and server. This will _not_ be present in the server functor signature. The idea is that the client calls this immediately and asserts that the result is identical to its own binding of 'version'. If this fails, the client can then try to find the correct server version on a different URI. Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
- Loading branch information
Jon Ludlam
authored and
David Scott
committed
Apr 22, 2012
1 parent
71ed6bd
commit 8299569
Showing
3 changed files
with
54 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
let version = "1.0" | ||
|
||
exception TestExn of (int * int) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters