aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_dns_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_dns_service.h')
-rw-r--r--src/include/gnunet_dns_service.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/include/gnunet_dns_service.h b/src/include/gnunet_dns_service.h
index d31476d87..e97429d1d 100644
--- a/src/include/gnunet_dns_service.h
+++ b/src/include/gnunet_dns_service.h
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -49,9 +49,7 @@ struct GNUNET_DNS_RequestHandle;
49/** 49/**
50 * Flags that specify when to call the client's handler. 50 * Flags that specify when to call the client's handler.
51 */ 51 */
52enum GNUNET_DNS_Flags 52enum GNUNET_DNS_Flags {
53{
54
55 /** 53 /**
56 * Useless option: never call the client. 54 * Useless option: never call the client.
57 */ 55 */
@@ -94,7 +92,6 @@ enum GNUNET_DNS_Flags
94 * not allowed for MONITOR peers. 92 * not allowed for MONITOR peers.
95 */ 93 */
96 GNUNET_DNS_FLAG_RESPONSE_MONITOR = 8 94 GNUNET_DNS_FLAG_RESPONSE_MONITOR = 8
97
98}; 95};
99 96
100 97
@@ -137,7 +134,7 @@ typedef void
137 * @param rh request that should now be forwarded 134 * @param rh request that should now be forwarded
138 */ 135 */
139void 136void
140GNUNET_DNS_request_forward (struct GNUNET_DNS_RequestHandle *rh); 137GNUNET_DNS_request_forward(struct GNUNET_DNS_RequestHandle *rh);
141 138
142 139
143/** 140/**
@@ -147,7 +144,7 @@ GNUNET_DNS_request_forward (struct GNUNET_DNS_RequestHandle *rh);
147 * @param rh request that should now be dropped 144 * @param rh request that should now be dropped
148 */ 145 */
149void 146void
150GNUNET_DNS_request_drop (struct GNUNET_DNS_RequestHandle *rh); 147GNUNET_DNS_request_drop(struct GNUNET_DNS_RequestHandle *rh);
151 148
152 149
153/** 150/**
@@ -161,9 +158,9 @@ GNUNET_DNS_request_drop (struct GNUNET_DNS_RequestHandle *rh);
161 * @param reply reply data 158 * @param reply reply data
162 */ 159 */
163void 160void
164GNUNET_DNS_request_answer (struct GNUNET_DNS_RequestHandle *rh, 161GNUNET_DNS_request_answer(struct GNUNET_DNS_RequestHandle *rh,
165 uint16_t reply_length, 162 uint16_t reply_length,
166 const char *reply); 163 const char *reply);
167 164
168 165
169/** 166/**
@@ -176,10 +173,10 @@ GNUNET_DNS_request_answer (struct GNUNET_DNS_RequestHandle *rh,
176 * @return DNS handle 173 * @return DNS handle
177 */ 174 */
178struct GNUNET_DNS_Handle * 175struct GNUNET_DNS_Handle *
179GNUNET_DNS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, 176GNUNET_DNS_connect(const struct GNUNET_CONFIGURATION_Handle *cfg,
180 enum GNUNET_DNS_Flags flags, 177 enum GNUNET_DNS_Flags flags,
181 GNUNET_DNS_RequestHandler rh, 178 GNUNET_DNS_RequestHandler rh,
182 void *rh_cls); 179 void *rh_cls);
183 180
184 181
185/** 182/**
@@ -188,7 +185,7 @@ GNUNET_DNS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg,
188 * @param dh DNS handle 185 * @param dh DNS handle
189 */ 186 */
190void 187void
191GNUNET_DNS_disconnect (struct GNUNET_DNS_Handle *dh); 188GNUNET_DNS_disconnect(struct GNUNET_DNS_Handle *dh);
192 189
193 190
194#endif 191#endif