return structs directly

This commit is contained in:
Nadja Reitzenstein 2022-03-12 14:37:25 +01:00
parent 9c745b79bb
commit c20703dd5b
4 changed files with 6 additions and 6 deletions

View File

@ -61,11 +61,11 @@ struct Response {
}
interface Authentication {
step @0 ( data: Data ) -> ( response: Response );
step @0 ( data: Data ) -> Response;
# Respond to a challenge with more data. A client MUST NOT call this after having received an
# "successful" response.
abort @1 () -> ();
abort @1 ();
# Abort the current exchange. This will invalidate the Authentication making all further calls
# to `step` return an error response. A client MUST NOT call this function after
# having received an "successful" response.

View File

@ -24,7 +24,7 @@ struct Version
interface Bootstrap
{
getAPIVersion @0 () -> ( version : Version );
getAPIVersion @0 () -> Version;
getServerRelease @1 () -> ( name :Text, release :Text );
# Returns the server implementation name and version/build number

View File

@ -78,7 +78,7 @@ struct Machine {
manage @11 :Manage;
interface Manage $CSharp.name("ManageInterface") {
getMachineInfoExtended @0 () -> ( machineInfoExtended :MachineInfoExtended, dummy :UInt8 = 0);
getMachineInfoExtended @0 () -> MachineInfoExtended;
setProperty @1 (property :General.KeyValuePair);
removeProperty @2 (property :General.KeyValuePair);

View File

@ -15,7 +15,7 @@ interface MachineSystem
interface Info $CSharp.name("InfoInterface") {
getMachineList @0 () -> ( machine_list :List(Machine) );
getMachine @1 ( id :Text ) -> ( machine :Machine, dummy :UInt8 = 0 );
getMachineURN @2 ( urn :Text ) -> ( machine :Machine, dummy :UInt8 = 0 );
getMachine @1 ( id :Text ) -> Machine;
getMachineURN @2 ( urn :Text ) -> Machine;
}
}