diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2011-05-25 18:01:13 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-05-27 16:18:57 -0700 |
commit | d92146d3a6809f8ad940302af49cd99a0820665e (patch) | |
tree | 32e9d39126d39bc864e2932c47d81238fdf08af5 /notmuch-client.h | |
parent | 757e06f74bb7b5f69c0a20c7a5432150e074055d (diff) |
Break up format->part function into part_start and part_content functions.
Future improvements (eg. crypto support) will require adding new part
header. By breaking up the output of part headers from the output of
part content, we can easily out new part headers with new formatting
functions.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index 7221c681..b278bc77 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -65,8 +65,9 @@ typedef struct notmuch_show_format { notmuch_message_t *message); const char *header_end; const char *body_start; - void (*part) (GMimeObject *part, - int *part_count); + void (*part_start) (GMimeObject *part, + int *part_count); + void (*part_content) (GMimeObject *part); void (*part_end) (GMimeObject *part); const char *part_sep; const char *body_end; |