aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-service-gns.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-03-03 22:05:37 +0100
committerChristian Grothoff <christian@grothoff.org>2018-03-03 22:05:37 +0100
commit65377c3d9087635696f66b2444ef1d7eb39d4cd0 (patch)
tree14ff5999de78cf717e6e7b4541f469d1b24b243d /src/gns/gnunet-service-gns.h
parentcd2b8b467b218dfdd2d5124ad2d835161f3a2b1a (diff)
downloadgnunet-65377c3d9087635696f66b2444ef1d7eb39d4cd0.tar.gz
gnunet-65377c3d9087635696f66b2444ef1d7eb39d4cd0.zip
eliminate .gnu from GNS
Diffstat (limited to 'src/gns/gnunet-service-gns.h')
-rw-r--r--src/gns/gnunet-service-gns.h16
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 */
37int 37int
38GNS_find_tld (const char *tld_str, 38GNS_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 */
49const char *
50GNS_get_tld (const char *name);
51
40 52
41#endif 53#endif