src/account.c

changeset 9988
f58c80ea22ee
parent 9971
8291bafb0025
child 9989
e96493a81b0e
equal deleted inserted replaced
9987:2396bd099335 9988:f58c80ea22ee
792 p = gaim_find_prpl(account->protocol_id); 792 p = gaim_find_prpl(account->protocol_id);
793 793
794 return ((p && p->info->name) ? _(p->info->name) : _("Unknown")); 794 return ((p && p->info->name) ? _(p->info->name) : _("Unknown"));
795 } 795 }
796 796
797 const char *
798 gaim_account_get_protocol_name(const GaimAccount *account)
799 {
800 g_return_val_if_fail(account != NULL, NULL);
801
802 GaimPlugin *p = gaim_find_prpl(gaim_account_get_protocol_id(account));
803
804 return ((p && p->info->name) ? _(p->info->name) : _("Unknown"));
805 }
806
797 GaimConnection * 807 GaimConnection *
798 gaim_account_get_connection(const GaimAccount *account) 808 gaim_account_get_connection(const GaimAccount *account)
799 { 809 {
800 g_return_val_if_fail(account != NULL, NULL); 810 g_return_val_if_fail(account != NULL, NULL);
801 811

mercurial