X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fcore%2Fgnunet-service-core_typemap.h;h=66596748c1bcebbb9f1c02f05460a8bdd361cec1;hb=43ee295fd2b0d38dcbfa3a7bb6df461cad15cf4f;hp=7572d39db99e793a79f6f3eb16d15a1452897ed7;hpb=3b94e08fe7391f9226184c1eb070628360354de6;p=oweals%2Fgnunet.git diff --git a/src/core/gnunet-service-core_typemap.h b/src/core/gnunet-service-core_typemap.h index 7572d39db..66596748c 100644 --- a/src/core/gnunet-service-core_typemap.h +++ b/src/core/gnunet-service-core_typemap.h @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - (C) 2011 Christian Grothoff (and other contributing authors) + Copyright (C) 2011 GNUnet e.V. GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with GNUnet; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ /** @@ -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