diff options
Diffstat (limited to 'src/core/gnunet-service-core_typemap.h')
-rw-r--r-- | src/core/gnunet-service-core_typemap.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/core/gnunet-service-core_typemap.h b/src/core/gnunet-service-core_typemap.h index 7572d39db..1cf6972e9 100644 --- a/src/core/gnunet-service-core_typemap.h +++ b/src/core/gnunet-service-core_typemap.h | |||
@@ -67,6 +67,27 @@ GSC_TYPEMAP_compute_type_map_message (void); | |||
67 | 67 | ||
68 | 68 | ||
69 | /** | 69 | /** |
70 | * Check if the given hash matches our current type map. | ||
71 | * | ||
72 | * @param hc hash code to check if it matches our type map | ||
73 | * @return #GNUNET_YES if the hash matches, #GNUNET_NO if not | ||
74 | */ | ||
75 | int | ||
76 | GSC_TYPEMAP_check_hash (const struct GNUNET_HashCode *hc); | ||
77 | |||
78 | |||
79 | /** | ||
80 | * Hash the contents of a type map. | ||
81 | * | ||
82 | * @param tm map to hash | ||
83 | * @param hc where to store the hash code | ||
84 | */ | ||
85 | void | ||
86 | GSC_TYPEMAP_hash (const struct GSC_TypeMap *tm, | ||
87 | struct GNUNET_HashCode *hc); | ||
88 | |||
89 | |||
90 | /** | ||
70 | * Extract a type map from a | 91 | * Extract a type map from a |
71 | * #GNUNET_MESSAGE_TYPE_CORE_COMRESSED_TYPE_MAP or | 92 | * #GNUNET_MESSAGE_TYPE_CORE_COMRESSED_TYPE_MAP or |
72 | * #GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP message. | 93 | * #GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP message. |