Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/mail-namespace.h @ 7912:81806d402514 HEAD
Added more consts, ATTR_CONSTs and ATTR_PUREs.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 20 Jun 2008 10:41:44 +0300 |
parents | 4fb1b0f43d60 |
children | db66611fd195 |
line wrap: on
line diff
--- a/src/lib-storage/mail-namespace.h Fri Jun 20 10:41:27 2008 +0300 +++ b/src/lib-storage/mail-namespace.h Fri Jun 20 10:41:44 2008 +0300 @@ -53,7 +53,8 @@ const char *name); /* Returns the hierarchy separator for mailboxes that are listed at root. */ -char mail_namespace_get_root_sep(struct mail_namespace *namespaces); +char mail_namespace_get_root_sep(const struct mail_namespace *namespaces) + ATTR_PURE; /* Returns namespace based on the mailbox name's prefix. Updates mailbox to be a valid name inside the namespace (prefix is skipped, hierarchy separator @@ -73,7 +74,7 @@ mail_namespace_find_inbox(struct mail_namespace *namespaces); /* Returns TRUE if the given namespace matches the mailbox's prefix. Updates mailbox name to be a valid name inside the namespace. */ -bool mail_namespace_update_name(struct mail_namespace *ns, +bool mail_namespace_update_name(const struct mail_namespace *ns, const char **mailbox); /* Find a namespace with given prefix. */