diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-08 14:14:01 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-03-08 14:14:01 +0000 |
commit | 3a60024e089a38aa32fcafece7c257672abf4608 (patch) | |
tree | a3c36e0a87766bd85e450bd1b9c8766965a34710 /src/include/gnunet_gns_service.h | |
parent | 588b14ec0ec5c59d0dad37dcc0841c1ff0b2942c (diff) | |
download | gnunet-3a60024e089a38aa32fcafece7c257672abf4608.tar.gz gnunet-3a60024e089a38aa32fcafece7c257672abf4608.zip |
-GNS service api change, replaced complicated buggy code
Diffstat (limited to 'src/include/gnunet_gns_service.h')
-rw-r--r-- | src/include/gnunet_gns_service.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h index 0b25adfdd..60a2fb227 100644 --- a/src/include/gnunet_gns_service.h +++ b/src/include/gnunet_gns_service.h | |||
@@ -130,25 +130,14 @@ typedef void (*GNUNET_GNS_LookupIterator) (void *cls, | |||
130 | * | 130 | * |
131 | * @return handle to stop the async lookup | 131 | * @return handle to stop the async lookup |
132 | */ | 132 | */ |
133 | struct GNUNET_GNS_LookupHandle * | 133 | struct GNUNET_GNS_QueueEntry * |
134 | GNUNET_GNS_lookup_start (struct GNUNET_GNS_Handle *handle, | 134 | GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, |
135 | const char * name, | 135 | const char * name, |
136 | enum GNUNET_GNS_RecordType type, | 136 | enum GNUNET_GNS_RecordType type, |
137 | GNUNET_GNS_LookupIterator iter, | 137 | GNUNET_GNS_LookupIterator iter, |
138 | void *iter_cls); | 138 | void *iter_cls); |
139 | 139 | ||
140 | 140 | ||
141 | /** | ||
142 | * Stop async GNS lookup. Frees associated resources. | ||
143 | * | ||
144 | * @param lookup_handle lookup operation to stop. | ||
145 | * | ||
146 | * On return lookup_handle will no longer be valid, caller | ||
147 | * must not use again!!! | ||
148 | */ | ||
149 | void | ||
150 | GNUNET_GNS_lookup_stop (struct GNUNET_GNS_LookupHandle *lookup_handle); | ||
151 | |||
152 | /* *************** Standard API: shorten ******************* */ | 141 | /* *************** Standard API: shorten ******************* */ |
153 | 142 | ||
154 | 143 | ||
@@ -161,7 +150,6 @@ GNUNET_GNS_lookup_stop (struct GNUNET_GNS_LookupHandle *lookup_handle); | |||
161 | * @param short_name the shortened name or NULL if no result | 150 | * @param short_name the shortened name or NULL if no result |
162 | */ | 151 | */ |
163 | typedef void (*GNUNET_GNS_ShortenResultProcessor) (void *cls, | 152 | typedef void (*GNUNET_GNS_ShortenResultProcessor) (void *cls, |
164 | const char * name, | ||
165 | const char* short_name); | 153 | const char* short_name); |
166 | 154 | ||
167 | 155 | ||
@@ -175,7 +163,7 @@ typedef void (*GNUNET_GNS_ShortenResultProcessor) (void *cls, | |||
175 | * | 163 | * |
176 | * @return handle to the shorten operation | 164 | * @return handle to the shorten operation |
177 | */ | 165 | */ |
178 | struct GNUNET_GNS_ShortenHandle * | 166 | struct GNUNET_GNS_QueueEntry * |
179 | GNUNET_GNS_shorten (struct GNUNET_GNS_Handle *handle, | 167 | GNUNET_GNS_shorten (struct GNUNET_GNS_Handle *handle, |
180 | const char * name, | 168 | const char * name, |
181 | GNUNET_GNS_ShortenResultProcessor proc, | 169 | GNUNET_GNS_ShortenResultProcessor proc, |