Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/xdata.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 | 08db93bbd798 |
children | 5c1ed6296b56 9b0fd9a4d01b |
comparison
equal
deleted
inserted
replaced
18117:cd81f8f36788 | 18118:ab6d2763b8d8 |
---|---|
91 } | 91 } |
92 break; | 92 break; |
93 case JABBER_X_DATA_LIST_SINGLE: | 93 case JABBER_X_DATA_LIST_SINGLE: |
94 case JABBER_X_DATA_LIST_MULTI: | 94 case JABBER_X_DATA_LIST_MULTI: |
95 { | 95 { |
96 const GList *selected = purple_request_field_list_get_selected(field); | 96 GList *selected = purple_request_field_list_get_selected(field); |
97 char *value; | 97 char *value; |
98 fieldnode = xmlnode_new_child(result, "field"); | 98 fieldnode = xmlnode_new_child(result, "field"); |
99 xmlnode_set_attrib(fieldnode, "var", id); | 99 xmlnode_set_attrib(fieldnode, "var", id); |
100 | 100 |
101 while(selected) { | 101 while(selected) { |