dv type, hello api call
authorNathan S. Evans <evans@in.tum.de>
Fri, 2 Apr 2010 15:15:23 +0000 (15:15 +0000)
committerNathan S. Evans <evans@in.tum.de>
Fri, 2 Apr 2010 15:15:23 +0000 (15:15 +0000)
src/include/gnunet_hello_lib.h
src/include/gnunet_protocols.h

index 6191c4f7e794b7ca1f0d154c00b2efb5dd04c87d..73f84bc43a0f7f67024feed3a2e794b462412d2a 100644 (file)
@@ -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 */
index 564ad81822106d6bef0731e00b79e3c9cfb772f4..78da13b9a47eb3af7460e46a62d728586f09d23d 100644 (file)
@@ -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