max
authorChristian Grothoff <christian@grothoff.org>
Sun, 14 Feb 2010 23:58:58 +0000 (23:58 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 14 Feb 2010 23:58:58 +0000 (23:58 +0000)
src/include/gnunet_hello_lib.h
src/include/gnunet_time_lib.h

index 8978890f0e5631a077b589bb13d1a1b3e62bf5d2..d7d116c74ee6ee49eb1dd47c55c47ee420a7c9fe 100644 (file)
@@ -120,6 +120,7 @@ struct GNUNET_HELLO_Message *GNUNET_HELLO_merge (const struct
                                                  GNUNET_HELLO_Message *h2);
 
 
+
 /**
  * Iterator callback to go over all addresses.
  *
index d00867e8071a23df91bcecd16044c74b6dbc1f98..8336a04fd17879a8cc4c7a3bd07a312495459c88 100644 (file)
@@ -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?