8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen/* NOTE: if mbox file is not open, it's opened. if it is open but file has
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen been overwritten (ie. inode has changed), it's reopened. */
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainenint mbox_lock(struct mbox_mailbox *mbox, int lock_type,
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen unsigned int *lock_id_r);
b66d803de86bfb411165b3465b0d9ef64ecfe2a1Timo Sirainenmbox_unlock(struct mbox_mailbox *mbox, unsigned int lock_id);
86c6b2546b0bbfce326583f14d05f59674a6d861Timo Sirainenunsigned int mbox_get_cur_lock_id(struct mbox_mailbox *mbox);