aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'scd/app-common.h')
-rw-r--r--scd/app-common.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index d3d8869fa..3925eacf7 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -70,13 +70,18 @@ typedef enum
} apptype_t;
-/* Formeard declararion. */
+/* Forward declarations. */
+struct card_ctx_s;
+struct app_ctx_s;
struct app_local_s; /* Defined by all app-*.c. */
+typedef struct card_ctx_s *card_t;
+typedef struct app_ctx_s *app_t;
+
/* The object describing a card. */
struct card_ctx_s {
- struct card_ctx_s *next;
+ card_t next;
npth_mutex_t lock;
@@ -114,7 +119,7 @@ struct card_ctx_s {
* several applications and it is usuallay required to explicity
* switch between applications. */
struct app_ctx_s {
- struct app_ctx_s *next;
+ app_t next;
card_t card; /* Link back to the card. */