Paul Alfille <[EMAIL PROTECTED]> wrote: > Very simple library: > int OW_init( const char * device ) ; > int OW_get( const char * path, char * buffer, int buffer_length ) ; > int OW_put( const char * path, const char * buffer, int buffer_length ) ; > void OW_finish( void ) ; > > Seems to work.
Nice! There is one issue I already noticed in the script-language API. At the Moment ist does not seem to be possible to control more than one 1-wire bus from a single process. True? I would propose some kind of filehandle for the above functions and the swig Interface which would permit us using more than one bus from a given program. I think this could look like this (for your C-API example): int OW_init( const char * device, int *ow_handle ); OW_init may also return the handle. int OW_get( const char * path, char * buffer, int buffer_length, int ow_handle ) ; int OW_put( const char * path, const char * buffer, int buffer_length, int ow_handle ); void OW_finish( int ow_handle ) ; Sven -- C is quirky, flawed, and an enormous success (Dennis M. Ritchie) /me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web ------------------------------------------------------- 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
