comparison libpurple/protocols/gg/gg.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 3cdca2d42619
children ac7b380daa0a
comparison
equal deleted inserted replaced
18117:cd81f8f36788 18118:ab6d2763b8d8
821 /* static void ggp_callback_add_to_chat_ok(PurpleConnection *gc, PurpleRequestFields *fields) {{{ */ 821 /* static void ggp_callback_add_to_chat_ok(PurpleConnection *gc, PurpleRequestFields *fields) {{{ */
822 static void ggp_callback_add_to_chat_ok(PurpleConnection *gc, PurpleRequestFields *fields) 822 static void ggp_callback_add_to_chat_ok(PurpleConnection *gc, PurpleRequestFields *fields)
823 { 823 {
824 GGPInfo *info = gc->proto_data; 824 GGPInfo *info = gc->proto_data;
825 PurpleRequestField *field; 825 PurpleRequestField *field;
826 const GList *sel; 826 GList *sel;
827 827
828 field = purple_request_fields_get_field(fields, "name"); 828 field = purple_request_fields_get_field(fields, "name");
829 sel = purple_request_field_list_get_selected(field); 829 sel = purple_request_field_list_get_selected(field);
830 830
831 ggp_confer_participants_add_uin(gc, sel->data, info->tmp_buddy); 831 ggp_confer_participants_add_uin(gc, sel->data, info->tmp_buddy);