Mercurial > pidgin
comparison src/protocols/rendezvous/rendezvous.c @ 8842:ad3633f92f91
[gaim-migrate @ 9609]
Just clean up one or four things.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 29 Apr 2004 02:42:31 +0000 |
parents | 01c3db200c8f |
children | 294ae6548d4e |
comparison
equal
deleted
inserted
replaced
8841:ea2e2119b135 | 8842:ad3633f92f91 |
---|---|
597 gaim_debug_error("rendezvous", "Set away, state=%s, text=%s\n", state, text); | 597 gaim_debug_error("rendezvous", "Set away, state=%s, text=%s\n", state, text); |
598 } | 598 } |
599 | 599 |
600 static GaimPlugin *my_protocol = NULL; | 600 static GaimPlugin *my_protocol = NULL; |
601 | 601 |
602 static GaimPluginProtocolInfo prpl_info = | 602 static GaimPluginProtocolInfo prpl_info; |
603 { | |
604 GAIM_PRPL_API_VERSION, | |
605 OPT_PROTO_NO_PASSWORD | OPT_PROTO_BUDDY_ICON, | |
606 NULL, | |
607 NULL, | |
608 rendezvous_prpl_list_icon, | |
609 rendezvous_prpl_list_emblems, | |
610 rendezvous_prpl_status_text, | |
611 rendezvous_prpl_tooltip_text, | |
612 NULL, | |
613 NULL, | |
614 NULL, | |
615 NULL, | |
616 rendezvous_prpl_login, | |
617 rendezvous_prpl_close, | |
618 rendezvous_prpl_send_im, | |
619 NULL, | |
620 NULL, | |
621 NULL, | |
622 rendezvous_prpl_set_away, | |
623 NULL, | |
624 NULL, | |
625 NULL, | |
626 NULL, | |
627 NULL, | |
628 NULL, | |
629 NULL, | |
630 NULL, | |
631 NULL, | |
632 NULL, | |
633 NULL, | |
634 NULL, | |
635 NULL, | |
636 NULL, | |
637 NULL, | |
638 NULL, | |
639 NULL, | |
640 NULL, | |
641 NULL, | |
642 NULL, | |
643 NULL, | |
644 NULL, | |
645 NULL, | |
646 NULL, | |
647 NULL, | |
648 NULL, | |
649 NULL, | |
650 NULL, | |
651 NULL, | |
652 NULL, | |
653 NULL, | |
654 NULL | |
655 }; | |
656 | 603 |
657 static GaimPluginInfo info = | 604 static GaimPluginInfo info = |
658 { | 605 { |
659 GAIM_PLUGIN_API_VERSION, /**< api_version */ | 606 GAIM_PLUGIN_API_VERSION, /**< api_version */ |
660 GAIM_PLUGIN_PROTOCOL, /**< type */ | 607 GAIM_PLUGIN_PROTOCOL, /**< type */ |
685 { | 632 { |
686 GaimAccountUserSplit *split; | 633 GaimAccountUserSplit *split; |
687 GaimAccountOption *option; | 634 GaimAccountOption *option; |
688 char hostname[255]; | 635 char hostname[255]; |
689 | 636 |
637 prpl_info.api_version = GAIM_PRPL_API_VERSION; | |
638 prpl_info.options = OPT_PROTO_NO_PASSWORD | OPT_PROTO_BUDDY_ICON; | |
639 prpl_info.list_icon = rendezvous_prpl_list_icon; | |
640 prpl_info.list_emblems = rendezvous_prpl_list_emblems; | |
641 prpl_info.status_text = rendezvous_prpl_status_text; | |
642 prpl_info.tooltip_text = rendezvous_prpl_tooltip_text; | |
643 prpl_info.login = rendezvous_prpl_login; | |
644 prpl_info.close = rendezvous_prpl_close; | |
645 prpl_info.send_im = rendezvous_prpl_send_im; | |
646 prpl_info.set_away = rendezvous_prpl_set_away; | |
647 | |
690 if (gethostname(hostname, 255) != 0) { | 648 if (gethostname(hostname, 255) != 0) { |
691 gaim_debug_warning("rendezvous", "Error %d when getting host name. Using \"localhost.\"\n", errno); | 649 gaim_debug_warning("rendezvous", "Error %d when getting host name. Using \"localhost.\"\n", errno); |
692 strcpy(hostname, "localhost"); | 650 strcpy(hostname, "localhost"); |
693 } | 651 } |
694 | 652 |
695 /* Try to avoid making this configurable... */ | 653 /* Try to avoid making this configurable... */ |
696 split = gaim_account_user_split_new(_("Host Name"), hostname, '@'); | 654 split = gaim_account_user_split_new(_("Host name"), hostname, '@'); |
697 prpl_info.user_splits = g_list_append(prpl_info.user_splits, split); | 655 prpl_info.user_splits = g_list_append(prpl_info.user_splits, split); |
698 | 656 |
699 option = gaim_account_option_string_new(_("First Name"), "first", "Gaim"); | 657 option = gaim_account_option_string_new(_("First name"), "first", "Gaim"); |
700 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, | 658 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, |
701 option); | 659 option); |
702 | 660 |
703 option = gaim_account_option_string_new(_("Last Name"), "last", _("User")); | 661 option = gaim_account_option_string_new(_("Last name"), "last", _("User")); |
704 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, | 662 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, |
705 option); | 663 option); |
706 | 664 |
707 option = gaim_account_option_bool_new(_("Share AIM screen name"), "shareaim", FALSE); | 665 option = gaim_account_option_bool_new(_("Share AIM screen name"), "shareaim", FALSE); |
708 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, | 666 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, |