libpurple/contact.h

Fri, 12 Aug 2022 03:44:34 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Fri, 12 Aug 2022 03:44:34 -0500
branch
gtk4
changeset 41560
2579a5138f0c
parent 41200
92a47aa620cf
child 41733
a9085b52de8b
permissions
-rw-r--r--

A bunch of random fixes for the the gtk4 branch

Testing Done:
Compiled

Reviewed at https://reviews.imfreedom.org/r/1581/

37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /* purple
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Purple is the legal property of its developers, whose names are too numerous
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 * to list here. Please refer to the COPYRIGHT file distributed with this
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * source distribution.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * (at your option) any later version.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * GNU General Public License for more details.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39738
diff changeset
22 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39738
diff changeset
23 # error "only <purple.h> may be included directly"
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39738
diff changeset
24 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39738
diff changeset
25
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 #ifndef PURPLE_CONTACT_H
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #define PURPLE_CONTACT_H
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29 #define PURPLE_TYPE_CONTACT (purple_contact_get_type())
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 #define PURPLE_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_CONTACT, PurpleContact))
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 #define PURPLE_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_CONTACT, PurpleContactClass))
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 #define PURPLE_IS_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_CONTACT))
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 #define PURPLE_IS_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_CONTACT))
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 #define PURPLE_CONTACT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_CONTACT, PurpleContactClass))
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 typedef struct _PurpleContact PurpleContact;
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37 typedef struct _PurpleContactClass PurpleContactClass;
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 #include "countingnode.h"
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 #include "group.h"
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 /**
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 * PurpleContact:
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 * A contact on the buddy list.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 * A contact is a counting node, which means it keeps track of the counts of
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 * the buddies under this contact.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 struct _PurpleContact {
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 PurpleCountingNode counting;
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 };
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 struct _PurpleContactClass {
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 PurpleCountingNodeClass counting_class;
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 /*< private >*/
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 void (*_purple_reserved1)(void);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59 void (*_purple_reserved2)(void);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 void (*_purple_reserved3)(void);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 void (*_purple_reserved4)(void);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 };
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 G_BEGIN_DECLS
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66 /**************************************************************************/
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 /* Contact API */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 /**************************************************************************/
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70 /**
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
71 * purple_contact_get_type:
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 * Returns: The #GType for the #PurpleContact object.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 GType purple_contact_get_type(void);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77 /**
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78 * purple_contact_new:
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 * Creates a new contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
81 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82 * Returns: A new contact struct
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
83 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
84 PurpleContact *purple_contact_new(void);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
86 /**
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 * purple_contact_get_group:
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88 * @contact: The contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
89 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
90 * Gets the PurpleGroup from a PurpleContact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
91 *
39738
14d425a528ad Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38552
diff changeset
92 * Returns: (transfer none): The group.
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
93 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
94 PurpleGroup *purple_contact_get_group(const PurpleContact *contact);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
95
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
96 /**
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
97 * purple_contact_get_priority_buddy:
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
98 * @contact: The contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
99 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
100 * Returns the highest priority buddy for a given contact.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
101 *
39738
14d425a528ad Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38552
diff changeset
102 * Returns: (transfer none): The highest priority buddy.
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
103 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104 PurpleBuddy *purple_contact_get_priority_buddy(PurpleContact *contact);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
105
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
106 /**
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
107 * purple_contact_set_alias:
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
108 * @contact: The contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
109 * @alias: The alias
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
110 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
111 * Sets the alias for a contact.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
112 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
113 void purple_contact_set_alias(PurpleContact *contact, const char *alias);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
114
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
115 /**
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
116 * purple_contact_get_alias:
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
117 * @contact: The contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
118 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
119 * Gets the alias for a contact.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
120 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
121 * Returns: The alias, or NULL if it is not set.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
122 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
123 const char *purple_contact_get_alias(PurpleContact *contact);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
124
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
125 /**
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
126 * purple_contact_on_account:
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
127 * @contact: The contact to search through.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
128 * @account: The account.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
129 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
130 * Determines whether an account owns any buddies in a given contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
131 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
132 * Returns: TRUE if there are any buddies from account in the contact, or FALSE otherwise.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
133 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
134 gboolean purple_contact_on_account(PurpleContact *contact, PurpleAccount *account);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
135
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
136 /**
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
137 * purple_contact_invalidate_priority_buddy:
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
138 * @contact: The contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
139 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
140 * Invalidates the priority buddy so that the next call to
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
141 * purple_contact_get_priority_buddy recomputes it.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
142 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
143 void purple_contact_invalidate_priority_buddy(PurpleContact *contact);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
144
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
145 /**
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
146 * purple_contact_merge:
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
147 * @source: The contact to merge
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
148 * @node: The place to merge to (a buddy or contact)
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
149 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
150 * Merges two contacts
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
151 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
152 * All of the buddies from source will be moved to target
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
153 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
154 void purple_contact_merge(PurpleContact *source, PurpleBlistNode *node);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
155
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
156
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
157 G_END_DECLS
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
158
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
159 #endif /* PURPLE_CONTACT_H */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
160

mercurial