diff options
Diffstat (limited to 'scd/scdaemon.h')
-rw-r--r-- | scd/scdaemon.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h index 76d00b1ce..7d43dc129 100644 --- a/scd/scdaemon.h +++ b/scd/scdaemon.h @@ -21,6 +21,7 @@ #ifndef SCDAEMON_H #define SCDAEMON_H +#include <time.h> #include <gcrypt.h> #include "../common/util.h" #include "../common/errors.h" @@ -55,13 +56,15 @@ struct { #define DBG_ASSUAN (opt.debug & DBG_ASSUAN_VALUE) struct server_local_s; +struct card_ctx_s; struct server_control_s { struct server_local_s *server_local; + struct card_ctx_s *card_ctx; }; typedef struct server_control_s *CTRL; - +typedef struct card_ctx_s *CARD; /*-- scdaemon.c --*/ void scd_exit (int rc); @@ -70,5 +73,11 @@ void scd_init_default_ctrl (CTRL ctrl); /*-- command.c --*/ void scd_command_handler (int); +/*-- card.c --*/ +int card_open (CARD *rcard); +void card_close (CARD card); +int card_get_serial_and_stamp (CARD card, char **serial, time_t *stamp); + + #endif /*SCDAEMON_H*/ |