]> git.notmuchmail.org Git - notmuch/commit
pass entire format structure to various show_message functions
authorJameson Graef Rollins <jrollins@finestructure.net>
Fri, 20 May 2011 18:45:33 +0000 (11:45 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 20 May 2011 19:27:35 +0000 (12:27 -0700)
commitdcdb8430945e6323d78997ce47639eebc683c6d3
tree2524848a50faad38083e4d75cdf1f5eedc7b21cc
parent8b9fc33d9904070d88e8b94711f613886b2eb2db
pass entire format structure to various show_message functions

Various show_message* functions require formatting functions, which
were previously being passed individually as arguments.  Since we will
need to be needing to passing in more formatting function in the
future (ie. for crypto support), we here modify things so that we just
pass in the entire format structure.  This will make things much
simpler down the line as we need to pass in new format functions.

We move the show_format structure into notmuch-client.c as
notmuch_show_format.  This also affects notmuch-reply.c, so we create
a mostly-empty format_reply to pass the reply_part function to
show_message_body.
notmuch-client.h
notmuch-reply.c
notmuch-show.c
show-message.c