changeset 10255:b2925a5d9cf7 HEAD

lib-storage: Moved mail_generate_*() to be public functions.
author Timo Sirainen <tss@iki.fi>
date Thu, 05 Nov 2009 17:03:47 -0500
parents ea4a80ee0283
children ba3574ed9f74
files src/lib-storage/mail-storage-private.h src/lib-storage/mail-storage.h
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/mail-storage-private.h	Thu Nov 05 15:24:36 2009 -0500
+++ b/src/lib-storage/mail-storage-private.h	Thu Nov 05 17:03:47 2009 -0500
@@ -434,8 +434,6 @@
 void mail_storage_set_internal_error(struct mail_storage *storage);
 bool mail_storage_set_error_from_errno(struct mail_storage *storage);
 
-const char *mail_generate_guid_string(void);
-void mail_generate_guid_128(uint8_t guid[MAIL_GUID_128_SIZE]);
 int mail_set_aborted(struct mail *mail);
 void mail_set_expunged(struct mail *mail);
 void mailbox_set_deleted(struct mailbox *box);
--- a/src/lib-storage/mail-storage.h	Thu Nov 05 15:24:36 2009 -0500
+++ b/src/lib-storage/mail-storage.h	Thu Nov 05 17:03:47 2009 -0500
@@ -666,6 +666,10 @@
 /* Mark a cached field corrupted and have it recalculated. */
 void mail_set_cache_corrupted(struct mail *mail, enum mail_fetch_field field);
 
+/* Generate a GUID (contains host name) */
+const char *mail_generate_guid_string(void);
+/* Generate 128 bit GUID */
+void mail_generate_guid_128(uint8_t guid[MAIL_GUID_128_SIZE]);
 /* Return 128 bit GUID using input string. If guid is already 128 bit hex
    encoded, it's returned as-is. Otherwise SHA1 sum is taken and its last
    128 bits are returned. */