> From: ianr <ianr@syma.sussex.ac.uk>
>
> As I remember, X structures like Display are supposed to be opaque.
> Digging things like the resource database out of one is a little
> rude, but when this was written (as part of UIDE-1, 2 years ago) it
> seemed to be the only thing to do.
Yes... Display etc are supposed to be totally opaque to the user and
direct access is totally illegal [1].
Under R4/R5 there are macros or appropriate procedures to get at
information the user should have. If there isn't one, then you should
assume that you shouldn't be looking at it.
These calls
exacc [@] :Display display.db -> db
exacc :Display display.db -> db
can be replaced by calls to -XtDatabase- (which isn't in current Pop
versions, but will be in 14.5.)
aids (email: adrianh@cogs.susx.ac.uk, phone: [+44] (0)273-678367)
ObDisclamer: Poplog pay my wages
[1] It is also *fairly* safe[2] since X has promised binary
compatability after R4. It is theoretically possible to keep BC & change
the Display structure --- but it is very unlikely.
[2] The "nice" X programmer in me hates to say this --- don't do it it's
naughty!
|