Sat, 09 Aug 2025 17:37:27 +0800
Fix the birb header path
The birb header referred would only work with birb provided by wrap casuing
build to fail because of system-installed birb dependency. The commit points
it to the correct path <birb.h>.
See: https://keep.imfreedom.org/birb/birb/file/5bf00c7d7f80/birb/meson.build#l77
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
1 | /* |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * Purple is the legal property of its developers, whose names are too numerous |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * source distribution. |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
12 | * any later version. |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
17 | * more details. |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
41241
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | */ |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #include "purpleaccountusersplit.h" |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
25 | /****************************************************************************** |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
26 | * Structs |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
27 | *****************************************************************************/ |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
28 | struct _PurpleAccountUserSplit { |
|
42841
fbb5c5cb37f4
Modernize files that start with purplea
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
29 | char *text; |
|
fbb5c5cb37f4
Modernize files that start with purplea
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
30 | char *default_value; |
|
fbb5c5cb37f4
Modernize files that start with purplea
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
31 | char field_sep; |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
32 | gboolean reverse; |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | gboolean constant; |
|
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 | |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
36 | /****************************************************************************** |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
37 | * Public API |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
38 | *****************************************************************************/ |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
39 | G_DEFINE_BOXED_TYPE( |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
40 | PurpleAccountUserSplit, |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
41 | purple_account_user_split, |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
42 | purple_account_user_split_copy, |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
43 | purple_account_user_split_destroy |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
44 | ); |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
45 | |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | PurpleAccountUserSplit * |
|
42841
fbb5c5cb37f4
Modernize files that start with purplea
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
47 | purple_account_user_split_new(const char *text, const char *default_value, char sep) |
|
39968
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 | PurpleAccountUserSplit *split; |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | g_return_val_if_fail(text != NULL, NULL); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | g_return_val_if_fail(sep != 0, NULL); |
|
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 | split = g_new0(PurpleAccountUserSplit, 1); |
|
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 | split->text = g_strdup(text); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | split->field_sep = sep; |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | split->default_value = g_strdup(default_value); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | split->reverse = TRUE; |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | return split; |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | } |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
64 | PurpleAccountUserSplit * |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
65 | purple_account_user_split_copy(PurpleAccountUserSplit *split) { |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
66 | PurpleAccountUserSplit *newsplit = NULL; |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
67 | |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
68 | newsplit = purple_account_user_split_new(split->text, split->default_value, split->field_sep); |
|
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 | newsplit->reverse = split->reverse; |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
71 | newsplit->constant = split->constant; |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
72 | |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
73 | return newsplit; |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
74 | } |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
75 | |
|
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
76 | |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | void |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | 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 | g_return_if_fail(split != NULL); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | g_free(split->text); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | g_free(split->default_value); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | g_free(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 | |
|
42841
fbb5c5cb37f4
Modernize files that start with purplea
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
87 | const char * |
|
41241
1a222acd5e89
Remove the unnecessary const specifier for the accountusersplit api
Gary Kramlich <grim@reaperworld.com>
parents:
39969
diff
changeset
|
88 | 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 | g_return_val_if_fail(split != NULL, NULL); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | return split->text; |
|
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 | |
|
42841
fbb5c5cb37f4
Modernize files that start with purplea
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
95 | const char * |
|
41241
1a222acd5e89
Remove the unnecessary const specifier for the accountusersplit api
Gary Kramlich <grim@reaperworld.com>
parents:
39969
diff
changeset
|
96 | 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
|
97 | { |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | g_return_val_if_fail(split != NULL, NULL); |
|
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 | return split->default_value; |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
101 | } |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
102 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
103 | char |
|
41241
1a222acd5e89
Remove the unnecessary const specifier for the accountusersplit api
Gary Kramlich <grim@reaperworld.com>
parents:
39969
diff
changeset
|
104 | purple_account_user_split_get_separator(PurpleAccountUserSplit *split) |
|
39968
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 | g_return_val_if_fail(split != NULL, 0); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
107 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
108 | return split->field_sep; |
|
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 | gboolean |
|
41241
1a222acd5e89
Remove the unnecessary const specifier for the accountusersplit api
Gary Kramlich <grim@reaperworld.com>
parents:
39969
diff
changeset
|
112 | purple_account_user_split_get_reverse(PurpleAccountUserSplit *split) |
|
39968
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 | g_return_val_if_fail(split != NULL, FALSE); |
|
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 | return split->reverse; |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
117 | } |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
119 | void |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
120 | 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
|
121 | { |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
122 | g_return_if_fail(split != NULL); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
123 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
124 | split->reverse = reverse; |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
125 | } |
|
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 | gboolean |
|
41241
1a222acd5e89
Remove the unnecessary const specifier for the accountusersplit api
Gary Kramlich <grim@reaperworld.com>
parents:
39969
diff
changeset
|
128 | purple_account_user_split_is_constant(PurpleAccountUserSplit *split) |
|
39968
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 | g_return_val_if_fail(split != NULL, FALSE); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
131 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
132 | return split->constant; |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
133 | } |
|
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 | void |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | purple_account_user_split_set_constant(PurpleAccountUserSplit *split, |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
137 | gboolean constant) |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
138 | { |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
139 | g_return_if_fail(split != NULL); |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
140 | |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
141 | split->constant = constant; |
|
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
142 | } |
|
39969
b1ccd1961499
Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
143 |