diff options
Diffstat (limited to 'src/include/gnunet_gns_service.h')
-rw-r--r-- | src/include/gnunet_gns_service.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h index 5c06f8045..e7ed2d3c2 100644 --- a/src/include/gnunet_gns_service.h +++ b/src/include/gnunet_gns_service.h | |||
@@ -19,6 +19,9 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @addtogroup GNS | ||
23 | * @{ | ||
24 | * | ||
22 | * @author Martin Schanzenbach | 25 | * @author Martin Schanzenbach |
23 | * | 26 | * |
24 | * @file | 27 | * @file |
@@ -34,8 +37,8 @@ | |||
34 | #ifndef GNUNET_GNS_SERVICE_H | 37 | #ifndef GNUNET_GNS_SERVICE_H |
35 | #define GNUNET_GNS_SERVICE_H | 38 | #define GNUNET_GNS_SERVICE_H |
36 | 39 | ||
40 | |||
37 | #include "gnunet_util_lib.h" | 41 | #include "gnunet_util_lib.h" |
38 | #include "gnunet_dnsparser_lib.h" | ||
39 | #include "gnunet_identity_service.h" | 42 | #include "gnunet_identity_service.h" |
40 | #include "gnunet_namestore_service.h" | 43 | #include "gnunet_namestore_service.h" |
41 | 44 | ||
@@ -134,7 +137,7 @@ enum GNUNET_GNS_LocalOptions | |||
134 | struct GNUNET_GNS_LookupRequest * | 137 | struct GNUNET_GNS_LookupRequest * |
135 | GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, | 138 | GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, |
136 | const char *name, | 139 | const char *name, |
137 | const struct GNUNET_IDENTITY_PublicKey *zone, | 140 | const struct GNUNET_CRYPTO_PublicKey *zone, |
138 | uint32_t type, | 141 | uint32_t type, |
139 | enum GNUNET_GNS_LocalOptions options, | 142 | enum GNUNET_GNS_LocalOptions options, |
140 | GNUNET_GNS_LookupResultProcessor proc, | 143 | GNUNET_GNS_LookupResultProcessor proc, |
@@ -158,7 +161,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, | |||
158 | struct GNUNET_GNS_LookupRequest * | 161 | struct GNUNET_GNS_LookupRequest * |
159 | GNUNET_GNS_lookup_limited (struct GNUNET_GNS_Handle *handle, | 162 | GNUNET_GNS_lookup_limited (struct GNUNET_GNS_Handle *handle, |
160 | const char *name, | 163 | const char *name, |
161 | const struct GNUNET_IDENTITY_PublicKey *zone, | 164 | const struct GNUNET_CRYPTO_PublicKey *zone, |
162 | uint32_t type, | 165 | uint32_t type, |
163 | enum GNUNET_GNS_LocalOptions options, | 166 | enum GNUNET_GNS_LocalOptions options, |
164 | uint16_t recursion_depth_limit, | 167 | uint16_t recursion_depth_limit, |
@@ -224,6 +227,16 @@ GNUNET_GNS_lookup_with_tld (struct GNUNET_GNS_Handle *handle, | |||
224 | void * | 227 | void * |
225 | GNUNET_GNS_lookup_with_tld_cancel (struct GNUNET_GNS_LookupWithTldRequest *ltr); | 228 | GNUNET_GNS_lookup_with_tld_cancel (struct GNUNET_GNS_LookupWithTldRequest *ltr); |
226 | 229 | ||
230 | /** | ||
231 | * Try to parse the zTLD into a public key. | ||
232 | * | ||
233 | * @param[in] name the name to parse | ||
234 | * @param[out] ztld_key the identity key (must be allocated by caller). Only set of #GNUNET_OK is returned. | ||
235 | * @return GNUNET_OK on success. | ||
236 | */ | ||
237 | enum GNUNET_GenericReturnValue | ||
238 | GNUNET_GNS_parse_ztld (const char *name, | ||
239 | struct GNUNET_CRYPTO_PublicKey *ztld_key); | ||
227 | 240 | ||
228 | #if 0 /* keep Emacsens' auto-indent happy */ | 241 | #if 0 /* keep Emacsens' auto-indent happy */ |
229 | { | 242 | { |
@@ -235,3 +248,5 @@ GNUNET_GNS_lookup_with_tld_cancel (struct GNUNET_GNS_LookupWithTldRequest *ltr); | |||
235 | #endif | 248 | #endif |
236 | 249 | ||
237 | /** @} */ /* end of group */ | 250 | /** @} */ /* end of group */ |
251 | |||
252 | /** @} */ /* end of group addition */ | ||