diff options
author | Gary Kramlich <grim@reaperworld.com> | 2022-09-29 00:51:00 -0500 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2022-09-29 00:51:00 -0500 |
commit | 7150d95bd3e5d6d4b9efe570a2e4a97fc8ee07d3 (patch) | |
tree | 5a20a7b0ffeb669e0fa06e5f15f3221fb89e52ba /libpurple/purplecontact.h | |
parent | 91f7b6c283cb804a8375d785e0c6083279723d8e (diff) | |
download | pidgin-7150d95bd3e5d6d4b9efe570a2e4a97fc8ee07d3.tar.gz |
Add a person property to PurpleContact
Testing Done:
Ran the unit tests.
Reviewed at https://reviews.imfreedom.org/r/1852/
Diffstat (limited to 'libpurple/purplecontact.h')
-rw-r--r-- | libpurple/purplecontact.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libpurple/purplecontact.h b/libpurple/purplecontact.h index 1a7681b09f..bb2c4b1227 100644 --- a/libpurple/purplecontact.h +++ b/libpurple/purplecontact.h @@ -36,6 +36,8 @@ G_BEGIN_DECLS #define PURPLE_TYPE_CONTACT (purple_contact_get_type()) G_DECLARE_FINAL_TYPE(PurpleContact, purple_contact, PURPLE, CONTACT, GObject) +#include <libpurple/purpleperson.h> + /** * PurpleContact: * @@ -224,6 +226,30 @@ void purple_contact_set_presence(PurpleContact *contact, PurplePresence *presenc */ PurpleTags *purple_contact_get_tags(PurpleContact *contact); +/** + * purple_contact_set_person: + * @contact: The instance. + * @person: (nullable): The new [class@Purple.Person] or %NULL. + * + * Sets the person that @contact belongs to to @person. + * + * Since: 3.0.0 + */ +void purple_contact_set_person(PurpleContact *contact, PurplePerson *person); + +/** + * purple_contact_get_person: + * @contact: The instance. + * + * Gets the [class@Purple.Person] that @contact belongs to. + * + * Returns: (transfer none) (nullable): The [class@Purple.Person] that @contact + * belongs to, or %NULL. + * + * Since: 3.0.0 + */ +PurplePerson *purple_contact_get_person(PurpleContact *contact); + G_END_DECLS #endif /* PURPLE_CONTACT_H */ |