Mercurial > pidgin
comparison libpurple/plugins/perl/common/Notify.xs @ 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 | 8e54f40a60f3 |
children | 47292ff1032c |
comparison
equal
deleted
inserted
replaced
18117:cd81f8f36788 | 18118:ab6d2763b8d8 |
---|---|
138 | 138 |
139 void | 139 void |
140 purple_notify_user_info_get_entries(user_info) | 140 purple_notify_user_info_get_entries(user_info) |
141 Purple::NotifyUserInfo user_info | 141 Purple::NotifyUserInfo user_info |
142 PREINIT: | 142 PREINIT: |
143 const GList *l; | 143 GList *l; |
144 PPCODE: | 144 PPCODE: |
145 l = purple_notify_user_info_get_entries(user_info); | 145 l = purple_notify_user_info_get_entries(user_info); |
146 for (; l != NULL; l = l->next) { | 146 for (; l != NULL; l = l->next) { |
147 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::NotifyUserInfoEntry"))); | 147 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::NotifyUserInfoEntry"))); |
148 } | 148 } |