comparison src/notify.c @ 13640:d12bbe6da705

[gaim-migrate @ 16038] * Changed signatures of some of the search results notify API functions. * GG PRPL: Support parallel public directory searches. committer: Tailor Script <tailor@pidgin.im>
author Bartoz Oler <bartosz@pidgin.im>
date Sun, 16 Apr 2006 10:10:55 +0000
parents 852df2d9d4f8
children 6a5aaf46bd52
comparison
equal deleted inserted replaced
13639:43c7e892d8bf 13640:d12bbe6da705
163 } 163 }
164 164
165 void * 165 void *
166 gaim_notify_searchresults(GaimConnection *gc, const char *title, 166 gaim_notify_searchresults(GaimConnection *gc, const char *title,
167 const char *primary, const char *secondary, 167 const char *primary, const char *secondary,
168 GaimNotifySearchResults *results, GaimNotifyCloseCallback cb, gpointer user_data) 168 GaimNotifySearchResults *results, GaimNotifyCloseCallback cb,
169 gpointer user_data)
169 { 170 {
170 GaimNotifyUiOps *ops; 171 GaimNotifyUiOps *ops;
171 172
172 ops = gaim_notify_get_ui_ops(); 173 ops = gaim_notify_get_ui_ops();
173 174
176 177
177 info = g_new0(GaimNotifyInfo, 1); 178 info = g_new0(GaimNotifyInfo, 1);
178 info->type = GAIM_NOTIFY_SEARCHRESULTS; 179 info->type = GAIM_NOTIFY_SEARCHRESULTS;
179 info->handle = gc; 180 info->handle = gc;
180 info->ui_handle = ops->notify_searchresults(gc, title, primary, 181 info->ui_handle = ops->notify_searchresults(gc, title, primary,
181 secondary, results); 182 secondary, results, user_data);
182 info->cb = cb; 183 info->cb = cb;
183 info->cb_user_data = user_data; 184 info->cb_user_data = user_data;
184 185
185 handles = g_list_append(handles, info); 186 handles = g_list_append(handles, info);
186 187
223 } 224 }
224 225
225 void 226 void
226 gaim_notify_searchresults_new_rows(GaimConnection *gc, 227 gaim_notify_searchresults_new_rows(GaimConnection *gc,
227 GaimNotifySearchResults *results, 228 GaimNotifySearchResults *results,
228 void *data, gpointer user_data) 229 void *data)
229 { 230 {
230 GaimNotifyUiOps *ops; 231 GaimNotifyUiOps *ops;
231 232
232 ops = gaim_notify_get_ui_ops(); 233 ops = gaim_notify_get_ui_ops();
233 234
234 if (ops != NULL && ops->notify_searchresults != NULL) { 235 if (ops != NULL && ops->notify_searchresults != NULL) {
235 ops->notify_searchresults_new_rows(gc, results, data, user_data); 236 ops->notify_searchresults_new_rows(gc, results, data);
236 } 237 }
237 } 238 }
238 239
239 void 240 void
240 gaim_notify_searchresults_button_add(GaimNotifySearchResults *results, 241 gaim_notify_searchresults_button_add(GaimNotifySearchResults *results,