[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-list.c,1.9,1.10 mbox-storage.h,1.11,1.12
cras at procontrol.fi
cras at procontrol.fi
Sat Jan 11 21:55:59 EET 2003
- Previous message: [dovecot-cvs] dovecot/src/lib-index/mbox mbox-append.c,1.37,1.38 mbox-index.c,1.59,1.60 mbox-index.h,1.23,1.24 mbox-lock.c,1.23,1.24 mbox-rewrite.c,1.50,1.51 mbox-sync-full.c,1.9,1.10
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-copy.c,1.17,1.18 maildir-list.c,1.7,1.8 maildir-storage.h,1.9,1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory danu:/tmp/cvs-serv27659/lib-storage/index/mbox
Modified Files:
mbox-list.c mbox-storage.h
Log Message:
Naming change for function typedefs.
Index: mbox-list.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-list.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- mbox-list.c 5 Jan 2003 13:09:53 -0000 1.9
+++ mbox-list.c 11 Jan 2003 19:55:57 -0000 1.10
@@ -11,13 +11,13 @@
#include <sys/stat.h>
struct find_subscribed_context {
- MailboxFunc func;
+ mailbox_list_callback_t callback;
void *context;
};
static int mbox_find_path(struct mail_storage *storage,
struct imap_match_glob *glob,
- MailboxFunc func, void *context,
+ mailbox_list_callback_t callback, void *context,
const char *relative_dir)
{
DIR *dirp;
@@ -112,10 +112,10 @@
if (S_ISDIR(st.st_mode)) {
/* subdirectory, scan it too */
t_push();
- func(storage, listpath, MAILBOX_NOSELECT, context);
+ callback(storage, listpath, MAILBOX_NOSELECT, context);
t_pop();
- if (!mbox_find_path(storage, glob, func,
+ if (!mbox_find_path(storage, glob, callback,
context, listpath)) {
failed = TRUE;
break;
@@ -123,7 +123,7 @@
} else if (match > 0 &&
strcmp(fullpath, storage->inbox_file) != 0) {
t_push();
- func(storage, listpath, MAILBOX_NOINFERIORS, context);
+ callback(storage, listpath, MAILBOX_NOINFERIORS, context);
t_pop();
}
}
@@ -148,7 +148,7 @@
}
int mbox_find_mailboxes(struct mail_storage *storage, const char *mask,
- MailboxFunc func, void *context)
+ mailbox_list_callback_t callback, void *context)
{
struct imap_match_glob *glob;
const char *relative_dir;
@@ -168,17 +168,17 @@
glob = imap_match_init(mask, TRUE, '/');
if (relative_dir == NULL && imap_match(glob, "INBOX") > 0) {
/* INBOX exists always, even if the file doesn't. */
- func(storage, "INBOX", MAILBOX_NOINFERIORS, context);
+ callback(storage, "INBOX", MAILBOX_NOINFERIORS, context);
}
- if (!mbox_find_path(storage, glob, func, context, relative_dir))
+ if (!mbox_find_path(storage, glob, callback, context, relative_dir))
return FALSE;
return TRUE;
}
-static int mbox_subs_func(struct mail_storage *storage, const char *name,
- void *context)
+static int mbox_subs_cb(struct mail_storage *storage, const char *name,
+ void *context)
{
struct find_subscribed_context *ctx = context;
enum mailbox_flags flags;
@@ -195,19 +195,19 @@
0 : MAILBOX_NOSELECT;
}
- ctx->func(storage, name, flags, ctx->context);
+ ctx->callback(storage, name, flags, ctx->context);
return TRUE;
}
int mbox_find_subscribed(struct mail_storage *storage, const char *mask,
- MailboxFunc func, void *context)
+ mailbox_list_callback_t callback, void *context)
{
struct find_subscribed_context ctx;
- ctx.func = func;
+ ctx.callback = callback;
ctx.context = context;
- if (subsfile_foreach(storage, mask, mbox_subs_func, &ctx) <= 0)
+ if (subsfile_foreach(storage, mask, mbox_subs_cb, &ctx) <= 0)
return FALSE;
return TRUE;
Index: mbox-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mbox-storage.h 5 Jan 2003 13:09:53 -0000 1.11
+++ mbox-storage.h 11 Jan 2003 19:55:57 -0000 1.12
@@ -11,9 +11,9 @@
struct istream *data, uoff_t data_size);
int mbox_find_mailboxes(struct mail_storage *storage, const char *mask,
- MailboxFunc func, void *context);
+ mailbox_list_callback_t callback, void *context);
int mbox_find_subscribed(struct mail_storage *storage, const char *mask,
- MailboxFunc func, void *context);
+ mailbox_list_callback_t callback, void *context);
int mbox_expunge_locked(struct index_mailbox *ibox, int notify);
- Previous message: [dovecot-cvs] dovecot/src/lib-index/mbox mbox-append.c,1.37,1.38 mbox-index.c,1.59,1.60 mbox-index.h,1.23,1.24 mbox-lock.c,1.23,1.24 mbox-rewrite.c,1.50,1.51 mbox-sync-full.c,1.9,1.10
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-copy.c,1.17,1.18 maildir-list.c,1.7,1.8 maildir-storage.h,1.9,1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list