diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-15 15:37:00 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-06-15 15:38:17 +0200 |
commit | b3ddc93861a6a171eee7c855f83c7a1314f6eaf9 (patch) | |
tree | caa01ab4c3a83832ba2ea8ef1ecc99bd9db7ea6b | |
parent | eef4fb2cecaa8cf18f9ab9bcc1f0dbda0e1a6c2e (diff) | |
download | gnunet-b3ddc93861a6a171eee7c855f83c7a1314f6eaf9.tar.gz gnunet-b3ddc93861a6a171eee7c855f83c7a1314f6eaf9.zip |
of course it is const
-rw-r--r-- | src/include/gnunet_identity_service.h | 21 | ||||
-rw-r--r-- | src/include/gnunet_strings_lib.h | 2 |
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 | |||
329 | GNUNET_IDENTITY_ego_lookup_cancel (struct GNUNET_IDENTITY_EgoLookup *el); | 329 | GNUNET_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 | */ | ||
344 | struct GNUNET_IDENTITY_EgoLookup * | ||
345 | GNUNET_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 |