(a)
Err SysLibFind(CharPtr libName, Word *refNum);
(b)
Err IrOpen(Word refnum, DWord options);
Err IrClose(Word refnum);
(c)
IrStatus IrBind (UInt refNum, IrConnect* con, IrCallBack CallBack);
IrStatus IrUnbind (UInt refNum, IrConnect* con);
(d)
typedef void (*IrCallBack)(IrConnect* con, IrCallbackParms* irData);
(e)
IrStatus IrSetDeviceInfo(UInt refnum, BytePtr info, Byte len);
Example 1: (a) The SysLibFind() prototype; (b) IrOpen() and IrClose() prototypes; (c) prototypes for IrBind() and IrUnbind(); (d) IrCallBack()'s definition; (e) IrSetDevice() prototype.
Back to Article
Copyright © 1999, Dr. Dobb's Journal