2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Hook used by endian funcs to read from a dos file.
9 /****************************************************************************************/
11 #include <proto/dos.h>
12 #include <aros/debug.h>
13 #include <aros/asmcall.h>
14 #include <aros/bigendianio.h>
18 /****************************************************************************************/
20 AROS_UFH3(LONG
, dosstreamhook
,
21 AROS_UFHA(struct Hook
*, hook
, A0
),
22 AROS_UFHA(BPTR
, fh
, A2
),
23 AROS_UFHA(ULONG
*, msg
, A1
)
28 APTR DOSBase
= hook
->h_Data
;
37 kprintf ("dsh: Read: %02X\n", rc
);
43 rc
= FPutC (fh
, ((struct BEIOM_Write
*)msg
)->Data
);
49 rc
= Seek (fh
, ((struct BEIOM_Ignore
*)msg
)->Count
, OFFSET_CURRENT
);
51 kprintf ("dsh: Skip %d\n", ((struct BEIOM_Ignore
*)msg
)->Count
);
61 /****************************************************************************************/