/* * gtkcutlass-filetransfer.c - this handles the file transfering crap. * * (c) 2004 - John Schweitzer */ #include void SendFile ( uint8_t *conn ) { extern gui_status * currentstatus; extern user_info *userstuff; const contact_info *ci = NULL; if ( conn == NULL ) { tellem ( "Error Sending file" ); return ; } if ( ( userstuff == NULL ) || ( currentstatus == NULL ) ) { g_warning ( "cannot see myself. ack.\n" ); return ; } ci = ( const contact_info * ) get_conversation_from_conn ( conn ); if ( ci == NULL ) { g_warning ( "SendFile: non-existant connection\n" ); return ; } g_print ( "SendFile: \n" ); } void RecvFile ( uint8_t *conn ) { extern gui_status * currentstatus; extern user_info *userstuff; const contact_info *ci = NULL; if ( conn == NULL ) { tellem ( "Error Recieving file" ); return ; } if ( ( userstuff == NULL ) || ( currentstatus == NULL ) ) { g_warning ( "cannot see myself. ack.\n" ); return ; } ci = ( const contact_info * ) get_conversation_from_conn ( conn ); if ( ci == NULL ) { g_warning ( "SendFile: non-existant connection\n" ); return ; } g_print ( "SendFile: \n" ); }