From 6e108aed24f9993be4d69147e18322d2d58b34d1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 14 Feb 2010 23:58:58 +0000 Subject: [PATCH] max --- src/include/gnunet_hello_lib.h | 1 + src/include/gnunet_time_lib.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h index 8978890f0..d7d116c74 100644 --- a/src/include/gnunet_hello_lib.h +++ b/src/include/gnunet_hello_lib.h @@ -120,6 +120,7 @@ struct GNUNET_HELLO_Message *GNUNET_HELLO_merge (const struct GNUNET_HELLO_Message *h2); + /** * Iterator callback to go over all addresses. * diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h index d00867e80..8336a04fd 100644 --- a/src/include/gnunet_time_lib.h +++ b/src/include/gnunet_time_lib.h @@ -217,6 +217,19 @@ struct GNUNET_TIME_Absolute GNUNET_TIME_absolute_min (struct struct GNUNET_TIME_Absolute t2); +/** + * Return the maximum of two absolute time values. + * + * @param t1 first timestamp + * @param t2 other timestamp + * @return timestamp that is smaller + */ +struct GNUNET_TIME_Absolute GNUNET_TIME_absolute_max (struct + GNUNET_TIME_Absolute + t1, + struct + GNUNET_TIME_Absolute t2); + /** * Given a timestamp in the future, how much time * remains until then? -- 2.25.1