From 6c2417cabc1b35ea4fc9db6493d85354b1039d6d Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Sun, 22 May 2011 19:56:53 -0700 Subject: add part_sep formatter to replace "first" argument to part format functions A new field "part_sep" is added to the notmuch_show_format structure, to be used for part separation. This is cleaner than the "first" argument that was being passed around to the part arguments, and allows the function that handles overall part output formatting (show_message_part) to directly handle when outputting the separator. --- notmuch-client.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'notmuch-client.h') diff --git a/notmuch-client.h b/notmuch-client.h index 8899ab26..5e8e3e53 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -66,9 +66,9 @@ typedef struct notmuch_show_format { const char *header_end; const char *body_start; void (*part) (GMimeObject *part, - int *part_count, - int first); + int *part_count); void (*part_end) (GMimeObject *part); + const char *part_sep; const char *body_end; const char *message_end; const char *message_set_sep; -- cgit v1.2.3