[comp.sys.amiga] Calling original function after SetFunction

sbower@lehi3b15.UUCP (Steve Bower) (03/05/88)

I'm currently working on my senior project; basically, I need to take
over the OpenDevice() call and substitute my own device for the
serial.device.  However, I still want to be able to use the original
OpenDevice() call to do the actual opening (I merely need to
substitute one device for another).  Is it legal to use the address I
get back from SetFunction() to call the original OpenDevice()
function?  Any info would be greatly appreciated!!

	-Steve.

cmcmanis%pepper@Sun.COM (Chuck McManis) (03/07/88)

In article <346@lehi3b15.UUCP> sbower@lehi3b15.UUCP (Steve Bower) writes:
-> I'm currently working on my senior project; basically, I need to take
-> over the OpenDevice() call and substitute my own device for the
-> serial.device.

Why not put your new device in DEVS: called serial.device and rename the
existing one to amiga-serial.device. Then an open device of serial.device
will get yours and an opendevice() of amiga-serial.device will get the amiga's.

->OpenDevice() call to do the actual opening (I merely need to
->substitute one device for another).  Is it legal to use the address I
->get back from SetFunction() to call the original OpenDevice()
->function?  

I believe it is, although I personally haven't tried it.



--Chuck McManis
uucp: {anywhere}!sun!cmcmanis   BIX: cmcmanis  ARPAnet: cmcmanis@sun.com
These opinions are my own and no one elses, but you knew that didn't you.