Adds calls to retrieve information to be written to cards

This commit is contained in:
Gregor Reitzenstein 2021-08-28 20:39:17 +02:00
parent 411685d7de
commit 7d14d2d37e

View File

@ -32,6 +32,7 @@ struct User
info @3 :Info; info @3 :Info;
interface Info $CSharp.name("InfoInterface") { interface Info $CSharp.name("InfoInterface") {
getUserInfoExtended @0 () -> ( userInfoExtended :UserInfoExtended ); getUserInfoExtended @0 () -> ( userInfoExtended :UserInfoExtended );
listRoles @1 () -> ( roles :List(Role) );
} }
manage @4 :Manage; manage @4 :Manage;
@ -112,5 +113,15 @@ struct User
unbind @3 ( token :Data ) -> (); unbind @3 ( 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.
getMetaInfo @4 () -> ( bytes :Data );
# Retrieve the blob for File 0001 from the server. The returned bytes are in the correct
# format to be written to the card as-is.
getSpaceInfo @5 () -> ( bytes :Data );
# Retrieve the blob for File 0002 from the server. The returned bytes are in the correct
# format to be written to the card as-is, but a client MAY add or change some information
# contained.
} }
} }