Changeset bf02a67 for protocols/oscar


Ignore:
Timestamp:
2005-12-15T11:55:27Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
15832cc, bd69a21
Parents:
11e090b (diff), 547f937 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged Jelmer's pluginable tree (mainly useful for the Win32 port).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r11e090b rbf02a67  
    357357                odata->icq = TRUE;
    358358                /* this is odd but it's necessary for a proper do_import and do_export */
    359                 gc->protocol = PROTO_ICQ;
    360359                gc->password[8] = 0;
    361360        } else {
    362                 gc->protocol = PROTO_TOC;
    363361                gc->flags |= OPT_CONN_HTML;
    364362        }
     
    26332631}
    26342632
    2635 static struct prpl *my_protocol = NULL;
    2636 
    2637 void oscar_init(struct prpl *ret) {
    2638         ret->protocol = PROTO_OSCAR;
     2633void oscar_init()
     2634{
     2635        struct prpl *ret = g_new0(struct prpl, 1);
     2636        ret->name = "oscar";
    26392637        ret->away_states = oscar_away_states;
    26402638        ret->login = oscar_login;
     
    26582656        ret->cmp_buddynames = aim_sncmp;
    26592657        ret->get_status_string = oscar_get_status_string;
    2660 
    26612658        ret->send_typing = oscar_send_typing;
    26622659
    2663         my_protocol = ret;
    2664 }
     2660        register_protocol(ret);
     2661}
Note: See TracChangeset for help on using the changeset viewer.