gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit b3ddc93861a6a171eee7c855f83c7a1314f6eaf9
parent eef4fb2cecaa8cf18f9ab9bcc1f0dbda0e1a6c2e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 15 Jun 2019 15:37:00 +0200

of course it is const

Diffstat:
Msrc/include/gnunet_identity_service.h | 21+++++++++++++++++++++
Msrc/include/gnunet_strings_lib.h | 2+-
2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h @@ -329,6 +329,27 @@ void GNUNET_IDENTITY_ego_lookup_cancel (struct GNUNET_IDENTITY_EgoLookup *el); +/** + * Obtain the ego with the maximum suffix match between the + * ego's name and the given domain name @a suffix. I.e., given + * a @a suffix "a.b.c" and egos with names "d.a.b.c", "b.c" and "c", + * we return the ego for "b.c". + * + * @param id identity service to query + * @param suffix for which domain name suffix is an identity wanted + * @param cb function to call with the result (will only be called once) + * @param cb_cls closure for @a cb + * @return handle to abort the operation + */ +struct GNUNET_IDENTITY_EgoLookup * +GNUNET_IDENTITY_ego_lookup_by_suffix (struct GNUNET_IDENTITY_Handle *id, + const char *suffix, + GNUNET_IDENTITY_EgoCallback cb, + void *cb_cls); + + + + #if 0 /* keep Emacsens' auto-indent happy */ { #endif diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h @@ -222,7 +222,7 @@ GNUNET_STRINGS_buffer_fill (char *buffer, * in the buffer and assign the count (varargs) of type "const char**" * to the locations of the respective strings in the buffer. * - * @param buffer the buffer to parse FIXME: not 'const', is it? + * @param buffer the buffer to parse * @param size size of the @a buffer * @param count number of strings to locate * @param ... pointers to where to store the strings