aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-11-03 19:09:34 +0000
committerWerner Koch <[email protected]>2008-11-03 19:09:34 +0000
commit4019792423f4f3f2eb9d4d3ca173ffe286f801d8 (patch)
treea8a8f14012fb62257b486c8c936a7b50e6f2a22f /scd/app-common.h
parentUse bin2hex if possible. (diff)
downloadgnupg-4019792423f4f3f2eb9d4d3ca173ffe286f801d8.tar.gz
gnupg-4019792423f4f3f2eb9d4d3ca173ffe286f801d8.zip
Fixed the card removed with cached app bug. (Famous last fix).
Diffstat (limited to 'scd/app-common.h')
-rw-r--r--scd/app-common.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index 96fbb92aa..fe98bf832 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -38,14 +38,13 @@
struct app_local_s; /* Defined by all app-*.c. */
struct app_ctx_s {
- int initialized; /* The application has been initialied and the
- function pointers may be used. Note that for
- unsupported operations the particular
- function pointer is set to NULL */
-
- int ref_count; /* Number of connections currently using this
- application context. fixme: We might want to
- merg this witghn INITIALIZED above. */
+ unsigned int ref_count; /* Number of connections currently using
+ this application context. If this is
+ not 0 the application has been
+ initialized and the function pointers
+ may be used. Note that for unsupported
+ operations the particular function
+ pointer is set to NULL */
int slot; /* Used reader. */
@@ -138,7 +137,7 @@ size_t app_help_read_length_of_cert (int slot, int fid, size_t *r_certoff);
/*-- app.c --*/
void app_dump_state (void);
-void application_notify_card_removed (int slot);
+void application_notify_card_reset (int slot);
gpg_error_t check_application_conflict (ctrl_t ctrl, const char *name);
gpg_error_t select_application (ctrl_t ctrl, int slot, const char *name,
app_t *r_app);