- Timestamp:
- 2010-04-11T14:37:06Z (15 years ago)
- Branches:
- master
- Children:
- a87e6ba
- Parents:
- 1f92a58
- Location:
- protocols
- Files:
-
- 1 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/Makefile
r1f92a58 r17a6ee9 10 10 11 11 # [SH] Program variables 12 objects = account.o bee.o bee_ user.o nogaim.o12 objects = account.o bee.o bee_ft.o bee_user.o nogaim.o 13 13 14 14 -
protocols/bee.h
r1f92a58 r17a6ee9 71 71 gboolean (*user_status)( bee_t *bee, struct bee_user *bu, struct bee_user *old ); 72 72 gboolean (*user_msg)( bee_t *bee, bee_user_t *bu, const char *msg, time_t sent_at ); 73 74 struct file_transfer* (*ft_in_start)( bee_t *bee, bee_user_t *bu, const char *file_name, size_t file_size ); 75 gboolean (*ft_out_start)( struct im_connection *ic, struct file_transfer *ft ); 76 void (*ft_close)( struct im_connection *ic, struct file_transfer *ft ); 77 void (*ft_finished)( struct im_connection *ic, struct file_transfer *ft ); 73 78 } bee_ui_funcs_t; 74 79 -
protocols/ft.h
r1f92a58 r17a6ee9 168 168 * the canceled() and free() callbacks given in file will be called by this function. 169 169 */ 170 void imcb_file_canceled( file_transfer_t *file, char *reason );170 void imcb_file_canceled( struct im_connection *ic, file_transfer_t *file, char *reason ); 171 171 172 gboolean imcb_file_recv_start( file_transfer_t *ft );172 gboolean imcb_file_recv_start( struct im_connection *ic, file_transfer_t *ft ); 173 173 174 void imcb_file_finished( file_transfer_t *file );174 void imcb_file_finished( struct im_connection *ic, file_transfer_t *file ); 175 175 #endif -
protocols/jabber/iq.c
r1f92a58 r17a6ee9 392 392 if( ( strcmp( sub, "both" ) == 0 || strcmp( sub, "to" ) == 0 ) ) 393 393 { 394 if( initial || imcb_find_buddy(ic, jid ) == NULL )394 if( initial || bee_user_by_handle( ic->bee, ic, jid ) == NULL ) 395 395 imcb_add_buddy( ic, jid, ( group && group->text_len ) ? 396 396 group->text : NULL ); … … 590 590 strcmp( s, "result" ) == 0 ) 591 591 { 592 if( imcb_find_buddy(ic, jid ) == NULL )592 if( bee_user_by_handle( ic->bee, ic, jid ) == NULL ) 593 593 imcb_add_buddy( ic, jid, NULL ); 594 594 } -
protocols/jabber/jabber.c
r1f92a58 r17a6ee9 267 267 268 268 while( jd->filetransfers ) 269 imcb_file_canceled( ( ( struct jabber_transfer *) jd->filetransfers->data )->ft, "Logging out" );269 imcb_file_canceled( ic, ( ( struct jabber_transfer *) jd->filetransfers->data )->ft, "Logging out" ); 270 270 271 271 while( jd->streamhosts ) -
protocols/jabber/jabber_util.c
r1f92a58 r17a6ee9 279 279 presence_send_request( bla->ic, bla->handle, "subscribed" ); 280 280 281 if( imcb_find_buddy( bla->ic, bla->handle ) == NULL ) 282 imcb_ask_add( bla->ic, bla->handle, NULL ); 281 imcb_ask_add( bla->ic, bla->handle, NULL ); 283 282 284 283 g_free( bla->handle ); … … 462 461 463 462 if( bud == NULL && ( flags & GET_BUDDY_CREAT ) && 464 ( bare_exists || imcb_find_buddy(ic, jid ) ) )463 ( bare_exists || bee_user_by_handle( ic->bee, ic, jid ) ) ) 465 464 { 466 465 *s = '/'; … … 483 482 if( bud == NULL ) 484 483 /* No match. Create it now? */ 485 return ( ( flags & GET_BUDDY_CREAT ) && imcb_find_buddy( ic, jid_ ) ) ? 484 return ( ( flags & GET_BUDDY_CREAT ) && 485 bee_user_by_handle( ic->bee, ic, jid_ ) ) ? 486 486 jabber_buddy_add( ic, jid_ ) : NULL; 487 487 else if( bud->resource && ( flags & GET_BUDDY_EXACT ) ) -
protocols/jabber/s5bytestream.c
r1f92a58 r17a6ee9 566 566 xt_free_node( reply ); 567 567 568 imcb_file_canceled( tf-> ft, "couldn't connect to any streamhosts" );568 imcb_file_canceled( tf->ic, tf->ft, "couldn't connect to any streamhosts" ); 569 569 570 570 bt->tf->watch_in = 0; … … 603 603 604 604 if( !jabber_write_packet( tf->ic, reply ) ) 605 imcb_file_canceled( tf-> ft, "Error transmitting bytestream response" );605 imcb_file_canceled( tf->ic, tf->ft, "Error transmitting bytestream response" ); 606 606 xt_free_node( reply ); 607 607 } … … 643 643 644 644 if( tf->bytesread >= tf->ft->file_size ) 645 imcb_file_finished( tf-> ft );645 imcb_file_finished( tf->ic, tf->ft ); 646 646 647 647 tf->ft->write( tf->ft, tf->ft->buffer, ret ); … … 659 659 if( tf->watch_in ) 660 660 { 661 imcb_file_canceled( ft, "BUG in jabber file transfer: write_request called when already watching for input" );661 imcb_file_canceled( tf->ic, ft, "BUG in jabber file transfer: write_request called when already watching for input" ); 662 662 return FALSE; 663 663 } … … 705 705 706 706 if( tf->byteswritten >= ft->file_size ) 707 imcb_file_finished( ft );707 imcb_file_finished( tf->ic, ft ); 708 708 else 709 709 bt->tf->watch_out = b_input_add( tf->fd, GAIM_INPUT_WRITE, jabber_bs_send_can_write, bt ); … … 1005 1005 1006 1006 if( !jabber_write_packet( tf->ic, iq ) ) 1007 imcb_file_canceled( tf-> ft, "Error transmitting bytestream request" );1007 imcb_file_canceled( tf->ic, tf->ft, "Error transmitting bytestream request" ); 1008 1008 return TRUE; 1009 1009 } … … 1020 1020 1021 1021 if( jd->streamhosts==NULL ) /* we're done here unless we have a proxy to try */ 1022 imcb_file_canceled( tf-> ft, error );1022 imcb_file_canceled( tf->ic, tf->ft, error ); 1023 1023 1024 1024 /* MUST always return FALSE! */ -
protocols/jabber/si.c
r1f92a58 r17a6ee9 91 91 92 92 if( !foundft ) 93 imcb_file_canceled( tf-> ft, "Buddy's client doesn't feature file transfers" );93 imcb_file_canceled( tf->ic, tf->ft, "Buddy's client doesn't feature file transfers" ); 94 94 else if( !foundbt ) 95 imcb_file_canceled( tf-> ft, "Buddy's client doesn't feature byte streams (required)" );95 imcb_file_canceled( tf->ic, tf->ft, "Buddy's client doesn't feature byte streams (required)" ); 96 96 else if( !foundsi ) 97 imcb_file_canceled( tf-> ft, "Buddy's client doesn't feature stream initiation (required)" );97 imcb_file_canceled( tf->ic, tf->ft, "Buddy's client doesn't feature stream initiation (required)" ); 98 98 99 99 return foundft && foundbt && foundsi; … … 109 109 110 110 /* and start the receive logic */ 111 imcb_file_recv_start( tf-> ft );111 imcb_file_recv_start( tf->ic, tf->ft ); 112 112 113 113 } … … 156 156 if( bud == NULL ) 157 157 { 158 imcb_file_canceled( ft, "Couldn't find buddy (BUG?)" );158 imcb_file_canceled( ic, ft, "Couldn't find buddy (BUG?)" ); 159 159 return; 160 160 } -
protocols/msn/Makefile
r1f92a58 r17a6ee9 10 10 11 11 # [SH] Program variables 12 objects = invitation.omsn.o msn_util.o ns.o passport.o sb.o tables.o12 objects = msn.o msn_util.o ns.o passport.o sb.o tables.o 13 13 14 14 CFLAGS += -Wall -
protocols/msn/msn.c
r1f92a58 r17a6ee9 81 81 if( md ) 82 82 { 83 /** Disabling MSN ft support for now. 83 84 while( md->filetransfers ) { 84 85 imcb_file_canceled( md->filetransfers->data, "Closing connection" ); 85 86 } 87 */ 86 88 87 89 if( md->fd >= 0 ) … … 344 346 ret->send_typing = msn_send_typing; 345 347 ret->handle_cmp = g_strcasecmp; 346 ret->transfer_request = msn_ftp_transfer_request;348 //ret->transfer_request = msn_ftp_transfer_request; 347 349 348 350 register_protocol(ret); -
protocols/msn/msn_util.c
r1f92a58 r17a6ee9 96 96 msn_buddy_list_add( bla->ic, "AL", bla->handle, bla->realname ); 97 97 98 if( imcb_find_buddy( bla->ic, bla->handle ) == NULL ) 99 imcb_ask_add( bla->ic, bla->handle, NULL ); 98 imcb_ask_add( bla->ic, bla->handle, NULL ); 100 99 101 100 g_free( bla->handle ); -
protocols/msn/sb.c
r1f92a58 r17a6ee9 691 691 } 692 692 } 693 #if 0 694 // Disable MSN ft support for now. 693 695 else if( g_strncasecmp( ct, "text/x-msmsgsinvite", 19 ) == 0 ) 694 696 { … … 723 725 g_free( command ); 724 726 } 727 #endif 725 728 else if( g_strncasecmp( ct, "application/x-msnmsgrp2p", 24 ) == 0 ) 726 729 { -
protocols/nogaim.c
r1f92a58 r17a6ee9 391 391 if( !bu || !fullname ) return; 392 392 393 if( strcmp( bu->fullname, fullname ) != 0 )393 if( !bu->fullname || strcmp( bu->fullname, fullname ) != 0 ) 394 394 { 395 395 g_free( bu->fullname );
Note: See TracChangeset
for help on using the changeset viewer.