X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fmessages.c;fp=lib%2Fmessages.c;h=04fa19f8ec16e4c140e506e1f39f084ba47e09dc;hp=ba8a9777b0842e4bdf16b5bd879b1bd4c27b04b5;hb=46dce33abc82ea6ebd3be2e0887506af4185c739;hpb=21803df6aeb20ff2e91068988441f10fc4b6853a diff --git a/lib/messages.c b/lib/messages.c index ba8a9777..04fa19f8 100644 --- a/lib/messages.c +++ b/lib/messages.c @@ -110,6 +110,18 @@ notmuch_messages_valid (notmuch_messages_t *messages) return (messages->iterator != NULL); } +bool +_notmuch_messages_has_next (notmuch_messages_t *messages) +{ + if (! notmuch_messages_valid (messages)) + return false; + + if (! messages->is_of_list_type) + INTERNAL_ERROR("_notmuch_messages_has_next not implimented for msets"); + + return (messages->iterator->next != NULL); +} + notmuch_message_t * notmuch_messages_get (notmuch_messages_t *messages) {