From cd967ce3da30f20fb815288c1f4ebb19816dd0ad Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 18 Oct 2013 15:15:27 +0000 Subject: -adding proposed namestore lookup call (API only for now) --- src/include/gnunet_namestore_service.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/include/gnunet_namestore_service.h') diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h index 36e912f51..ddfc912bc 100644 --- a/src/include/gnunet_namestore_service.h +++ b/src/include/gnunet_namestore_service.h @@ -135,6 +135,24 @@ typedef void (*GNUNET_NAMESTORE_RecordMonitor) (void *cls, const struct GNUNET_GNSRECORD_Data *rd); +/** + * Lookup an item in the namestore. + * + * @param h handle to the namestore + * @param pkey private key of the zone + * @param label name that is being mapped (at most 255 characters long) + * @param rm function to call with the result (with 0 records if we don't have that label) + * @param rm_cls closure for @a rm + * @return handle to abort the request + */ +struct GNUNET_NAMESTORE_QueueEntry * +GNUNET_NAMESTORE_records_lookup (struct GNUNET_NAMESTORE_Handle *h, + const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, + const char *label, + GNUNET_NAMESTORE_RecordMonitor rm, + void *rm_cls); + + /** * Look for an existing PKEY delegation record for a given public key. * Returns at most one result to the processor. -- cgit v1.2.3