nanogui: small misc. feature patch for nanox and flnx
Subject:
Re: small misc. feature patch for nanox and flnx
From:
Steven Hein ####@####.####
Date:
23 Apr 2001 15:14:42 -0000
Message-Id: <3AE446C9.B3330F6F@sgi.com>
Jordan,
Okay, it looks like I need to do a little more work.
I only fixed the GrRegisterInput() function for the server side,
not for the client side. When I do that, then you're right--
there will be no special cases in flnx based on whether nanox
is directly linked or not. I'll be able to put that together
today or tomorrow. I'll send you folks the respective
patches as you requested.
So, I'll add the equivalent changes in 'client.c'.
Question: since the GrRegisterInput()/GrUnregisterInput() functions
will work the same for both client and server, do you want to code
duplicated in srvmain.c and client.c, or is there some better
place to put shared code?
Jordan Crouse wrote:
> > My solution was to:
> > - added a configure option, --with-microwinlink, to tell flnx
> > when nanox server is linked into app (enables my features)
>
> This should not be needed at all - Any changes you make to Microwindows for
> the app linked into the server should be handled by -DNONETWORK in the
> Microwindows code, not passed in by a derivitave library.
>
Actually, the --with-microwinlink was a flnx config option, not
a Microwindows config option. But, making the changes discussed above,
this whole thing goes away anyway.
> > - fix GrRegisterInput() to allow multiple file descriptors
> > - add a GrUnregisterInput() to remove descriptors
>
> Both good patches. Hopefully you made yours a little bit more efficent than
> mine - I had a for loop to copy the fd_set and it irritated me to no end.
>
Ummmm...right now it's a loop, but I'll look at "fixing" that ;^)
Steve
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Steve Hein ####@####.#### Engineering Diagnostics/Software
Silicon Graphics, Inc.
1168 Industrial Blvd. Phone: (715) 726-8410
Chippewa Falls, WI 54729 Fax: (715) 726-6715
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~