Start of port of AsyncIO library.
[AROS-Contrib.git] / workbench / libs / asyncio / src / SendPacket.c
blobcde9275c167c629fb70658978fc53bdf66fc51ba
1 #include "async.h"
4 /* send out an async packet to the file system. */
5 VOID
6 AS_SendPacket( struct AsyncFile *file, APTR arg2 )
8 #ifdef ASIO_NOEXTERNALS
9 struct ExecBase *SysBase;
11 SysBase = file->af_SysBase;
12 #endif
14 file->af_Packet.sp_Pkt.dp_Port = &file->af_PacketPort;
15 file->af_Packet.sp_Pkt.dp_Arg2 = ( LONG ) arg2;
16 PutMsg( file->af_Handler, &file->af_Packet.sp_Msg );
17 file->af_PacketPending = TRUE;