Sorted and Removed unused Functions

This commit is contained in:
TheJoKlLa 2021-08-29 11:51:37 +02:00
parent 7d14d2d37e
commit 1e2590a25d
5 changed files with 28 additions and 29 deletions

View File

@ -23,7 +23,7 @@ interface Bootstrap
permissionSystem @3 () -> ( permissionSystem : PermissionSystem ); permissionSystem @3 () -> ( permissionSystem : PermissionSystem );
interactionSystem @4 () -> ( interactionSystem : InteractionSystem ); #interactionSystem @4 () -> ( interactionSystem : InteractionSystem );
federationSystem @5 () -> ( federationSystem : FederationSystem ); #federationSystem @5 () -> ( federationSystem : FederationSystem );
} }

View File

@ -20,8 +20,8 @@ struct Machine {
reserved @5; reserved @5;
} }
struct MachineInfoExtended { struct MachineInfoExtended {
user @0 :User; currentUser @0 :User;
transferuser @1 :User; transferUser @1 :User;
} }
struct Reservation { struct Reservation {
@ -57,10 +57,9 @@ struct Machine {
inuse @8 :InUse; inuse @8 :InUse;
interface InUse $CSharp.name("InUseInterface") { interface InUse $CSharp.name("InUseInterface") {
giveBack @0 (); giveBack @0 ();
sendRawData @1 (data :Data);
transfer @1 (user: User); #transfer @2 (user: User);
sendRawData @2 (data :Data);
} }
transfer @9 :Transfer; transfer @9 :Transfer;

View File

@ -18,10 +18,10 @@ interface MachineSystem
getMachine @1 ( uuid :General.UUID ) -> ( machine :Machine); getMachine @1 ( uuid :General.UUID ) -> ( machine :Machine);
} }
manage @1 () -> ( manage : Manage ); #manage @1 () -> ( manage : Manage );
interface Manage $CSharp.name("ManageInterface") { #interface Manage $CSharp.name("ManageInterface") {
addMachine @0 (machine :Machine); # addMachine @0 (machine :Machine);
updateMachine @1 (machine :Machine); # updateMachine @1 (machine :Machine);
removeMachine @2 (machine :Machine); # removeMachine @2 (machine :Machine);
} #}
} }

View File

@ -12,11 +12,11 @@ interface PermissionSystem
{ {
info @0 () -> ( info : Info ); info @0 () -> ( info : Info );
interface Info $CSharp.name("InfoInterface") { interface Info $CSharp.name("InfoInterface") {
getRoleList @0 () -> ( role_list :List(Role) );
} }
manage @1 () -> ( manage : Manage ); manage @1 () -> ( manage : Manage );
interface Manage $CSharp.name("ManageInterface") { interface Manage $CSharp.name("ManageInterface") {
getRoleList @0 () -> ( role_list :List(Role) );
} }
} }

View File

@ -21,12 +21,12 @@ struct User
id @0 :General.UUID; id @0 :General.UUID;
firstname @1 :Text; firstname @1 :Text;
lastname @2 :Text; lastname @2 :Text;
address @3 :Address; #address @3 :Address;
struct Address #struct Address
{ # TODO POST*CODE #{ # TODO POST*CODE
text @0 :Text; # text @0 :Text;
} #}
} }
info @3 :Info; info @3 :Info;
@ -37,13 +37,15 @@ struct User
manage @4 :Manage; manage @4 :Manage;
interface Manage $CSharp.name("ManageInterface") { interface Manage $CSharp.name("ManageInterface") {
pwd @0 ( pwd :Text ) -> (); pwd @0 ( old_pwd :Text, new_pwd :Text ) -> ();
} }
admin @5 :Admin; admin @5 :Admin;
interface Admin $CSharp.name("AdminInterface") { interface Admin $CSharp.name("AdminInterface") {
addRole @0 ( role :Role ) -> (); addRole @0 ( role :Role ) -> ();
removeRole @1 ( role :Role ) -> (); removeRole @1 ( role :Role ) -> ();
pwd @2 ( new_pwd :Text ) -> ();
} }
cardDESFireEV2 @6 :CardDESFireEV2; cardDESFireEV2 @6 :CardDESFireEV2;
@ -96,24 +98,22 @@ struct User
# It is empty but by being access restricted allows the home server to validate the card as # It is empty but by being access restricted allows the home server to validate the card as
# being genuine and thus finalizing the authentication of the user. # being genuine and thus finalizing the authentication of the user.
getTokenList @0 () -> ( token_list :List(Data) );
getTokenList @0 () -> ( tokens :List(Data) );
# Get a list of all user Token currently bound to an user. This will generally be the number # Get a list of all user Token currently bound to an user. This will generally be the number
# of cards they use. # of cards they use.
genCardToken @1 () -> ( token :Data ); bind @1 ( token :Data, auth_key :Data ) -> ();
# Generate a new Token that can be used to access an user in a pseudonymized fashion.
# This call is extremely cheap to make as the server will not store this Token.
bind @2 ( token :Data, auth_key :Data ) -> ();
# Bind a given URL to a given auth key. The server will store both URL and key, so using # Bind a given URL to a given auth key. The server will store both URL and key, so using
# this frequently will force the server to store large amounts of data. # this frequently will force the server to store large amounts of data.
# Trying to bind a new key to an existing URL will fail. # Trying to bind a new key to an existing URL will fail.
unbind @3 ( token :Data ) -> (); unbind @2 ( token :Data ) -> ();
# Unbind the key associated with the given token. This will fail all future attempts to use # Unbind the key associated with the given token. This will fail all future attempts to use
# the card with the associated key. # the card with the associated key.
genCardToken @3 () -> ( token :Data );
# Generate a new Token that can be used to access an user in a pseudonymized fashion.
# This call is extremely cheap to make as the server will not store this Token.
getMetaInfo @4 () -> ( bytes :Data ); getMetaInfo @4 () -> ( bytes :Data );
# Retrieve the blob for File 0001 from the server. The returned bytes are in the correct # Retrieve the blob for File 0001 from the server. The returned bytes are in the correct