view src/lib-storage/index/index-search-result.h @ 14682:d0d7b810646b

Make sure we check all the functions' return values. Minor API changes to simplify this. Checked using a patched clang that adds attribute(warn_unused_result) to all functions. This commit fixes several error handling mistakes.
author Timo Sirainen <tss@iki.fi>
date Mon, 25 Jun 2012 01:14:03 +0300
parents b42ccb84887f
children
line wrap: on
line source

#ifndef INDEX_SEARCH_RESULT_H
#define INDEX_SEARCH_RESULT_H

int index_search_result_update_flags(struct mail_search_result *result,
				     const ARRAY_TYPE(seq_range) *uids);
int index_search_result_update_appends(struct mail_search_result *result,
				       unsigned int old_messages_count);
void index_search_results_update_expunges(struct mailbox *box,
					  const ARRAY_TYPE(seq_range) *expunges);

#endif