comparison libpurple/protocols/silc10/buddy.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 ba1b50f114f6
children 16bdcffb1c62
comparison
equal deleted inserted replaced
18117:cd81f8f36788 18118:ab6d2763b8d8
1116 1116
1117 static void 1117 static void
1118 silcpurple_add_buddy_select_cb(SilcPurpleBuddyRes r, PurpleRequestFields *fields) 1118 silcpurple_add_buddy_select_cb(SilcPurpleBuddyRes r, PurpleRequestFields *fields)
1119 { 1119 {
1120 PurpleRequestField *f; 1120 PurpleRequestField *f;
1121 const GList *list; 1121 GList *list;
1122 SilcClientEntry client_entry; 1122 SilcClientEntry client_entry;
1123 1123
1124 f = purple_request_fields_get_field(fields, "list"); 1124 f = purple_request_fields_get_field(fields, "list");
1125 list = purple_request_field_list_get_selected(f); 1125 list = purple_request_field_list_get_selected(f);
1126 if (!list) { 1126 if (!list) {