aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gns_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
commitc4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch)
treecac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/include/gnunet_gns_service.h
parentfbb71d527c7d6babf269a8fefce1db291b9f7068 (diff)
downloadgnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz
gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/include/gnunet_gns_service.h')
-rw-r--r--src/include/gnunet_gns_service.h37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h
index f66bec61e..9a8114e90 100644
--- a/src/include/gnunet_gns_service.h
+++ b/src/include/gnunet_gns_service.h
@@ -76,7 +76,7 @@ struct GNUNET_GNS_LookupWithTldRequest;
76 * @return handle to the GNS service, or NULL on error 76 * @return handle to the GNS service, or NULL on error
77 */ 77 */
78struct GNUNET_GNS_Handle * 78struct GNUNET_GNS_Handle *
79GNUNET_GNS_connect(const struct GNUNET_CONFIGURATION_Handle *cfg); 79GNUNET_GNS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg);
80 80
81 81
82/** 82/**
@@ -85,7 +85,7 @@ GNUNET_GNS_connect(const struct GNUNET_CONFIGURATION_Handle *cfg);
85 * @param handle connection to shut down 85 * @param handle connection to shut down
86 */ 86 */
87void 87void
88GNUNET_GNS_disconnect(struct GNUNET_GNS_Handle *handle); 88GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *handle);
89 89
90 90
91/** 91/**
@@ -104,7 +104,8 @@ typedef void (*GNUNET_GNS_LookupResultProcessor) (
104/** 104/**
105 * Options for the GNS lookup. 105 * Options for the GNS lookup.
106 */ 106 */
107enum GNUNET_GNS_LocalOptions { 107enum GNUNET_GNS_LocalOptions
108{
108 /** 109 /**
109 * Defaults, look in cache, then in DHT. 110 * Defaults, look in cache, then in DHT.
110 */ 111 */
@@ -136,13 +137,13 @@ enum GNUNET_GNS_LocalOptions {
136 * @return handle to the queued request 137 * @return handle to the queued request
137 */ 138 */
138struct GNUNET_GNS_LookupRequest * 139struct GNUNET_GNS_LookupRequest *
139GNUNET_GNS_lookup(struct GNUNET_GNS_Handle *handle, 140GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
140 const char *name, 141 const char *name,
141 const struct GNUNET_CRYPTO_EcdsaPublicKey *zone, 142 const struct GNUNET_CRYPTO_EcdsaPublicKey *zone,
142 uint32_t type, 143 uint32_t type,
143 enum GNUNET_GNS_LocalOptions options, 144 enum GNUNET_GNS_LocalOptions options,
144 GNUNET_GNS_LookupResultProcessor proc, 145 GNUNET_GNS_LookupResultProcessor proc,
145 void *proc_cls); 146 void *proc_cls);
146 147
147 148
148/** 149/**
@@ -152,7 +153,7 @@ GNUNET_GNS_lookup(struct GNUNET_GNS_Handle *handle,
152 * @return closure from the lookup result processor 153 * @return closure from the lookup result processor
153 */ 154 */
154void * 155void *
155GNUNET_GNS_lookup_cancel(struct GNUNET_GNS_LookupRequest *lr); 156GNUNET_GNS_lookup_cancel (struct GNUNET_GNS_LookupRequest *lr);
156 157
157 158
158/** 159/**
@@ -186,12 +187,12 @@ typedef void (*GNUNET_GNS_LookupResultProcessor2) (
186 * @return handle to the get request 187 * @return handle to the get request
187 */ 188 */
188struct GNUNET_GNS_LookupWithTldRequest * 189struct GNUNET_GNS_LookupWithTldRequest *
189GNUNET_GNS_lookup_with_tld(struct GNUNET_GNS_Handle *handle, 190GNUNET_GNS_lookup_with_tld (struct GNUNET_GNS_Handle *handle,
190 const char *name, 191 const char *name,
191 uint32_t type, 192 uint32_t type,
192 enum GNUNET_GNS_LocalOptions options, 193 enum GNUNET_GNS_LocalOptions options,
193 GNUNET_GNS_LookupResultProcessor2 proc, 194 GNUNET_GNS_LookupResultProcessor2 proc,
194 void *proc_cls); 195 void *proc_cls);
195 196
196 197
197/** 198/**
@@ -201,7 +202,7 @@ GNUNET_GNS_lookup_with_tld(struct GNUNET_GNS_Handle *handle,
201 * @return closure from the lookup result processor 202 * @return closure from the lookup result processor
202 */ 203 */
203void * 204void *
204GNUNET_GNS_lookup_with_tld_cancel(struct GNUNET_GNS_LookupWithTldRequest *ltr); 205GNUNET_GNS_lookup_with_tld_cancel (struct GNUNET_GNS_LookupWithTldRequest *ltr);
205 206
206 207
207#if 0 /* keep Emacsens' auto-indent happy */ 208#if 0 /* keep Emacsens' auto-indent happy */