annotate src/protocols/trepia/profile.c @ 9191:06b28fb24300

[gaim-migrate @ 9986] " This patch was inspired by Robert Story's previous timestamp patch (#944943). That was rejected because of a timing inconsistency issue mentioned by Faceprint. This patch disables timestamps in a given conversation when no messages have been displayed since the last timestamp. When a new message is about to be displayed in a disabled timestamp conversation, a timestamp is inserted first to maintain timing consistency. Then the timestamp display is reenabled and the IM message is printed. This patch also handles a bug in the original timestamp plugin. Previously, when the timestamp interval was modified in the preferences, no current open conversations are affected. I have modified it so that all open conversations use the new interval. I would have sent this as a separate patch, but this is my first patch and didn't want to mess it up :)." --Eddie Sohn i liked the original patch and was somewhat disappointed that it didn't get fixed to address Nathan's concern, so i'm happy to merge this one in. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 06 Jun 2004 02:08:57 +0000
parents 90eea4997759
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5730
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 /**
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2 * @file profile.h Trepia profile API
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
3 *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
4 * gaim
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
5 *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
6 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org>
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
7 *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
8 * This program is free software; you can redistribute it and/or modify
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 * (at your option) any later version.
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12 *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful,
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16 * GNU General Public License for more details.
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
17 *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
19 * along with this program; if not, write to the Free Software
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
21 */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
22 #include "profile.h"
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
23
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
24 TrepiaProfile *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
25 trepia_profile_new(void)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
26 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
27 return g_new0(TrepiaProfile, 1);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
28 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
29
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
30 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
31 trepia_profile_destroy(TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
32 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
33 if (profile->location != NULL) g_free(profile->location);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
34 if (profile->login != NULL) g_free(profile->login);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
35 if (profile->first_name != NULL) g_free(profile->first_name);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
36 if (profile->last_name != NULL) g_free(profile->last_name);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
37 if (profile->profile != NULL) g_free(profile->profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
38 if (profile->email != NULL) g_free(profile->email);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
39 if (profile->aim != NULL) g_free(profile->aim);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
40 if (profile->homepage != NULL) g_free(profile->homepage);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
41 if (profile->country != NULL) g_free(profile->country);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
42 if (profile->state != NULL) g_free(profile->state);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
43 if (profile->city != NULL) g_free(profile->city);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
44 if (profile->languages != NULL) g_free(profile->languages);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
45 if (profile->school != NULL) g_free(profile->school);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
46 if (profile->company != NULL) g_free(profile->company);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
47
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
48 g_free(profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
49 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
50
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
51 void
5752
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
52 trepia_profile_set_type(TrepiaProfile *profile, int value)
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
53 {
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
54 g_return_if_fail(profile != NULL);
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
55
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
56 profile->type = value;
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
57 }
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
58
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
59 void
5730
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
60 trepia_profile_set_id(TrepiaProfile *profile, int value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
61 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
62 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
63
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
64 profile->id = value;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
65 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
66
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
67 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
68 trepia_profile_set_location(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
69 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
70 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
71
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
72 if (profile->location != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
73 g_free(profile->location);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
74
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
75 profile->location = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
76 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
77
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
78 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
79 trepia_profile_set_login_time(TrepiaProfile *profile, time_t value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
80 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
81 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
82
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
83 profile->login_time = value;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
84 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
85
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
86 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
87 trepia_profile_set_login(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
88 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
89 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
90
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
91 if (profile->login != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
92 g_free(profile->login);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
93
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
94 profile->login = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
95 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
96
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
97 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
98 trepia_profile_set_age(TrepiaProfile *profile, int value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
99 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
100 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
101
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
102 profile->age = value;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
103 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
104
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
105
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
106 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
107 trepia_profile_set_sex(TrepiaProfile *profile, char value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
108 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
109 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
110
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
111 profile->sex = value;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
112 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
113
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
114 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
115 trepia_profile_set_first_name(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
116 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
117 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
118
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
119 if (profile->first_name != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
120 g_free(profile->first_name);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
121
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
122 profile->first_name = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
123 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
124
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
125 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
126 trepia_profile_set_last_name(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
127 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
128 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
129
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
130 if (profile->last_name != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
131 g_free(profile->last_name);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
132
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
133 profile->last_name = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
134 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
135
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
136 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
137 trepia_profile_set_profile(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
138 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
139 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
140
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
141 if (profile->profile != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
142 g_free(profile->profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
143
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
144 profile->profile = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
145 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
146
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
147 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
148 trepia_profile_set_email(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
149 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
150 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
151
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
152 if (profile->email != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
153 g_free(profile->email);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
154
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
155 profile->email = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
156 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
157
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
158 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
159 trepia_profile_set_icq(TrepiaProfile *profile, int value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
160 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
161 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
162
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
163 profile->icq = value;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
164 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
165
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
166 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
167 trepia_profile_set_aim(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
168 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
169 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
170
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
171 if (profile->aim != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
172 g_free(profile->aim);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
173
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
174 profile->aim = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
175 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
176
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
177 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
178 trepia_profile_set_msn(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
179 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
180 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
181
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
182 if (profile->msn != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
183 g_free(profile->msn);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
184
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
185 profile->msn = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
186 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
187
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
188 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
189 trepia_profile_set_yahoo(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
190 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
191 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
192
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
193 if (profile->yahoo != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
194 g_free(profile->yahoo);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
195
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
196 profile->yahoo = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
197 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
198
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
199 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
200 trepia_profile_set_homepage(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
201 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
202 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
203
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
204 if (profile->homepage != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
205 g_free(profile->homepage);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
206
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
207 profile->homepage = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
208 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
209
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
210 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
211 trepia_profile_set_country(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
212 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
213 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
214
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
215 if (profile->country != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
216 g_free(profile->country);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
217
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
218 profile->country = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
219 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
220
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
221 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
222 trepia_profile_set_state(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
223 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
224 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
225
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
226 if (profile->state != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
227 g_free(profile->state);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
228
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
229 profile->state = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
230 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
231
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
232 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
233 trepia_profile_set_city(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
234 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
235 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
236
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
237 if (profile->city != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
238 g_free(profile->city);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
239
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
240 profile->city = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
241 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
242
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
243 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
244 trepia_profile_set_languages(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
245 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
246 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
247
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
248 if (profile->languages != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
249 g_free(profile->languages);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
250
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
251 profile->languages = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
252 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
253
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
254 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
255 trepia_profile_set_school(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
256 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
257 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
258
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
259 if (profile->school != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
260 g_free(profile->school);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
261
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
262 profile->school = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
263 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
264
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
265 void
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
266 trepia_profile_set_company(TrepiaProfile *profile, const char *value)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
267 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
268 g_return_if_fail(profile != NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
269
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
270 if (profile->company != NULL)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
271 g_free(profile->company);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
272
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
273 profile->company = (value == NULL ? NULL : g_strdup(value));
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
274 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
275
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
276 int
5752
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
277 trepia_profile_get_type(const TrepiaProfile *profile)
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
278 {
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
279 g_return_val_if_fail(profile != NULL, 0);
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
280
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
281 return profile->type;
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
282 }
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
283
90eea4997759 [gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents: 5730
diff changeset
284 int
5730
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
285 trepia_profile_get_id(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
286 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
287 g_return_val_if_fail(profile != NULL, 0);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
288
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
289 return profile->id;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
290 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
291
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
292 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
293 trepia_profile_get_location(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
294 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
295 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
296
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
297 return profile->location;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
298 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
299
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
300 time_t
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
301 trepia_profile_get_login_time(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
302 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
303 g_return_val_if_fail(profile != NULL, 0);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
304
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
305 return profile->login_time;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
306 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
307
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
308 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
309 trepia_profile_get_login(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
310 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
311 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
312
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
313 return profile->login;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
314 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
315
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
316 int
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
317 trepia_profile_get_age(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
318 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
319 g_return_val_if_fail(profile != NULL, 0);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
320
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
321 return profile->age;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
322 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
323
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
324 char
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
325 trepia_profile_get_sex(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
326 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
327 g_return_val_if_fail(profile != NULL, '?');
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
328
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
329 return profile->sex;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
330 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
331
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
332 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
333 trepia_profile_get_first_name(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
334 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
335 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
336
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
337 return profile->first_name;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
338 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
339
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
340 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
341 trepia_profile_get_last_name(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
342 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
343 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
344
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
345 return profile->last_name;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
346 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
347
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
348 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
349 trepia_profile_get_profile(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
350 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
351 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
352
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
353 return profile->profile;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
354 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
355
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
356 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
357 trepia_profile_get_email(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
358 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
359 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
360
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
361 return profile->email;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
362 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
363
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
364 int
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
365 trepia_profile_get_icq(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
366 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
367 g_return_val_if_fail(profile != NULL, 0);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
368
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
369 return profile->icq;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
370 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
371
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
372 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
373 trepia_profile_get_aim(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
374 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
375 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
376
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
377 return profile->aim;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
378 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
379
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
380 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
381 trepia_profile_get_msn(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
382 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
383 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
384
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
385 return profile->msn;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
386 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
387
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
388 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
389 trepia_profile_get_yahoo(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
390 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
391 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
392
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
393 return profile->yahoo;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
394 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
395
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
396 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
397 trepia_profile_get_homepage(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
398 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
399 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
400
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
401 return profile->homepage;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
402 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
403
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
404 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
405 trepia_profile_get_country(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
406 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
407 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
408
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
409 return profile->country;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
410 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
411
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
412 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
413 trepia_profile_get_state(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
414 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
415 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
416
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
417 return profile->state;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
418 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
419
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
420 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
421 trepia_profile_get_city(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
422 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
423 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
424
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
425 return profile->city;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
426 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
427
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
428 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
429 trepia_profile_get_languages(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
430 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
431 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
432
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
433 return profile->languages;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
434 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
435
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
436 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
437 trepia_profile_get_school(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
438 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
439 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
440
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
441 return profile->school;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
442 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
443
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
444 const char *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
445 trepia_profile_get_company(const TrepiaProfile *profile)
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
446 {
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
447 g_return_val_if_fail(profile != NULL, NULL);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
448
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
449 return profile->company;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
450 }
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
451