| 259 * Returns a list of all active connections. This does not |
259 * Returns a list of all active connections. This does not |
| 260 * include connections that are in the process of connecting. |
260 * include connections that are in the process of connecting. |
| 261 * |
261 * |
| 262 * @return A list of all active connections. |
262 * @return A list of all active connections. |
| 263 */ |
263 */ |
| 264 GList *purple_connections_get_all(void); |
264 const GList *purple_connections_get_all(void); |
| 265 |
265 |
| 266 /** |
266 /** |
| 267 * Returns a list of all connections in the process of connecting. |
267 * Returns a list of all connections in the process of connecting. |
| 268 * |
268 * |
| 269 * @return A list of connecting connections. |
269 * @return A list of connecting connections. |
| 270 */ |
270 */ |
| 271 GList *purple_connections_get_connecting(void); |
271 const GList *purple_connections_get_connecting(void); |
| 272 |
272 |
| 273 /** |
273 /** |
| 274 * Checks if gc is still a valid pointer to a gc. |
274 * Checks if gc is still a valid pointer to a gc. |
| 275 * |
275 * |
| 276 * @return @c TRUE if gc is valid. |
276 * @return @c TRUE if gc is valid. |
| 277 */ |
277 */ |
| 278 /* |
278 /* |
| 279 * TODO: Eventually this bad boy will be removed, because it is |
279 * TODO: Eventually this bad boy will be removed, because it is |
| 280 * a gross fix for a crashy problem. |
280 * a gross fix for a crashy problem. |
| 281 */ |
281 */ |
| 282 #define PURPLE_CONNECTION_IS_VALID(gc) (g_list_find(purple_connections_get_all(), (gc)) != NULL) |
282 #define PURPLE_CONNECTION_IS_VALID(gc) (g_list_find((GList *)purple_connections_get_all(), (gc)) != NULL) |
| 283 |
283 |
| 284 /*@}*/ |
284 /*@}*/ |
| 285 |
285 |
| 286 /**************************************************************************/ |
286 /**************************************************************************/ |
| 287 /** @name UI Registration Functions */ |
287 /** @name UI Registration Functions */ |