aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-03-31 22:50:14 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2022-03-31 22:50:14 +0200
commite2baf6fe4dd8358095a102ca320bf4abf034716a (patch)
tree182ec3d4d2c00dcac324db1133757bd1d9993edc /include
parent5b266a4c6e22ba210086b6d9759fd8aae01abaaf (diff)
downloadlibgnunetchat-e2baf6fe4dd8358095a102ca320bf4abf034716a.tar.gz
libgnunetchat-e2baf6fe4dd8358095a102ca320bf4abf034716a.zip
Completed handle tests and added user pointer functions to header
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/gnunet_chat_lib.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h
index 135e82e..6d3a581 100644
--- a/include/gnunet_chat_lib.h
+++ b/include/gnunet_chat_lib.h
@@ -522,6 +522,28 @@ void
522GNUNET_CHAT_lobby_join (struct GNUNET_CHAT_Handle *handle, 522GNUNET_CHAT_lobby_join (struct GNUNET_CHAT_Handle *handle,
523 const struct GNUNET_CHAT_Uri *uri); 523 const struct GNUNET_CHAT_Uri *uri);
524 524
525
526/**
527 * Sets a custom <i>user pointer</i> to a given chat <i>handle</i> so it can
528 * be accessed in all handle related callbacks.
529 *
530 * @param[in,out] handle Chat handle
531 * @param[in] user_pointer Custom user pointer
532 */
533void
534GNUNET_CHAT_set_user_pointer (struct GNUNET_CHAT_Handle *handle,
535 void *user_pointer);
536
537/**
538 * Returns the custom user pointer of a given chat <i>handle</i> or NULL if it
539 * was not set any.
540 *
541 * @param[in] handle Chat handle
542 * @return Custom user pointer or NULL
543 */
544void*
545GNUNET_CHAT_get_user_pointer (const struct GNUNET_CHAT_Handle *handle);
546
525/** 547/**
526 * Iterates through the contacts of a given chat <i>handle</i> with a selected 548 * Iterates through the contacts of a given chat <i>handle</i> with a selected
527 * callback and custom closure. 549 * callback and custom closure.