comparison src/lib-storage/list/mailbox-list-index-notify.c @ 14920:a097ef0a9d6d

Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name Easy way to update your existing code: perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch]
author Timo Sirainen <tss@iki.fi>
date Sun, 19 Aug 2012 14:21:37 +0300
parents a16d77a075bb
children fcd480c4a0db
comparison
equal deleted inserted replaced
14919:ed0fd7c1e8ff 14920:a097ef0a9d6d
45 void *wait_context; 45 void *wait_context;
46 struct io *io_wait; 46 struct io *io_wait;
47 struct timeout *to_wait, *to_notify; 47 struct timeout *to_wait, *to_notify;
48 48
49 ARRAY_TYPE(seq_range) new_uids, expunged_uids, changed_uids; 49 ARRAY_TYPE(seq_range) new_uids, expunged_uids, changed_uids;
50 ARRAY_DEFINE(renames, struct mailbox_list_notify_rename); 50 ARRAY(struct mailbox_list_notify_rename) renames;
51 struct seq_range_iter new_uids_iter, expunged_uids_iter; 51 struct seq_range_iter new_uids_iter, expunged_uids_iter;
52 struct seq_range_iter changed_uids_iter; 52 struct seq_range_iter changed_uids_iter;
53 unsigned int new_uids_n, expunged_uids_n, changed_uids_n; 53 unsigned int new_uids_n, expunged_uids_n, changed_uids_n;
54 unsigned int rename_idx; 54 unsigned int rename_idx;
55 55
341 static void 341 static void
342 mailbox_list_index_notify_find_renames(struct mailbox_list_notify_index *inotify) 342 mailbox_list_index_notify_find_renames(struct mailbox_list_notify_index *inotify)
343 { 343 {
344 struct mailbox_list_index *ilist = 344 struct mailbox_list_index *ilist =
345 INDEX_LIST_CONTEXT(inotify->notify.list); 345 INDEX_LIST_CONTEXT(inotify->notify.list);
346 ARRAY_DEFINE(entries, struct mailbox_list_inotify_entry); 346 ARRAY(struct mailbox_list_inotify_entry) entries;
347 struct mailbox_status status; 347 struct mailbox_status status;
348 struct mailbox_list_notify_rename *rename; 348 struct mailbox_list_notify_rename *rename;
349 struct mailbox_list_inotify_entry *entry; 349 struct mailbox_list_inotify_entry *entry;
350 const struct mailbox_list_inotify_entry *e; 350 const struct mailbox_list_inotify_entry *e;
351 unsigned int i, count; 351 unsigned int i, count;