diff options
Diffstat (limited to 'src/gns/gnunet-service-gns.h')
-rw-r--r-- | src/gns/gnunet-service-gns.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/gns/gnunet-service-gns.h b/src/gns/gnunet-service-gns.h index 3662c945d..439bad881 100644 --- a/src/gns/gnunet-service-gns.h +++ b/src/gns/gnunet-service-gns.h | |||
@@ -23,10 +23,10 @@ | |||
23 | * @author Martin Schanzenbach | 23 | * @author Martin Schanzenbach |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | */ | 25 | */ |
26 | |||
27 | #ifndef GNUNET_SERVICE_GNS_H | 26 | #ifndef GNUNET_SERVICE_GNS_H |
28 | #define GNUNET_SERVICE_GNS_H | 27 | #define GNUNET_SERVICE_GNS_H |
29 | 28 | ||
29 | |||
30 | /** | 30 | /** |
31 | * Find GNS zone belonging to TLD @a tld. | 31 | * Find GNS zone belonging to TLD @a tld. |
32 | * | 32 | * |
@@ -36,6 +36,18 @@ | |||
36 | */ | 36 | */ |
37 | int | 37 | int |
38 | GNS_find_tld (const char *tld_str, | 38 | GNS_find_tld (const char *tld_str, |
39 | struct GNUNET_CRYPTO_EddsaPublicKey *pkey); | 39 | struct GNUNET_CRYPTO_EcdsaPublicKey *pkey); |
40 | |||
41 | |||
42 | /** | ||
43 | * Obtain the TLD of the given @a name. | ||
44 | * | ||
45 | * @param name a name | ||
46 | * @return the part of @a name after the last ".", | ||
47 | * or @a name if @a name does not contain a "." | ||
48 | */ | ||
49 | const char * | ||
50 | GNS_get_tld (const char *name); | ||
51 | |||
40 | 52 | ||
41 | #endif | 53 | #endif |