home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / biblioteki / c_library / asyncio / source / sendpacket.c < prev    next >
C/C++ Source or Header  |  1977-12-31  |  411b  |  18 lines

  1. #include "async.h"
  2.  
  3. /* send out an async packet to the file system. */
  4. VOID
  5. AS_SendPacket( struct AsyncFile *file, APTR arg2 )
  6. {
  7. #ifdef ASIO_NOEXTERNALS
  8.     struct ExecBase    *SysBase;
  9.  
  10.     SysBase = file->af_SysBase;
  11. #endif
  12.  
  13.     file->af_Packet.sp_Pkt.dp_Port = &file->af_PacketPort;
  14.     file->af_Packet.sp_Pkt.dp_Arg2 = ( LONG ) arg2;
  15.     PutMsg( file->af_Handler, &file->af_Packet.sp_Msg );
  16.     file->af_PacketPending = TRUE;
  17. }
  18.