Fri, 20 Oct 2023 01:09:45 -0500
Implement ProtocolFileTransfer
Testing Done:
Ran the unit tests under valgrind.
Bugs closed: PIDGIN-17833
Reviewed at https://reviews.imfreedom.org/r/2643/
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* purple |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Purple is the legal property of its developers, whose names are too numerous |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * source distribution. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | */ |
|
71622ee1354e
move PurpleAccountUserSplit to their 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:
40241
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:
40241
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:
40241
diff
changeset
|
24 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40241
diff
changeset
|
25 | |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
26 | #ifndef PURPLE_ACCOUNT_USER_SPLIT_H |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
27 | #define PURPLE_ACCOUNT_USER_SPLIT_H |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
28 | |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
29 | #include <glib.h> |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
30 | #include <glib-object.h> |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
32 | #define PURPLE_TYPE_ACCOUNT_USER_SPLIT (purple_account_user_split_get_type()) |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | /** |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | * PurpleAccountUserSplit: |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | * A username split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | * This is used by some protocols to separate the fields of the username |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | * into more human-readable components. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | */ |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | typedef struct _PurpleAccountUserSplit PurpleAccountUserSplit; |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | G_BEGIN_DECLS |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
46 | GType purple_account_user_split_get_type(void); |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | /** |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | * purple_account_user_split_new: |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | * @text: The text of the option. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | * @default_value: The default value. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | * @sep: The field separator. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | * Creates a new account username split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | * Returns: The new user split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | */ |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
58 | PurpleAccountUserSplit *purple_account_user_split_new(const gchar *text, const gchar *default_value, gchar sep); |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
59 | |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
60 | /** |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
61 | * purple_account_user_split_copy: |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
62 | * @split: The split to copy. |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
63 | * |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
64 | * Creates a copy of @split. |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
65 | * |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
66 | * Returns: (transfer full): A copy of @split. |
|
39971
226e6e8bb07d
Add a since tag to purple_account_user_split_copy
Gary Kramlich <grim@reaperworld.com>
parents:
39969
diff
changeset
|
67 | * |
|
226e6e8bb07d
Add a since tag to purple_account_user_split_copy
Gary Kramlich <grim@reaperworld.com>
parents:
39969
diff
changeset
|
68 | * Since: 3.0.0 |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
69 | */ |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
70 | PurpleAccountUserSplit *purple_account_user_split_copy(PurpleAccountUserSplit *split); |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | /** |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | * purple_account_user_split_destroy: |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | * @split: The split to destroy. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | * Destroys an account username split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | */ |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | void purple_account_user_split_destroy(PurpleAccountUserSplit *split); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | /** |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | * purple_account_user_split_get_text: |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | * @split: The account username split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | * Returns the text for an account username split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
86 | * Returns: The account username split's text. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | */ |
|
41241
1a222acd5e89
Remove the unnecessary const specifier for the accountusersplit api
Gary Kramlich <grim@reaperworld.com>
parents:
41207
diff
changeset
|
88 | const gchar *purple_account_user_split_get_text(PurpleAccountUserSplit *split); |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
89 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
90 | /** |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | * purple_account_user_split_get_default_value: |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | * @split: The account username split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
94 | * Returns the default string value for an account split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
95 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
96 | * Returns: The default string. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | */ |
|
41241
1a222acd5e89
Remove the unnecessary const specifier for the accountusersplit api
Gary Kramlich <grim@reaperworld.com>
parents:
41207
diff
changeset
|
98 | const gchar *purple_account_user_split_get_default_value(PurpleAccountUserSplit *split); |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
99 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
100 | /** |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
101 | * purple_account_user_split_get_separator: |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
102 | * @split: The account username split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
103 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
104 | * Returns the field separator for an account split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
105 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
106 | * Returns: The field separator. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
107 | */ |
|
41241
1a222acd5e89
Remove the unnecessary const specifier for the accountusersplit api
Gary Kramlich <grim@reaperworld.com>
parents:
41207
diff
changeset
|
108 | gchar purple_account_user_split_get_separator(PurpleAccountUserSplit *split); |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
109 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
110 | /** |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | * purple_account_user_split_get_reverse: |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | * @split: The account username split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
113 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
114 | * Returns the 'reverse' value for an account split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
115 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
116 | * Returns: The 'reverse' value. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
117 | */ |
|
41241
1a222acd5e89
Remove the unnecessary const specifier for the accountusersplit api
Gary Kramlich <grim@reaperworld.com>
parents:
41207
diff
changeset
|
118 | gboolean purple_account_user_split_get_reverse(PurpleAccountUserSplit *split); |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
119 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
120 | /** |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
121 | * purple_account_user_split_set_reverse: |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
122 | * @split: The account username split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
123 | * @reverse: The 'reverse' value |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
124 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
125 | * Sets the 'reverse' value for an account split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
126 | */ |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
127 | void purple_account_user_split_set_reverse(PurpleAccountUserSplit *split, gboolean reverse); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
128 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
129 | /** |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
130 | * purple_account_user_split_is_constant: |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
131 | * @split: The account username split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
132 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
133 | * Returns the constant parameter for an account split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
134 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
135 | * When split is constant, it does not need to be displayed |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | * in configuration dialog. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
137 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
138 | * Returns: %TRUE, if the split is constant. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
139 | */ |
|
41241
1a222acd5e89
Remove the unnecessary const specifier for the accountusersplit api
Gary Kramlich <grim@reaperworld.com>
parents:
41207
diff
changeset
|
140 | gboolean purple_account_user_split_is_constant(PurpleAccountUserSplit *split); |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
141 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
142 | /** |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
143 | * purple_account_user_split_set_constant: |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
144 | * @split: The account username split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
145 | * @constant: %TRUE, if the split is a constant part. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
146 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
147 | * Sets the constant parameter of account split. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
148 | */ |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
149 | void purple_account_user_split_set_constant(PurpleAccountUserSplit *split, gboolean constant); |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
150 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
151 | G_END_DECLS |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
152 | |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
153 | #endif /* PURPLE_ACCOUNT_USER_SPLIT_H */ |