From d7591587eb28a40e44a3065c30ec1b60a9bcba68 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 6 Oct 2011 19:03:36 +0000 Subject: finishing clients draft --- src/core/gnunet-service-core_typemap.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/core/gnunet-service-core_typemap.c') diff --git a/src/core/gnunet-service-core_typemap.c b/src/core/gnunet-service-core_typemap.c index 0d270737b..dfd0b8888 100644 --- a/src/core/gnunet-service-core_typemap.c +++ b/src/core/gnunet-service-core_typemap.c @@ -50,6 +50,24 @@ GSC_TYPEMAP_remove (const uint16_t *types, } +/** + * Test if any of the types from the types array is in the + * given type map. + * + * @param map map to test + * @param types array of types + * @param tcnt number of entries in types + * @return GNUNET_YES if a type is in the map, GNUNET_NO if not + */ +int +GSC_TYPEMAP_test_match (struct GSC_TypeMap *tmap, + const uint16_t *types, + unsigned int tcnt) +{ + return GNUNET_YES; /* FIXME */ +} + + /** * Compute a type map message for this peer. * -- cgit v1.2.3