mirror of
https://gitlab.com/fabinfra/fabaccess/fabaccess-api.git
synced 2025-03-11 22:31:47 +01:00
return structs directly
This commit is contained in:
parent
9c745b79bb
commit
c20703dd5b
@ -61,11 +61,11 @@ struct Response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface Authentication {
|
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
|
# Respond to a challenge with more data. A client MUST NOT call this after having received an
|
||||||
# "successful" response.
|
# "successful" response.
|
||||||
|
|
||||||
abort @1 () -> ();
|
abort @1 ();
|
||||||
# Abort the current exchange. This will invalidate the Authentication making all further calls
|
# 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
|
# to `step` return an error response. A client MUST NOT call this function after
|
||||||
# having received an "successful" response.
|
# having received an "successful" response.
|
||||||
|
@ -24,7 +24,7 @@ struct Version
|
|||||||
|
|
||||||
interface Bootstrap
|
interface Bootstrap
|
||||||
{
|
{
|
||||||
getAPIVersion @0 () -> ( version : Version );
|
getAPIVersion @0 () -> Version;
|
||||||
|
|
||||||
getServerRelease @1 () -> ( name :Text, release :Text );
|
getServerRelease @1 () -> ( name :Text, release :Text );
|
||||||
# Returns the server implementation name and version/build number
|
# Returns the server implementation name and version/build number
|
||||||
|
@ -78,7 +78,7 @@ struct Machine {
|
|||||||
|
|
||||||
manage @11 :Manage;
|
manage @11 :Manage;
|
||||||
interface Manage $CSharp.name("ManageInterface") {
|
interface Manage $CSharp.name("ManageInterface") {
|
||||||
getMachineInfoExtended @0 () -> ( machineInfoExtended :MachineInfoExtended, dummy :UInt8 = 0);
|
getMachineInfoExtended @0 () -> MachineInfoExtended;
|
||||||
|
|
||||||
setProperty @1 (property :General.KeyValuePair);
|
setProperty @1 (property :General.KeyValuePair);
|
||||||
removeProperty @2 (property :General.KeyValuePair);
|
removeProperty @2 (property :General.KeyValuePair);
|
||||||
|
@ -15,7 +15,7 @@ interface MachineSystem
|
|||||||
interface Info $CSharp.name("InfoInterface") {
|
interface Info $CSharp.name("InfoInterface") {
|
||||||
getMachineList @0 () -> ( machine_list :List(Machine) );
|
getMachineList @0 () -> ( machine_list :List(Machine) );
|
||||||
|
|
||||||
getMachine @1 ( id :Text ) -> ( machine :Machine, dummy :UInt8 = 0 );
|
getMachine @1 ( id :Text ) -> Machine;
|
||||||
getMachineURN @2 ( urn :Text ) -> ( machine :Machine, dummy :UInt8 = 0 );
|
getMachineURN @2 ( urn :Text ) -> Machine;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user