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>
16 /****************************************************************************************/
18 AROS_UFH3(LONG
, dosstreamhook
,
19 AROS_UFHA(struct Hook
*, hook
, A0
),
20 AROS_UFHA(BPTR
, fh
, A2
),
21 AROS_UFHA(ULONG
*, msg
, A1
)
33 kprintf ("dsh: Read: %02X\n", rc
);
39 rc
= FPutC (fh
, ((struct BEIOM_Write
*)msg
)->Data
);
45 rc
= Seek (fh
, ((struct BEIOM_Ignore
*)msg
)->Count
, OFFSET_CURRENT
);
47 kprintf ("dsh: Skip %d\n", ((struct BEIOM_Ignore
*)msg
)->Count
);
57 /****************************************************************************************/