aboutsummaryrefslogtreecommitdiff
path: root/include/gnunet_chat_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gnunet_chat_lib.h')
-rw-r--r--include/gnunet_chat_lib.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h
index 2590dd2..1f94391 100644
--- a/include/gnunet_chat_lib.h
+++ b/include/gnunet_chat_lib.h
@@ -688,8 +688,8 @@ void*
688GNUNET_CHAT_contact_get_user_pointer (const struct GNUNET_CHAT_Contact *contact); 688GNUNET_CHAT_contact_get_user_pointer (const struct GNUNET_CHAT_Contact *contact);
689 689
690/** 690/**
691 * Returns if a given <i>contact</i> is owned as account and whether it has 691 * Returns if a given <i>contact</i> is owned by the current account and whether
692 * sent messages with. 692 * it has sent messages with.
693 * 693 *
694 * @param[in] contact Contact 694 * @param[in] contact Contact
695 * @return GNUNET_YES if the contact is owned, otherwise GNUNET_NO 695 * @return GNUNET_YES if the contact is owned, otherwise GNUNET_NO
@@ -775,6 +775,31 @@ GNUNET_CHAT_group_iterate_contacts (const struct GNUNET_CHAT_Group *group,
775 void *cls); 775 void *cls);
776 776
777/** 777/**
778 * Sets a custom <i>user pointer</i> to a given <i>member</i> relative to a
779 * <i>group</i> so it can be accessed in member related callbacks.
780 *
781 * @param[in,out] group Chat group
782 * @param[in] member Contact
783 * @param[in] user_pointer Custom user pointer
784 */
785void
786GNUNET_CHAT_member_set_user_pointer (struct GNUNET_CHAT_Group *group,
787 const struct GNUNET_CHAT_Contact *member,
788 void *user_pointer);
789
790/**
791 * Returns the custom user pointer of a given <i>member</i> relative to a
792 * <i>group</i> or NULL if it was not set any.
793 *
794 * @param[in] group Chat group
795 * @param[in] member Contact
796 * @return Custom user pointer or NULL
797 */
798void*
799GNUNET_CHAT_member_get_user_pointer (const struct GNUNET_CHAT_Group *group,
800 const struct GNUNET_CHAT_Contact *member);
801
802/**
778 * Returns the chat context for a chat with a given <i>group</i>. 803 * Returns the chat context for a chat with a given <i>group</i>.
779 * 804 *
780 * @param[in,out] group Group 805 * @param[in,out] group Group
@@ -925,31 +950,6 @@ GNUNET_CHAT_context_iterate_files (struct GNUNET_CHAT_Context *context,
925 void *cls); 950 void *cls);
926 951
927/** 952/**
928 * Sets a custom <i>user pointer</i> to a given <i>member</i> relative to a
929 * <i>context</i> so it can be accessed in member related callbacks.
930 *
931 * @param[in,out] context Chat context
932 * @param[in] member Contact
933 * @param[in] user_pointer Custom user pointer
934 */
935void
936GNUNET_CHAT_member_set_user_pointer (struct GNUNET_CHAT_Context *context,
937 const struct GNUNET_CHAT_Contact *member,
938 void *user_pointer);
939
940/**
941 * Returns the custom user pointer of a given <i>contact</i> or NULL if it was
942 * not set any.
943 *
944 * @param[in] context Chat context
945 * @param[in] member Contact
946 * @return Custom user pointer or NULL
947 */
948void*
949GNUNET_CHAT_member_get_user_pointer (const struct GNUNET_CHAT_Context *context,
950 const struct GNUNET_CHAT_Contact *member);
951
952/**
953 * Returns the kind of a given <i>message</i> to determine its content and 953 * Returns the kind of a given <i>message</i> to determine its content and
954 * related usage. 954 * related usage.
955 * 955 *