LAPAddATQ
LAPAddATQ Add an entry to the queue
#include <AppleTalk.h> AppleTalk Manager
ATQEntryPtr ATQEntry; address of an ATQEntry data structure
returns Error Code; 0=no error
LAPAddATQ adds an entry to the AppleTalk Transition Queue.
theATQEntry is a pointer to an ATQEntry data structure. The CallAddr field of the
data structure holds a pointer to the routine that AppleTalk calls for
any AppleTalk transition event.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error

Notes: From assembly language, you add and remove AppleTalk Transition Queue
entries by placing a routine selector in the D0 register, placing a pointer to
your AppleTalk Transition Queue entry in the A0 register, and executing a
JSR instruction to an offset past the start of LAP Manager. The start of
LAP Manager is contained in the global variable LAPMgrPtr (0x0B18).
The offset to LAP Manager routines is given by the constant LAPMgrCall
(2).
Here is assembly-language code that adds or removes AppleTalk Transition
Queue entries:
LAPMgrPtr EQU 0x0B18 ;LAP Manager entry point
LAPMgrCall EQU 2 ;offset to LAP Manager
routines
MOVEQ #RSel,D0 ;place routine selector
; in D0 (23 to add an entry,
;24 to remove one)
MOVE.L LAPMgrPtr,An ;put pointer to LAP Mgr in An
MOVE.L ATQEntry,A0 ;put ATQ entry in A0
JSR LAPMgrCall(An) ;jump to start of LAP Mgr
; routines