diff options
| author | Werner Koch <[email protected]> | 2019-06-21 08:23:35 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2019-06-21 09:42:59 +0000 |
| commit | 43dcf93407d6d2b87b6e7db74fd05fd237495bfe (patch) | |
| tree | 508f393126fd9994b7eea9a6523676be5872b949 /scd/scdaemon.h | |
| parent | gpg: Very minor code cleanup. (diff) | |
| download | gnupg-43dcf93407d6d2b87b6e7db74fd05fd237495bfe.tar.gz gnupg-43dcf93407d6d2b87b6e7db74fd05fd237495bfe.zip | |
scd: Simplify inclusion of app-common.h.
* scd/scdaemon.h: Include app-common.h. Remove inclusion of that
header from all other files.
(card_t, app_t): Move typedef to ...
* scd/app-common.h: here. Use them in the defs.
--
In another patch we will need apptype_t in the ctrl object and thus we
need to reorganize things a bit now. Given that most files need
app-common anyway it makes sense to always include it.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/scdaemon.h')
| -rw-r--r-- | scd/scdaemon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h index f4a243703..d9c476d52 100644 --- a/scd/scdaemon.h +++ b/scd/scdaemon.h @@ -30,6 +30,8 @@ #include <gcrypt.h> #include "../common/util.h" #include "../common/sysutils.h" +#include "app-common.h" + /* To convey some special hash algorithms we use algorithm numbers reserved for application use. */ @@ -112,8 +114,6 @@ struct server_control_s } in_data; }; -typedef struct card_ctx_s *card_t; -typedef struct app_ctx_s *app_t; /*-- scdaemon.c --*/ void scd_exit (int rc); |
