comparison src/protocols/yahoo/yahoo_filexfer.c @ 11801:81806e9241be

[gaim-migrate @ 14092] Cleanups, mostly // -> /* */ and moved g_print's to gaim_debug_info, and a few c99ism fixes.. committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Mon, 24 Oct 2005 21:48:21 +0000
parents f4e58e94ced3
children a1aa681f1448
comparison
equal deleted inserted replaced
11800:32bac0647037 11801:81806e9241be
355 char *message = NULL; 355 char *message = NULL;
356 char *command = NULL; 356 char *command = NULL;
357 char *imv = NULL; 357 char *imv = NULL;
358 char *unknown = NULL; 358 char *unknown = NULL;
359 359
360 // Get all the necessary values from this new packet 360 /* Get all the necessary values from this new packet */
361 while( l ) 361 while( l )
362 { 362 {
363 struct yahoo_pair *pair = l->data; 363 struct yahoo_pair *pair = l->data;
364 364
365 if( pair->key == 5 ) // Get who the packet is for 365 if( pair->key == 5 ) /* Get who the packet is for */
366 me = pair->value; 366 me = pair->value;
367 367
368 if( pair->key == 4 ) // Get who the packet is from 368 if( pair->key == 4 ) /* Get who the packet is from */
369 from = pair->value; 369 from = pair->value;
370 370
371 if( pair->key == 49 ) // Get the type of service 371 if( pair->key == 49 ) /* Get the type of service */
372 service = pair->value; 372 service = pair->value;
373 373
374 if( pair->key == 14 ) // Get the 'message' of the packet 374 if( pair->key == 14 ) /* Get the 'message' of the packet */
375 message = pair->value; 375 message = pair->value;
376 376
377 if( pair->key == 13 ) // Get the command associated with this packet 377 if( pair->key == 13 ) /* Get the command associated with this packet */
378 command = pair->value; 378 command = pair->value;
379 379
380 if( pair->key == 63 ) // IMVironment name and version 380 if( pair->key == 63 ) /* IMVironment name and version */
381 imv = pair->value; 381 imv = pair->value;
382 382
383 if( pair->key == 64 ) // Not sure, but it does vary with initialization of Doodle 383 if( pair->key == 64 ) /* Not sure, but it does vary with initialization of Doodle */
384 unknown = pair->value; // So, I'll keep it (for a little while atleast) 384 unknown = pair->value; /* So, I'll keep it (for a little while atleast) */
385 385
386 l = l->next; 386 l = l->next;
387 } 387 }
388 388
389 // If this packet is an IMVIRONMENT, handle it accordingly 389 /* If this packet is an IMVIRONMENT, handle it accordingly */
390 if( !strcmp( service, "IMVIRONMENT" ) ) 390 if( !strcmp( service, "IMVIRONMENT" ) )
391 { 391 {
392 // Check for a Doodle packet and handle it accordingly 392 /* Check for a Doodle packet and handle it accordingly */
393 if( !strcmp( imv, "doodle;11" ) ) 393 if( !strcmp( imv, "doodle;11" ) )
394 yahoo_doodle_process( gc, me, from, command, message ); 394 yahoo_doodle_process( gc, me, from, command, message );
395 395
396 // If an IMVIRONMENT packet comes without a specific imviroment name 396 /* If an IMVIRONMENT packet comes without a specific imviroment name */
397 if( !strcmp( imv, ";0" ) ) 397 if( !strcmp( imv, ";0" ) )
398 { 398 {
399 // It is unfortunately time to close all IMVironments with remote client 399 /* It is unfortunately time to close all IMVironments with remote
400 * client
401 */
400 yahoo_doodle_command_got_shutdown( gc, from ); 402 yahoo_doodle_command_got_shutdown( gc, from );
401 } 403 }
402 } 404 }
403 } 405 }
404 406