diff options
author | Jacki <jacki@thejackimonster.de> | 2024-02-17 17:16:48 +0100 |
---|---|---|
committer | Jacki <jacki@thejackimonster.de> | 2024-02-17 17:16:48 +0100 |
commit | 35e3ee46594914fd651d82120772d051a8f5535a (patch) | |
tree | 36e4da0d8434a5c0722b1d92c019707dc09d041d /include | |
parent | 3f81dbe736093e4e4842ab166cc0ed68a6791761 (diff) | |
download | libgnunetchat-35e3ee46594914fd651d82120772d051a8f5535a.tar.gz libgnunetchat-35e3ee46594914fd651d82120772d051a8f5535a.zip |
Adjust blocking code for generic tagging of contacts
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/gnunet/gnunet_chat_lib.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/gnunet/gnunet_chat_lib.h b/include/gnunet/gnunet_chat_lib.h index 0348579..35f9ec6 100644 --- a/include/gnunet/gnunet_chat_lib.h +++ b/include/gnunet/gnunet_chat_lib.h | |||
@@ -810,6 +810,40 @@ enum GNUNET_GenericReturnValue | |||
810 | GNUNET_CHAT_contact_is_blocked (const struct GNUNET_CHAT_Contact *contact); | 810 | GNUNET_CHAT_contact_is_blocked (const struct GNUNET_CHAT_Contact *contact); |
811 | 811 | ||
812 | /** | 812 | /** |
813 | * Tags a given <i>contact</i> by the current account with a specific | ||
814 | * <i>tag</i>. | ||
815 | * | ||
816 | * @param[in,out] contact Contact | ||
817 | * @param[in] tag Tag | ||
818 | */ | ||
819 | void | ||
820 | GNUNET_CHAT_contact_tag (struct GNUNET_CHAT_Contact *contact, | ||
821 | const char *tag); | ||
822 | |||
823 | /** | ||
824 | * Untags a given <i>contact</i> by the current account with a specific | ||
825 | * <i>tag</i>. | ||
826 | * | ||
827 | * @param[in,out] contact Contact | ||
828 | * @param[in] tag Tag | ||
829 | */ | ||
830 | void | ||
831 | GNUNET_CHAT_contact_untag (struct GNUNET_CHAT_Contact *contact, | ||
832 | const char *tag); | ||
833 | |||
834 | /** | ||
835 | * Returns if a given <i>contact</i> is tagged by the current account with | ||
836 | * a specific <i>tag</i>. | ||
837 | * | ||
838 | * @param[in] contact Contact | ||
839 | * @return #GNUNET_YES if the contact is tagged, #GNUNET_SYSERR on failure and | ||
840 | * #GNUNET_NO otherwise | ||
841 | */ | ||
842 | enum GNUNET_GenericReturnValue | ||
843 | GNUNET_CHAT_contact_is_tagged (const struct GNUNET_CHAT_Contact *contact, | ||
844 | const char *tag); | ||
845 | |||
846 | /** | ||
813 | * Iterates through the tickets of a given <i>contact</i> with a selected | 847 | * Iterates through the tickets of a given <i>contact</i> with a selected |
814 | * callback and custom closure. | 848 | * callback and custom closure. |
815 | * | 849 | * |