aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-05-09 09:50:13 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-05-09 09:50:13 +0000
commita9e83be91832bfa07b33c8d865cab9f00df05b78 (patch)
treeb9811079267b710fa71cc8819f4d8b589a4c9928 /src/gns/gns.h
parentde21b0b29055c33ed2ee1ce36abecacf77836808 (diff)
downloadgnunet-a9e83be91832bfa07b33c8d865cab9f00df05b78.tar.gz
gnunet-a9e83be91832bfa07b33c8d865cab9f00df05b78.zip
-new per zone api
Diffstat (limited to 'src/gns/gns.h')
-rw-r--r--src/gns/gns.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/gns/gns.h b/src/gns/gns.h
index 5950c460b..408b68606 100644
--- a/src/gns/gns.h
+++ b/src/gns/gns.h
@@ -53,9 +53,18 @@ struct GNUNET_GNS_ClientLookupMessage
53 uint32_t id GNUNET_PACKED; 53 uint32_t id GNUNET_PACKED;
54 54
55 /** 55 /**
56 * Should we look up in the default zone?
57 */
58 uint32_t use_default_zone GNUNET_PACKED;
59
60 /**
61 * If use_default_zone is empty this zone is used for lookup
62 */
63 struct GNUNET_CRYPTO_ShortHashCode zone;
64
65 /**
56 * the type of record to look up 66 * the type of record to look up
57 */ 67 */
58 // FIXME: bad type - should be of GNUNET_GNS_RecordType
59 enum GNUNET_GNS_RecordType type; 68 enum GNUNET_GNS_RecordType type;
60 69
61 /* Followed by the name to look up */ 70 /* Followed by the name to look up */
@@ -102,6 +111,16 @@ struct GNUNET_GNS_ClientShortenMessage
102 */ 111 */
103 uint32_t id GNUNET_PACKED; 112 uint32_t id GNUNET_PACKED;
104 113
114 /**
115 * Should we look up in the default zone?
116 */
117 uint32_t use_default_zone GNUNET_PACKED;
118
119 /**
120 * If use_default_zone is empty this zone is used for lookup
121 */
122 struct GNUNET_CRYPTO_ShortHashCode zone;
123
105 /* Followed by the name to shorten up */ 124 /* Followed by the name to shorten up */
106}; 125};
107 126