]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Moved mail_generate_*() to be public functions.
authorTimo Sirainen <tss@iki.fi>
Thu, 5 Nov 2009 22:03:47 +0000 (17:03 -0500)
committerTimo Sirainen <tss@iki.fi>
Thu, 5 Nov 2009 22:03:47 +0000 (17:03 -0500)
--HG--
branch : HEAD

src/lib-storage/mail-storage-private.h
src/lib-storage/mail-storage.h

index a26b152b141cf75fa0c1dcb1679df6167d129c65..b17111af3c820561004264b2427287fb908496e0 100644 (file)
@@ -434,8 +434,6 @@ void mail_storage_set_critical(struct mail_storage *storage,
 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);
index a8dea92c5198e486e8fb29b7b1f4c239ff5d2b6b..84fb4cf051492a3af1bfa742dc307192e8a12898 100644 (file)
@@ -666,6 +666,10 @@ void mail_expunge(struct mail *mail);
 /* 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. */