scd: Add code to check whether app switching is possible.
* scd/app.c (check_conflict): Fold into ... (check_application_conflict): this and adjust callers. Return a different error code if it is possible to switch apps.
Right now this change does nothing visible.
- Signed-off-by: Werner Koch <wk@gnupg.org>