| 228 *list = g_slist_prepend(*list, GINT_TO_POINTER(id)); |
228 *list = g_slist_prepend(*list, GINT_TO_POINTER(id)); |
| 229 else |
229 else |
| 230 *list = g_slist_remove(*list, GINT_TO_POINTER(id)); |
230 *list = g_slist_remove(*list, GINT_TO_POINTER(id)); |
| 231 } |
231 } |
| 232 |
232 |
| 233 /** |
233 /* Return the location of id in list, or NULL if not found */ |
| 234 * @brief Return the location of id in list, or NULL if not found (返回id在链表中的位置,没有找到则返回NULL) |
|
| 235 */ |
|
| 236 GSList *qq_get_pending_id(GSList *list, guint32 id) |
234 GSList *qq_get_pending_id(GSList *list, guint32 id) |
| 237 { |
235 { |
| 238 return g_slist_find(list, GINT_TO_POINTER(id)); |
236 return g_slist_find(list, GINT_TO_POINTER(id)); |
| 239 } |
237 } |