diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-18 15:15:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-18 15:15:27 +0000 |
commit | cd967ce3da30f20fb815288c1f4ebb19816dd0ad (patch) | |
tree | 92b3c6f46bb4c5d6d66a7a6e101615042aac91ed /src/include/gnunet_namestore_service.h | |
parent | 96ccef162f276c2f40b09ceca59c982bbaa3709e (diff) | |
download | gnunet-cd967ce3da30f20fb815288c1f4ebb19816dd0ad.tar.gz gnunet-cd967ce3da30f20fb815288c1f4ebb19816dd0ad.zip |
-adding proposed namestore lookup call (API only for now)
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r-- | src/include/gnunet_namestore_service.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 | |||
@@ -136,6 +136,24 @@ typedef void (*GNUNET_NAMESTORE_RecordMonitor) (void *cls, | |||
136 | 136 | ||
137 | 137 | ||
138 | /** | 138 | /** |
139 | * Lookup an item in the namestore. | ||
140 | * | ||
141 | * @param h handle to the namestore | ||
142 | * @param pkey private key of the zone | ||
143 | * @param label name that is being mapped (at most 255 characters long) | ||
144 | * @param rm function to call with the result (with 0 records if we don't have that label) | ||
145 | * @param rm_cls closure for @a rm | ||
146 | * @return handle to abort the request | ||
147 | */ | ||
148 | struct GNUNET_NAMESTORE_QueueEntry * | ||
149 | GNUNET_NAMESTORE_records_lookup (struct GNUNET_NAMESTORE_Handle *h, | ||
150 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, | ||
151 | const char *label, | ||
152 | GNUNET_NAMESTORE_RecordMonitor rm, | ||
153 | void *rm_cls); | ||
154 | |||
155 | |||
156 | /** | ||
139 | * Look for an existing PKEY delegation record for a given public key. | 157 | * Look for an existing PKEY delegation record for a given public key. |
140 | * Returns at most one result to the processor. | 158 | * Returns at most one result to the processor. |
141 | * | 159 | * |