From 76d642d75443241b4457e4f0f8e46abf83749872 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Fri, 2 Apr 2010 15:15:23 +0000 Subject: [PATCH] dv type, hello api call --- src/include/gnunet_hello_lib.h | 12 ++++++++++++ src/include/gnunet_protocols.h | 5 +++++ 2 files changed, 17 insertions(+) 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 GNUNET_HELLO_get_id (const struct GNUNET_HELLO_Message *hello, struct GNUNET_PeerIdentity *peer); + +/** + * Get the header from a HELLO message, used so other code + * can correctly send HELLO messages. + * + * @param hello the hello message + * + * @return header or NULL if the HELLO was malformed + */ +struct GNUNET_MessageHeader * +GNUNET_HELLO_get_header (struct GNUNET_HELLO_Message *hello); + /* ifndef GNUNET_HELLO_LIB_H */ #endif /* 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" */ #define GNUNET_MESSAGE_TYPE_DV_GOSSIP 47 +/** + * DV Plugin to DV service message, indicating + * startup. + */ +#define GNUNET_MESSAGE_TYPE_DV_START 48 /** * UDP NAT probe message, send from NAT'd peer to -- 2.25.1