summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-06-15 15:37:00 +0200
committerChristian Grothoff <christian@grothoff.org>2019-06-15 15:38:17 +0200
commitb3ddc93861a6a171eee7c855f83c7a1314f6eaf9 (patch)
treecaa01ab4c3a83832ba2ea8ef1ecc99bd9db7ea6b
parenteef4fb2cecaa8cf18f9ab9bcc1f0dbda0e1a6c2e (diff)
of course it is const
-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
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
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,
* 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