mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tools: Give mime parser callbacks access to the rfc822 parser.
* tools/mime-parser.c (mime_parser_context_s): Add field MSG. (parse_message_cb): Set it. (mime_parser_rfc822parser): New. * tools/mime-parser.h: Declare rfc822parse_t for the new prototype. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
9e6f8a55ed
commit
4ac138c84d
2 changed files with 24 additions and 0 deletions
|
@ -48,5 +48,12 @@ void mime_parser_set_collect_signature (mime_parser_t ctx,
|
|||
gpg_error_t mime_parser_parse (mime_parser_t ctx, estream_t fp);
|
||||
|
||||
|
||||
/* Duplicated declaration of the RFC822 parser context. */
|
||||
struct rfc822parse_context;
|
||||
typedef struct rfc822parse_context *rfc822parse_t;
|
||||
|
||||
rfc822parse_t mime_parser_rfc822parser (mime_parser_t ctx);
|
||||
|
||||
|
||||
|
||||
#endif /*GNUPG_MIME_PARSER_H*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue