diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-04-02 15:15:23 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-04-02 15:15:23 +0000 |
commit | 76d642d75443241b4457e4f0f8e46abf83749872 (patch) | |
tree | 2461903a339daebdc728ff4940dd0938801713e3 /src/include | |
parent | 690a73242b4f7fa2b6f71463194afe00a4e2d8d2 (diff) | |
download | gnunet-76d642d75443241b4457e4f0f8e46abf83749872.tar.gz gnunet-76d642d75443241b4457e4f0f8e46abf83749872.zip |
dv type, hello api call
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_hello_lib.h | 12 | ||||
-rw-r--r-- | src/include/gnunet_protocols.h | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h index 6191c4f7e..73f84bc43 100644 --- a/src/include/gnunet_hello_lib.h +++ b/src/include/gnunet_hello_lib.h | |||
@@ -207,6 +207,18 @@ int | |||
207 | GNUNET_HELLO_get_id (const struct GNUNET_HELLO_Message *hello, | 207 | GNUNET_HELLO_get_id (const struct GNUNET_HELLO_Message *hello, |
208 | struct GNUNET_PeerIdentity *peer); | 208 | struct GNUNET_PeerIdentity *peer); |
209 | 209 | ||
210 | |||
211 | /** | ||
212 | * Get the header from a HELLO message, used so other code | ||
213 | * can correctly send HELLO messages. | ||
214 | * | ||
215 | * @param hello the hello message | ||
216 | * | ||
217 | * @return header or NULL if the HELLO was malformed | ||
218 | */ | ||
219 | struct GNUNET_MessageHeader * | ||
220 | GNUNET_HELLO_get_header (struct GNUNET_HELLO_Message *hello); | ||
221 | |||
210 | /* ifndef GNUNET_HELLO_LIB_H */ | 222 | /* ifndef GNUNET_HELLO_LIB_H */ |
211 | #endif | 223 | #endif |
212 | /* end of gnunet_hello_lib.h */ | 224 | /* end of gnunet_hello_lib.h */ |
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 564ad8182..78da13b9a 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -249,6 +249,11 @@ extern "C" | |||
249 | */ | 249 | */ |
250 | #define GNUNET_MESSAGE_TYPE_DV_GOSSIP 47 | 250 | #define GNUNET_MESSAGE_TYPE_DV_GOSSIP 47 |
251 | 251 | ||
252 | /** | ||
253 | * DV Plugin to DV service message, indicating | ||
254 | * startup. | ||
255 | */ | ||
256 | #define GNUNET_MESSAGE_TYPE_DV_START 48 | ||
252 | 257 | ||
253 | /** | 258 | /** |
254 | * UDP NAT probe message, send from NAT'd peer to | 259 | * UDP NAT probe message, send from NAT'd peer to |