Mercurial > pidgin
comparison src/protocols/msn/sync.c @ 9198:ab6636c5a136
[gaim-migrate @ 9993]
Updated all the copyright headers for all the *.[ch] files -- all 63. No
fun, but I receive great satisfaction in knowing that you all have to
recompile this, again.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 06 Jun 2004 03:42:55 +0000 |
parents | 502707ca1836 |
children | 554ef91db2dd |
comparison
equal
deleted
inserted
replaced
9197:ec417d2f9666 | 9198:ab6636c5a136 |
---|---|
1 /** | |
2 * @file sync.c MSN list synchronization functions | |
3 * | |
4 * gaim | |
5 * | |
6 * Gaim is the legal property of its developers, whose names are too numerous | |
7 * to list here. Please refer to the COPYRIGHT file distributed with this | |
8 * source distribution. | |
9 * | |
10 * This program is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
12 * the Free Software Foundation; either version 2 of the License, or | |
13 * (at your option) any later version. | |
14 * | |
15 * This program is distributed in the hope that it will be useful, | |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 * GNU General Public License for more details. | |
19 * | |
20 * You should have received a copy of the GNU General Public License | |
21 * along with this program; if not, write to the Free Software | |
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
23 */ | |
1 #include "msn.h" | 24 #include "msn.h" |
2 #include "sync.h" | 25 #include "sync.h" |
3 #include "state.h" | 26 #include "state.h" |
4 | 27 |
5 static MsnTable *cbs_table; | 28 static MsnTable *cbs_table; |
95 MsnUser *user; | 118 MsnUser *user; |
96 | 119 |
97 passport = cmd->params[0]; | 120 passport = cmd->params[0]; |
98 friend = gaim_url_decode(cmd->params[1]); | 121 friend = gaim_url_decode(cmd->params[1]); |
99 list_op = atoi(cmd->params[2]); | 122 list_op = atoi(cmd->params[2]); |
100 | 123 |
101 user = msn_user_new(session->userlist, passport, friend); | 124 user = msn_user_new(session->userlist, passport, friend); |
102 | 125 |
103 msn_userlist_add_user(session->userlist, user); | 126 msn_userlist_add_user(session->userlist, user); |
104 | 127 |
105 session->sync->last_user = user; | 128 session->sync->last_user = user; |
106 | 129 |
107 /* TODO: This can be improved */ | 130 /* TODO: This can be improved */ |
108 | 131 |
109 if (list_op & MSN_LIST_FL_OP) | 132 if (list_op & MSN_LIST_FL_OP) |
110 { | 133 { |
111 char **c; | 134 char **c; |
112 char **tokens; | 135 char **tokens; |
113 const char *group_nums; | 136 const char *group_nums; |
124 int id; | 147 int id; |
125 | 148 |
126 id = atoi(*c); | 149 id = atoi(*c); |
127 group_ids = g_slist_append(group_ids, GINT_TO_POINTER(id)); | 150 group_ids = g_slist_append(group_ids, GINT_TO_POINTER(id)); |
128 } | 151 } |
129 | 152 |
130 g_strfreev(tokens); | 153 g_strfreev(tokens); |
131 | 154 |
132 msn_got_lst_user(session, user, list_op, group_ids); | 155 msn_got_lst_user(session, user, list_op, group_ids); |
133 | 156 |
134 g_slist_free(group_ids); | 157 g_slist_free(group_ids); |