aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/gnunet_identity_service.h21
-rw-r--r--src/include/gnunet_strings_lib.h2
2 files changed, 22 insertions, 1 deletions
diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h
index 4cc84d7c2..b2472da43 100644
--- a/src/include/gnunet_identity_service.h
+++ b/src/include/gnunet_identity_service.h
@@ -329,6 +329,27 @@ void
329GNUNET_IDENTITY_ego_lookup_cancel (struct GNUNET_IDENTITY_EgoLookup *el); 329GNUNET_IDENTITY_ego_lookup_cancel (struct GNUNET_IDENTITY_EgoLookup *el);
330 330
331 331
332/**
333 * Obtain the ego with the maximum suffix match between the
334 * ego's name and the given domain name @a suffix. I.e., given
335 * a @a suffix "a.b.c" and egos with names "d.a.b.c", "b.c" and "c",
336 * we return the ego for "b.c".
337 *
338 * @param id identity service to query
339 * @param suffix for which domain name suffix is an identity wanted
340 * @param cb function to call with the result (will only be called once)
341 * @param cb_cls closure for @a cb
342 * @return handle to abort the operation
343 */
344struct GNUNET_IDENTITY_EgoLookup *
345GNUNET_IDENTITY_ego_lookup_by_suffix (struct GNUNET_IDENTITY_Handle *id,
346 const char *suffix,
347 GNUNET_IDENTITY_EgoCallback cb,
348 void *cb_cls);
349
350
351
352
332#if 0 /* keep Emacsens' auto-indent happy */ 353#if 0 /* keep Emacsens' auto-indent happy */
333{ 354{
334#endif 355#endif
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h
index 9962160f2..f43567611 100644
--- a/src/include/gnunet_strings_lib.h
+++ b/src/include/gnunet_strings_lib.h
@@ -222,7 +222,7 @@ GNUNET_STRINGS_buffer_fill (char *buffer,
222 * in the buffer and assign the count (varargs) of type "const char**" 222 * in the buffer and assign the count (varargs) of type "const char**"
223 * to the locations of the respective strings in the buffer. 223 * to the locations of the respective strings in the buffer.
224 * 224 *
225 * @param buffer the buffer to parse FIXME: not 'const', is it? 225 * @param buffer the buffer to parse
226 * @param size size of the @a buffer 226 * @param size size of the @a buffer
227 * @param count number of strings to locate 227 * @param count number of strings to locate
228 * @param ... pointers to where to store the strings 228 * @param ... pointers to where to store the strings