agent: Move a typedef to common and provide parse_pinentry_mode.
authorWerner Koch <wk@gnupg.org>
Wed, 6 Feb 2013 11:49:52 +0000 (12:49 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 6 Feb 2013 11:56:19 +0000 (12:56 +0100)
commit8b2b8dfe5c4cd346bbea2c228e75737bbeeca4c4
treef87e3eeb29b7322fbbf8ced57e70e5b066f9d36c
parent4483a4f0ea030046137ba04905eb5220c14a2161
agent: Move a typedef to common and provide parse_pinentry_mode.

* common/agent-opt.c: New.
* common/shareddefs.h: New.
* common/Makefile.am: Add new files.
* agent/agent.h: Include shareddefs.h.
(pinentry_mode_t): Factor out to shareddefs.h.
* agent/command.c (option_handler): Use parse_pinentry_mode.
agent/agent.h
agent/command.c
common/Makefile.am
common/agent-opt.c [new file with mode: 0644]
common/shareddefs.h [new file with mode: 0644]