Selecting an app by AID requires the AID as argument.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-12-22 19:33:02 +01:00
parent 24522b9db8
commit 4682e5821f
3 changed files with 12 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ uint8_t num_apps = 0;
app_t *current_app = NULL;
int register_app(app_t * (*select_aid)()) {
int register_app(app_t * (*select_aid)(app_t *, const uint8_t *, uint8_t)) {
if (num_apps < sizeof(apps)/sizeof(app_t)) {
apps[num_apps].select_aid = select_aid;
num_apps++;