Check that you are not present in trail twice
[oweals/gnunet.git] / src / core / gnunet-service-core_typemap.h
index 7572d39db99e793a79f6f3eb16d15a1452897ed7..1cf6972e9d5ac334976534f87ecfc1b255c013d8 100644 (file)
@@ -66,6 +66,27 @@ struct GNUNET_MessageHeader *
 GSC_TYPEMAP_compute_type_map_message (void);
 
 
+/**
+ * Check if the given hash matches our current type map.
+ *
+ * @param hc hash code to check if it matches our type map
+ * @return #GNUNET_YES if the hash matches, #GNUNET_NO if not
+ */
+int
+GSC_TYPEMAP_check_hash (const struct GNUNET_HashCode *hc);
+
+
+/**
+ * Hash the contents of a type map.
+ *
+ * @param tm map to hash
+ * @param hc where to store the hash code
+ */
+void
+GSC_TYPEMAP_hash (const struct GSC_TypeMap *tm,
+                  struct GNUNET_HashCode *hc);
+
+
 /**
  * Extract a type map from a
  * #GNUNET_MESSAGE_TYPE_CORE_COMRESSED_TYPE_MAP or