Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-index/mail-transaction-log.h @ 3863:55df57c028d4 HEAD
Added "bool" type and changed all ints that were used as booleans to bool.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 13 Jan 2006 22:25:57 +0200 |
parents | 318c70c1d4ec |
children | 928229f8b3e6 |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log.h Fri Jan 13 17:11:47 2006 +0200 +++ b/src/lib-index/mail-transaction-log.h Fri Jan 13 22:25:57 2006 +0200 @@ -126,7 +126,7 @@ Returns -1 if error, 0 if we're at end of the view, 1 if ok. */ int mail_transaction_log_view_next(struct mail_transaction_log_view *view, const struct mail_transaction_header **hdr_r, - const void **data_r, int *skipped_r); + const void **data_r, bool *skipped_r); /* Returns the position of the record returned previously with mail_transaction_log_view_next() */ @@ -140,7 +140,7 @@ mail_transaction_log_view_set_corrupted(struct mail_transaction_log_view *view, const char *fmt, ...) __attr_format__(2, 3); -int +bool mail_transaction_log_view_is_corrupted(struct mail_transaction_log_view *view); void mail_transaction_log_views_close(struct mail_transaction_log *log); @@ -162,7 +162,7 @@ void mail_transaction_log_get_head(struct mail_transaction_log *log, uint32_t *file_seq_r, uoff_t *file_offset_r); /* Returns TRUE if given seq/offset is current head log's rotate point. */ -int mail_transaction_log_is_head_prev(struct mail_transaction_log *log, - uint32_t file_seq, uoff_t file_offset); +bool mail_transaction_log_is_head_prev(struct mail_transaction_log *log, + uint32_t file_seq, uoff_t file_offset); #endif