Changeset 2af671a


Ignore:
Timestamp:
2008-04-02T23:11:21Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
b7d3dff7
Parents:
76eb071
Message:

new skype_set_balance() function

  • it triggers a query from skype for the current balance, but the read callback does not handle it yet
File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    r76eb071 r2af671a  
    10301030}
    10311031
     1032static char *skype_set_balance( set_t *set, char *value )
     1033{
     1034        account_t *acc = set->data;
     1035        struct im_connection *ic = acc->ic;
     1036        char *buf;
     1037
     1038        buf = g_strdup_printf("GET PROFILE PSTN_BALANCE");
     1039        skype_write( ic, buf, strlen( buf ) );
     1040        g_free(buf);
     1041        return(value);
     1042}
     1043
    10321044static char *skype_set_call( set_t *set, char *value )
    10331045{
     
    12351247        s = set_add( &acc->set, "call", NULL, skype_set_call, acc );
    12361248        s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY;
     1249
     1250        s = set_add( &acc->set, "balance", NULL, skype_set_balance, acc );
     1251        s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY;
    12371252}
    12381253
Note: See TracChangeset for help on using the changeset viewer.