Mercurial > pidgin.yaz
comparison pidgin/plugins/notify.c @ 18058:4ca97b26a8fb
Mark the return type const for the following functions. I noticed this
while fixing some DBus stuff which I'll commit shortly.
* purple_accounts_get_all
* purple_connections_get_all
* purple_connections_get_connecting
* purple_conv_chat_get_ignored
* purple_conv_chat_get_users
* purple_get_chats
* purple_get_conversations
* purple_get_ims
* purple_notify_user_info_get_entries
References #1344
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 07 Jun 2007 04:22:42 +0000 |
parents | 3d41d0d7fb9b |
children | 926ccb104da0 |
comparison
equal
deleted
inserted
replaced
18057:23b03396e71e | 18058:4ca97b26a8fb |
---|---|
622 } | 622 } |
623 | 623 |
624 static void | 624 static void |
625 apply_method() | 625 apply_method() |
626 { | 626 { |
627 GList *convs; | 627 const GList *convs; |
628 PidginWindow *purplewin = NULL; | 628 PidginWindow *purplewin = NULL; |
629 | 629 |
630 for (convs = purple_get_conversations(); convs != NULL; | 630 for (convs = purple_get_conversations(); convs != NULL; |
631 convs = convs->next) { | 631 convs = convs->next) { |
632 PurpleConversation *conv = (PurpleConversation *)convs->data; | 632 PurpleConversation *conv = (PurpleConversation *)convs->data; |
642 } | 642 } |
643 | 643 |
644 static void | 644 static void |
645 apply_notify() | 645 apply_notify() |
646 { | 646 { |
647 GList *convs = purple_get_conversations(); | 647 const GList *convs = purple_get_conversations(); |
648 | 648 |
649 while (convs) { | 649 while (convs) { |
650 PurpleConversation *conv = (PurpleConversation *)convs->data; | 650 PurpleConversation *conv = (PurpleConversation *)convs->data; |
651 | 651 |
652 /* detach signals */ | 652 /* detach signals */ |
816 } | 816 } |
817 | 817 |
818 static gboolean | 818 static gboolean |
819 plugin_load(PurplePlugin *plugin) | 819 plugin_load(PurplePlugin *plugin) |
820 { | 820 { |
821 GList *convs = purple_get_conversations(); | 821 const GList *convs = purple_get_conversations(); |
822 void *conv_handle = purple_conversations_get_handle(); | 822 void *conv_handle = purple_conversations_get_handle(); |
823 void *gtk_conv_handle = pidgin_conversations_get_handle(); | 823 void *gtk_conv_handle = pidgin_conversations_get_handle(); |
824 | 824 |
825 my_plugin = plugin; | 825 my_plugin = plugin; |
826 | 826 |
858 } | 858 } |
859 | 859 |
860 static gboolean | 860 static gboolean |
861 plugin_unload(PurplePlugin *plugin) | 861 plugin_unload(PurplePlugin *plugin) |
862 { | 862 { |
863 GList *convs = purple_get_conversations(); | 863 const GList *convs = purple_get_conversations(); |
864 | 864 |
865 while (convs) { | 865 while (convs) { |
866 PurpleConversation *conv = (PurpleConversation *)convs->data; | 866 PurpleConversation *conv = (PurpleConversation *)convs->data; |
867 | 867 |
868 /* kill signals */ | 868 /* kill signals */ |