aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_hello_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-04-10 21:05:27 +0000
committerChristian Grothoff <christian@grothoff.org>2010-04-10 21:05:27 +0000
commit8a9ac8c92b1fb30c91c700d42e84749cc8aabb68 (patch)
tree9736e38967822068abd3b8bc01b2d35931e881ff /src/include/gnunet_hello_lib.h
parent85a049155d73ab1001f417b0786b8aefbdd01fd2 (diff)
downloadgnunet-8a9ac8c92b1fb30c91c700d42e84749cc8aabb68.tar.gz
gnunet-8a9ac8c92b1fb30c91c700d42e84749cc8aabb68.zip
work on HELLO
Diffstat (limited to 'src/include/gnunet_hello_lib.h')
-rw-r--r--src/include/gnunet_hello_lib.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h
index 73f84bc43..ca5e29284 100644
--- a/src/include/gnunet_hello_lib.h
+++ b/src/include/gnunet_hello_lib.h
@@ -120,6 +120,29 @@ struct GNUNET_HELLO_Message *GNUNET_HELLO_merge (const struct
120 GNUNET_HELLO_Message *h2); 120 GNUNET_HELLO_Message *h2);
121 121
122 122
123/**
124 * Test if two HELLO messages contain the same addresses.
125 * If they only differ in expiration time, the lowest
126 * expiration time larger than 'now' where they differ
127 * is returned.
128 *
129 * @param h1 first HELLO message
130 * @param h2 the second HELLO message
131 * @param now time to use for deciding which addresses have
132 * expired and should not be considered at all
133 * @return absolute time forever if the two HELLOs are
134 * totally identical; smallest timestamp >= now if
135 * they only differ in timestamps;
136 * zero if the some addresses with expirations >= now
137 * do not match at all
138 */
139struct GNUNET_TIME_Absolute
140GNUNET_HELLO_equals (const struct
141 GNUNET_HELLO_Message *h1,
142 const struct
143 GNUNET_HELLO_Message *h2,
144 struct GNUNET_TIME_Absolute now);
145
123 146
124/** 147/**
125 * Iterator callback to go over all addresses. 148 * Iterator callback to go over all addresses.