aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-12 10:18:53 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-03-12 10:18:53 +0000
commitf178ee5c79255d00eec5ed421d2e503b8d176fd0 (patch)
tree763cd0fda3c59d96216257d2b5487fe17a7d091f /src/gns/gns.h
parentfe61feeb1cdced8020f352289a86f61e3f02d1ad (diff)
downloadgnunet-f178ee5c79255d00eec5ed421d2e503b8d176fd0.tar.gz
gnunet-f178ee5c79255d00eec5ed421d2e503b8d176fd0.zip
-fixes, added get_authority api
Diffstat (limited to 'src/gns/gns.h')
-rw-r--r--src/gns/gns.h40
1 files changed, 39 insertions, 1 deletions
diff --git a/src/gns/gns.h b/src/gns/gns.h
index e0cb0fd29..aad36ebfe 100644
--- a/src/gns/gns.h
+++ b/src/gns/gns.h
@@ -81,7 +81,7 @@ struct GNUNET_GNS_ClientLookupResultMessage
81}; 81};
82 82
83/** 83/**
84 * Message from client to GNS service to lookup records. 84 * Message from client to GNS service to shorten names.
85 */ 85 */
86struct GNUNET_GNS_ClientShortenMessage 86struct GNUNET_GNS_ClientShortenMessage
87{ 87{
@@ -117,6 +117,44 @@ struct GNUNET_GNS_ClientShortenResultMessage
117 /* followed by the shortened name or '\0' for no result*/ 117 /* followed by the shortened name or '\0' for no result*/
118 118
119}; 119};
120
121/**
122 * Message from client to GNS service to lookup an authority of a name.
123 */
124struct GNUNET_GNS_ClientGetAuthMessage
125{
126 /**
127 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_GET_AUTH
128 */
129 struct GNUNET_MessageHeader header;
130
131 /**
132 * Unique identifier for this request
133 */
134 uint32_t id GNUNET_PACKED;
135
136 /* Followed by the name to get authority for */
137};
138
139
140/**
141 * Message from GNS service to client: authority result.
142 */
143struct GNUNET_GNS_ClientGetAuthResultMessage
144{
145 /**
146 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_GET_AUTH_RESULT
147 */
148 struct GNUNET_MessageHeader header;
149
150 /**
151 * Unique identifier for this request (for key collisions).
152 */
153 uint32_t id GNUNET_PACKED;
154
155 /* followed by the authority part of the name or '\0' for no result*/
156
157};
120GNUNET_NETWORK_STRUCT_END 158GNUNET_NETWORK_STRUCT_END
121 159
122#endif 160#endif