From: Nathan S. Evans Date: Fri, 2 Apr 2010 15:15:23 +0000 (+0000) Subject: dv type, hello api call X-Git-Tag: initial-import-from-subversion-38251~22316 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=76d642d75443241b4457e4f0f8e46abf83749872;p=oweals%2Fgnunet.git dv type, hello api call --- 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