Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/yahoochat.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 | 32c366eeeb99 |
children | 926ccb104da0 |
comparison
equal
deleted
inserted
replaced
18057:23b03396e71e | 18058:4ca97b26a8fb |
---|---|
631 /* | 631 /* |
632 * Functions dealing with conferences | 632 * Functions dealing with conferences |
633 * I think conference names are always ascii. | 633 * I think conference names are always ascii. |
634 */ | 634 */ |
635 | 635 |
636 void yahoo_conf_leave(struct yahoo_data *yd, const char *room, const char *dn, GList *who) | 636 void yahoo_conf_leave(struct yahoo_data *yd, const char *room, const char *dn, const GList *who) |
637 { | 637 { |
638 struct yahoo_packet *pkt; | 638 struct yahoo_packet *pkt; |
639 GList *w; | 639 const GList *w; |
640 | 640 |
641 purple_debug_misc("yahoo", "leaving conference %s\n", room); | 641 purple_debug_misc("yahoo", "leaving conference %s\n", room); |
642 | 642 |
643 pkt = yahoo_packet_new(YAHOO_SERVICE_CONFLOGOFF, YAHOO_STATUS_AVAILABLE, 0); | 643 pkt = yahoo_packet_new(YAHOO_SERVICE_CONFLOGOFF, YAHOO_STATUS_AVAILABLE, 0); |
644 | 644 |
651 yahoo_packet_hash_str(pkt, 57, room); | 651 yahoo_packet_hash_str(pkt, 57, room); |
652 yahoo_packet_send_and_free(pkt, yd); | 652 yahoo_packet_send_and_free(pkt, yd); |
653 } | 653 } |
654 | 654 |
655 static int yahoo_conf_send(PurpleConnection *gc, const char *dn, const char *room, | 655 static int yahoo_conf_send(PurpleConnection *gc, const char *dn, const char *room, |
656 GList *members, const char *what) | 656 const GList *members, const char *what) |
657 { | 657 { |
658 struct yahoo_data *yd = gc->proto_data; | 658 struct yahoo_data *yd = gc->proto_data; |
659 struct yahoo_packet *pkt; | 659 struct yahoo_packet *pkt; |
660 GList *who; | 660 const GList *who; |
661 char *msg, *msg2; | 661 char *msg, *msg2; |
662 int utf8 = 1; | 662 int utf8 = 1; |
663 | 663 |
664 msg = yahoo_html_to_codes(what); | 664 msg = yahoo_html_to_codes(what); |
665 msg2 = yahoo_string_encode(gc, msg, &utf8); | 665 msg2 = yahoo_string_encode(gc, msg, &utf8); |
712 static void yahoo_conf_invite(PurpleConnection *gc, PurpleConversation *c, | 712 static void yahoo_conf_invite(PurpleConnection *gc, PurpleConversation *c, |
713 const char *dn, const char *buddy, const char *room, const char *msg) | 713 const char *dn, const char *buddy, const char *room, const char *msg) |
714 { | 714 { |
715 struct yahoo_data *yd = gc->proto_data; | 715 struct yahoo_data *yd = gc->proto_data; |
716 struct yahoo_packet *pkt; | 716 struct yahoo_packet *pkt; |
717 GList *members; | 717 const GList *members; |
718 char *msg2 = NULL; | 718 char *msg2 = NULL; |
719 | 719 |
720 if (msg) | 720 if (msg) |
721 msg2 = yahoo_string_encode(gc, msg, NULL); | 721 msg2 = yahoo_string_encode(gc, msg, NULL); |
722 | 722 |