dovecot-2.2: lib: Added guid_128_copy()

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 22 00:00:17 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/40cca8d452f5
changeset: 17978:40cca8d452f5
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 22 02:59:22 2014 +0300
description:
lib: Added guid_128_copy()

diffstat:

 src/lib/guid.h |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r df5be9847b13 -r 40cca8d452f5 src/lib/guid.h
--- a/src/lib/guid.h	Tue Oct 21 23:34:50 2014 +0300
+++ b/src/lib/guid.h	Wed Oct 22 02:59:22 2014 +0300
@@ -14,6 +14,11 @@
 bool guid_128_is_empty(const guid_128_t guid);
 /* Returns TRUE if two GUIDs are equal. */
 bool guid_128_equals(const guid_128_t guid1, const guid_128_t guid2);
+/* Copy GUID */
+static inline void guid_128_copy(guid_128_t dest, const guid_128_t src)
+{
+	memcpy(dest, src, GUID_128_SIZE);
+}
 
 /* Returns GUID as a hex string. */
 const char *guid_128_to_string(const guid_128_t guid);


More information about the dovecot-cvs mailing list