Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/libyahoo2.c

    rd7edadf r241f9f6  
    18091809        struct yahoo_input_data *yid = had->yid;
    18101810        struct yahoo_data *yd = yid->yd;
     1811        struct http_request *req;
    18111812        char *login, *passwd, *chal;
    18121813        char *url;
     
    18221823                               (int) time(NULL), login, passwd, chal);
    18231824       
    1824         http_dorequest_url(url, yahoo_https_auth_token_finish, had);
     1825        req = http_dorequest_url(url, yahoo_https_auth_token_finish, had);
    18251826       
    18261827        g_free(url);
     
    18691870static void yahoo_https_auth_init(struct yahoo_https_auth_data *had)
    18701871{
     1872        struct http_request *req;
    18711873        char *url;
    18721874       
     
    18741876                              (int) time(NULL), had->token);
    18751877       
    1876         http_dorequest_url(url, yahoo_https_auth_finish, had);
     1878        req = http_dorequest_url(url, yahoo_https_auth_finish, had);
    18771879       
    18781880        g_free(url);
     
    19881990{
    19891991        struct yahoo_data *yd = yid->yd;
     1992        char *login_id;
     1993        char *handle;
    19901994        char *url = NULL;
    19911995        int login_status = -1;
     
    19962000                struct yahoo_pair *pair = l->data;
    19972001                if (pair->key == 0)
    1998                         ; /* login_id */
     2002                        login_id = pair->value;
    19992003                else if (pair->key == 1)
    2000                         ; /* handle */
     2004                        handle = pair->value;
    20012005                else if (pair->key == 20)
    20022006                        url = pair->value;
     
    20852089        char *msg = NULL;
    20862090        char *name = NULL;
     2091        long tm = 0L;
    20872092        int state = YAHOO_STATUS_AVAILABLE;
     2093        int online = 0;
    20882094        int away = 0;
    20892095        int idle = 0;
     
    21052111                        state = strtol(pair->value, NULL, 10);
    21062112                else if (pair->key == 15)
    2107                         ; /* tm */
     2113                        tm = strtol(pair->value, NULL, 10);
    21082114                else if (pair->key == 13)
    2109                         ; /* online */
     2115                        online = strtol(pair->value, NULL, 10);
    21102116                else if (pair->key == 47)
    21112117                        away = strtol(pair->value, NULL, 10);
     
    21342140        char *where = NULL;
    21352141        int status = 0;
     2142        char *me = NULL;
    21362143
    21372144        struct yahoo_buddy *bud = NULL;
     
    21412148                struct yahoo_pair *pair = l->data;
    21422149                if (pair->key == 1)
    2143                         ; /* Me... don't care */
     2150                        me = pair->value;
    21442151                if (pair->key == 7)
    21452152                        who = pair->value;
     
    21972204        char *who = NULL;
    21982205        char *where = NULL;
     2206        int unk_66 = 0;
     2207        char *me = NULL;
    21992208        struct yahoo_buddy *bud;
    22002209
     
    22052214                struct yahoo_pair *pair = l->data;
    22062215                if (pair->key == 1)
    2207                         ; /* Me... don't care */
     2216                        me = pair->value;
    22082217                else if (pair->key == 7)
    22092218                        who = pair->value;
     
    22112220                        where = pair->value;
    22122221                else if (pair->key == 66)
    2213                         ; /* unk_66 */
     2222                        unk_66 = strtol(pair->value, NULL, 10);
    22142223                else
    22152224                        DEBUG_MSG(("unknown key: %d = %s", pair->key,
     
    22472256        struct yahoo_packet *pkt)
    22482257{
     2258        char *who = NULL;
     2259        int status = 0;
     2260        char *me = NULL;
     2261        int un_ignore = 0;
     2262
    22492263        YList *l;
    22502264        for (l = pkt->hash; l; l = l->next) {
    22512265                struct yahoo_pair *pair = l->data;
    22522266                if (pair->key == 0)
    2253                         ; /* who */
     2267                        who = pair->value;
    22542268                if (pair->key == 1)
    2255                         ; /* Me... don't care */
     2269                        me = pair->value;
    22562270                if (pair->key == 13)    /* 1 == ignore, 2 == unignore */
    2257                         ;
     2271                        un_ignore = strtol(pair->value, NULL, 10);
    22582272                if (pair->key == 66)
    2259                         ; /* status */
     2273                        status = strtol(pair->value, NULL, 10);
    22602274        }
    22612275
     
    22792293        char *me = NULL;
    22802294        char *room = NULL;
     2295        char *voice_room = NULL;
    22812296
    22822297        YList *l;
     
    22882303                        me = pair->value;
    22892304                if (pair->key == 13)
    2290                         ; /* voice room */
     2305                        voice_room = pair->value;
    22912306                if (pair->key == 57)
    22922307                        room = pair->value;
     
    24232438        struct yahoo_packet *pkt)
    24242439{
     2440        char *me = NULL;
    24252441        char *key = NULL;
    24262442        char *who = NULL;
     
    24312447                struct yahoo_pair *pair = l->data;
    24322448                if (pair->key == 5)
    2433                         ; /* me */
     2449                        me = pair->value;
    24342450                if (pair->key == 61)
    24352451                        key = pair->value;
     
    33533369        struct yahoo_webcam *wcm = y->wcm;
    33543370        struct yahoo_input_data *yid;
     3371        struct yahoo_server_settings *yss;
    33553372
    33563373        if (!wcm || !wcm->server || !wcm->key)
     
    33643381        yid->wcm = y->wcm;
    33653382        y->wcm = NULL;
     3383
     3384        yss = y->yd->server_settings;
    33663385
    33673386        yid->wcd = y_new0(struct yahoo_webcam_data, 1);
     
    49564975        YList *l;
    49574976        struct send_file_data *sfd;
     4977        char *who = NULL;
     4978        char *filename = NULL;
    49584979        char *id = NULL;
    49594980        char *token = NULL;
     
    49634984                switch (pair->key) {
    49644985                case 4:
    4965                         /* who */
     4986                        who = pair->value;
    49664987                        break;
    49674988                case 5:
     
    49774998                        break;
    49784999                case 27:
    4979                         /* filename */
     5000                        filename = pair->value;
    49805001                        break;
    49815002                }
     
    50025023{
    50035024        YList *l;
     5025        char *who = NULL;
     5026        char *filename = NULL;
    50045027        char *id = NULL;
    50055028        char *token = NULL;
     
    50135036                case 1:
    50145037                case 4:
    5015                         /* who */
     5038                        who = pair->value;
    50165039                        break;
    50175040                case 5:
     
    50305053                        break;
    50315054                case 27:
    5032                         /* filename */
     5055                        filename = pair->value;
    50335056                        break;
    50345057                }
Note: See TracChangeset for help on using the changeset viewer.