home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!decwrl!waikato.ac.nz!comp.vuw.ac.nz!actrix!templar!jbickers
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: How to store client data in XPR structure ?
- Message-ID: <jbickers.0fjr@templar.actrix.gen.nz>
- From: jbickers@templar.actrix.gen.nz (John Bickers)
- Date: 12 Sep 92 18:36:43 PST
- References: <sysop.0ddm@alphanet.alphanet.ch>
- Organization: TAP, NZAmigaUG
- Lines: 22
-
- Quoted from <sysop.0ddm@alphanet.alphanet.ch> by sysop@alphanet.alphanet.ch (Marc SCHAEFER):
-
- > I want to call XPR functions from an reentrant environment, ie no
- > global variable. However I need to pass some information in the XPR
- > structure so my callback functions are able to retrieve the information.
-
- Do your callback functions even get to see the XPR_IO structure?
- I was under the impression they didn't, which I think is a flaw in
- the design. I used a global variable. One drawback of this also is
- that it makes it hard to use XPR with several serial devices at
- once.
-
- Anyway, if your callback functions can see the XPR_IO pointer, you
- can put your data at a -ve offset from the pointer.
-
- BTW, if your callback functions can see the XPR_IO pointer, can
- you post how they manage it?
-
- > | Marc SCHAEFER _ //| sysadm@alphanet.ch -or- schaefer@di.epfl.ch |
- --
- *** John Bickers, TAP, NZAmigaUG. jbickers@templar.actrix.gen.nz ***
- *** "Radioactivity - It's in the air, for you and me" - Kraftwerk ***
-