On Wed, 2005-10-12 at 13:17 -0400, Alfille, Paul H.,M.D. wrote: > Concering "Multiple OW handles" > > I don't think the library, owlib, is set up for multiple invokation. All the > global variables would colide. > > Let's see, that includes the input-device and output device chain heads > (in_connection and out_connection), all the statistics, the cache heads, the > Device array, etc. > > We could package it all up in an allocated structure, but it would take a bit > of > work. > > There is another alternative: OWFS allows multiple 1-wire busses, either > provided by owserver, or directly. > > The syntax (already in place) is > OW_init_string( "device1 devices2 --option --option" ) or whatever. Actually > the > same as for invoking owserver (minus the output port) or owfs (minus the mount > point). The busses can be addressed independently via the bus.0 bus.1 ... > directories. Adding or subtracting busses on the fly would requiring > OW_finish, > OW_init_string with some inefficiency (loss of statistics, loss of cache).
This sounds preferable to me anyway :) -- Internet Connection High Quality Web Hosting http://www.internetconnection.net/ ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
