Mercurial > pidgin.yaz
comparison libpurple/protocols/sametime/sametime.c @ 18118:ab6d2763b8d8
Re-fix the DBus list handling code by killing const GList* / const GSList*
everywhere. Now we maintain a list of functions which return a GList or
GSList which must not be freed. Ideally at some point this will be
replaced with code that looks at the Doxygen comment for the function and
honors @constreturn, which I've declared as a macro around @return that
prints a @note about not modifying or freeing the returned value.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 16 Jun 2007 19:44:59 +0000 |
parents | 928fc0ecd6b6 |
children | 8261beed9653 5c1ed6296b56 |
comparison
equal
deleted
inserted
replaced
18117:cd81f8f36788 | 18118:ab6d2763b8d8 |
---|---|
2658 GList *images; | 2658 GList *images; |
2659 | 2659 |
2660 GString *str; | 2660 GString *str; |
2661 | 2661 |
2662 PurpleMimeDocument *doc; | 2662 PurpleMimeDocument *doc; |
2663 const GList *parts; | 2663 GList *parts; |
2664 | 2664 |
2665 img_by_cid = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); | 2665 img_by_cid = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); |
2666 images = NULL; | 2666 images = NULL; |
2667 | 2667 |
2668 /* don't want the contained string to ever be NULL */ | 2668 /* don't want the contained string to ever be NULL */ |
3399 | 3399 |
3400 | 3400 |
3401 static void conf_select_prompt_invite(PurpleBuddy *buddy, | 3401 static void conf_select_prompt_invite(PurpleBuddy *buddy, |
3402 PurpleRequestFields *fields) { | 3402 PurpleRequestFields *fields) { |
3403 PurpleRequestField *f; | 3403 PurpleRequestField *f; |
3404 const GList *l; | 3404 GList *l; |
3405 const char *msg; | 3405 const char *msg; |
3406 | 3406 |
3407 f = purple_request_fields_get_field(fields, CHAT_KEY_INVITE); | 3407 f = purple_request_fields_get_field(fields, CHAT_KEY_INVITE); |
3408 msg = purple_request_field_string_get_value(f); | 3408 msg = purple_request_field_string_get_value(f); |
3409 | 3409 |
5266 | 5266 |
5267 static void remote_group_multi_cleanup(gpointer ignore, | 5267 static void remote_group_multi_cleanup(gpointer ignore, |
5268 PurpleRequestFields *fields) { | 5268 PurpleRequestFields *fields) { |
5269 | 5269 |
5270 PurpleRequestField *f; | 5270 PurpleRequestField *f; |
5271 const GList *l; | 5271 GList *l; |
5272 | 5272 |
5273 f = purple_request_fields_get_field(fields, "group"); | 5273 f = purple_request_fields_get_field(fields, "group"); |
5274 l = purple_request_field_list_get_items(f); | 5274 l = purple_request_field_list_get_items(f); |
5275 | 5275 |
5276 for(; l; l = l->next) { | 5276 for(; l; l = l->next) { |
5332 | 5332 |
5333 | 5333 |
5334 static void remote_group_multi_cb(struct mwPurplePluginData *pd, | 5334 static void remote_group_multi_cb(struct mwPurplePluginData *pd, |
5335 PurpleRequestFields *fields) { | 5335 PurpleRequestFields *fields) { |
5336 PurpleRequestField *f; | 5336 PurpleRequestField *f; |
5337 const GList *l; | 5337 GList *l; |
5338 | 5338 |
5339 f = purple_request_fields_get_field(fields, "group"); | 5339 f = purple_request_fields_get_field(fields, "group"); |
5340 l = purple_request_field_list_get_selected(f); | 5340 l = purple_request_field_list_get_selected(f); |
5341 | 5341 |
5342 if(l) { | 5342 if(l) { |