diff options
Diffstat (limited to 'include/gnunet_chat_lib.h')
-rw-r--r-- | include/gnunet_chat_lib.h | 22 |
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 | |||
522 | GNUNET_CHAT_lobby_join (struct GNUNET_CHAT_Handle *handle, | 522 | GNUNET_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 | */ | ||
533 | void | ||
534 | GNUNET_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 | */ | ||
544 | void* | ||
545 | GNUNET_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. |