From: Greg H. <hu...@gr...> - 2002-01-31 03:18:24
|
Personally, I think that SPULoad should return a fourth function (in addition to Init, Self, Destroy (which is never called, BTW)) that is "callback with pointer to interesting stuff". This seems pretty straightforward, and is a bit less kludgy than adding another pointer to SPULoad. Thoughts? -- Some people call me the space cowboy... Some call me the gangster of love... Some people call me... HUMPER (hu...@gr...) > -----Original Message----- > From: chr...@li... > [mailto:chr...@li...]On Behalf Of Karl > Rasche > Sent: Wednesday, January 30, 2002 6:26 PM > To: chromium development > Subject: [Chromium-dev] spu seeing server... howto.. > > > > in some cases, it would be useful for a spu to have access to the > configuration information found in the server which holds the spu. > examples might be tiling information or mural size. the spu could always > interrigate the mothership, but the relevant information has already been > tossed over the network, so no need to duplicate that overhead. > > now, what is the 'best' way for a spu to see the server holding it? i can > think of a few things off the top of my head, but nothing really seems too > wonderful.. > > 0. let the mothership handle it > > 1. pass a pointer to the CRServer struct as a parameter to the SPULoad() > function this would mean changing a bunch of prototypes, but may be one of > the prettier choices > > 2. hijack an existing parameter of SPULoad(), ie the name. change any > existing spu wanting to see it server (and the template spu) to grab the > value before setting its name.. this is pretty hacky, but would involve > minimal alterations to existing code > > 3. add some global CRServer * to spus wanting to see servers. use dlsym() > (or whatever the windows equivalant.. or just crDLLGet(), anyway.. ) to > find the symbol and shove the correct value into it, if the symbol is > found. cleaner than #2, but without the mindless labor of #1. > > other things? > > karl > > [k a r l r a s c h e] the math department makes me feel normal > -- campus grafiti > rk...@vr... > > > _______________________________________________ > Chromium-dev mailing list > Chr...@li... > https://lists.sourceforge.net/lists/listinfo/chromium-dev > > |