diff options
author | Werner Koch <[email protected]> | 2021-02-19 09:15:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-02-19 09:15:54 +0000 |
commit | 6d4280b13ddc928ff6bc41bdf482030f0f814fdb (patch) | |
tree | e66561880611e5fcd58f3cb4a13868f06d5fc366 /scd/app-common.h | |
parent | po: Update Japanese Translation. (diff) | |
download | gnupg-6d4280b13ddc928ff6bc41bdf482030f0f814fdb.tar.gz gnupg-6d4280b13ddc928ff6bc41bdf482030f0f814fdb.zip |
scd: Minor tweak for easier backporting
* scd/app-common.h (APP_CARD): New. Use it in app-*.c to access
app->card.
--
This should help to make backporting to 2.2 easier.
Diffstat (limited to 'scd/app-common.h')
-rw-r--r-- | scd/app-common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scd/app-common.h b/scd/app-common.h index ad96fc2d6..ace299ba7 100644 --- a/scd/app-common.h +++ b/scd/app-common.h @@ -215,6 +215,12 @@ app_get_slot (app_t app) } +/* Macro to access members in app->card. We use this macro because in + * 2.2 many members are stored directly in app_t and this way we can + * easier backport stuff. */ +#define APP_CARD(a) ((a)->card) + + /*-- app-help.c --*/ unsigned int app_help_count_bits (const unsigned char *a, size_t len); gpg_error_t app_help_get_keygrip_string_pk (const void *pk, size_t pklen, |