aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gns_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_gns_service.h')
-rw-r--r--src/include/gnunet_gns_service.h40
1 files changed, 19 insertions, 21 deletions
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h
index ca92e8221..f66bec61e 100644
--- a/src/include/gnunet_gns_service.h
+++ b/src/include/gnunet_gns_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
@@ -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,8 +104,7 @@ 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{
109 /** 108 /**
110 * Defaults, look in cache, then in DHT. 109 * Defaults, look in cache, then in DHT.
111 */ 110 */
@@ -121,7 +120,6 @@ enum GNUNET_GNS_LocalOptions
121 * is our local namestore), for the others, the DHT is OK. 120 * is our local namestore), for the others, the DHT is OK.
122 */ 121 */
123 GNUNET_GNS_LO_LOCAL_MASTER = 2 122 GNUNET_GNS_LO_LOCAL_MASTER = 2
124
125}; 123};
126 124
127 125
@@ -138,13 +136,13 @@ enum GNUNET_GNS_LocalOptions
138 * @return handle to the queued request 136 * @return handle to the queued request
139 */ 137 */
140struct GNUNET_GNS_LookupRequest * 138struct GNUNET_GNS_LookupRequest *
141GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, 139GNUNET_GNS_lookup(struct GNUNET_GNS_Handle *handle,
142 const char *name, 140 const char *name,
143 const struct GNUNET_CRYPTO_EcdsaPublicKey *zone, 141 const struct GNUNET_CRYPTO_EcdsaPublicKey *zone,
144 uint32_t type, 142 uint32_t type,
145 enum GNUNET_GNS_LocalOptions options, 143 enum GNUNET_GNS_LocalOptions options,
146 GNUNET_GNS_LookupResultProcessor proc, 144 GNUNET_GNS_LookupResultProcessor proc,
147 void *proc_cls); 145 void *proc_cls);
148 146
149 147
150/** 148/**
@@ -154,7 +152,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
154 * @return closure from the lookup result processor 152 * @return closure from the lookup result processor
155 */ 153 */
156void * 154void *
157GNUNET_GNS_lookup_cancel (struct GNUNET_GNS_LookupRequest *lr); 155GNUNET_GNS_lookup_cancel(struct GNUNET_GNS_LookupRequest *lr);
158 156
159 157
160/** 158/**
@@ -188,12 +186,12 @@ typedef void (*GNUNET_GNS_LookupResultProcessor2) (
188 * @return handle to the get request 186 * @return handle to the get request
189 */ 187 */
190struct GNUNET_GNS_LookupWithTldRequest * 188struct GNUNET_GNS_LookupWithTldRequest *
191GNUNET_GNS_lookup_with_tld (struct GNUNET_GNS_Handle *handle, 189GNUNET_GNS_lookup_with_tld(struct GNUNET_GNS_Handle *handle,
192 const char *name, 190 const char *name,
193 uint32_t type, 191 uint32_t type,
194 enum GNUNET_GNS_LocalOptions options, 192 enum GNUNET_GNS_LocalOptions options,
195 GNUNET_GNS_LookupResultProcessor2 proc, 193 GNUNET_GNS_LookupResultProcessor2 proc,
196 void *proc_cls); 194 void *proc_cls);
197 195
198 196
199/** 197/**
@@ -203,7 +201,7 @@ GNUNET_GNS_lookup_with_tld (struct GNUNET_GNS_Handle *handle,
203 * @return closure from the lookup result processor 201 * @return closure from the lookup result processor
204 */ 202 */
205void * 203void *
206GNUNET_GNS_lookup_with_tld_cancel (struct GNUNET_GNS_LookupWithTldRequest *ltr); 204GNUNET_GNS_lookup_with_tld_cancel(struct GNUNET_GNS_LookupWithTldRequest *ltr);
207 205
208 206
209#if 0 /* keep Emacsens' auto-indent happy */ 207#if 0 /* keep Emacsens' auto-indent happy */