Re: [linux-minidisc] changed himdformat.c to work on linux and windows


Hi Thomas,

On Mon, Mar 22, 2010 at 01:29:18AM +0100, Thomas Arp wrote:
> Hello,
> i have made another himdformat.c which should work on linux and windows.
> I used libsgutils2 (included in sg3_utils source code).

Great, I really didn't know there is such an easy way to get that
working on Windows.

> You can use sg_scan (from sg3_utils package) to find the device (on linux use sg_scan -i to see inquiry data).
> 
> Install libsgutils2-2 and libsgutils2-dev with apt-get.
> To use sc_scan utility install sg3_utils too.
> I have sent sg3_utils (with libsgutils and headers) win32 binaries to Adrian, maybe he can put it in the Wiki.

We should be more consequent here, if your code actually works on
*both* Windows *and* Linux, then we should investigate whether we
could also get this working on MacOS as well. I have checked Macports
but haven't found anything looking like sg yet.

Can you provide a link to the upstream website of libsgutils? If we
can get this library to work on MacOS as well, we can integrate the
format command into qhimdtransfer which would be a great improvement,
wouldn't it?


Great idea, thanks!

Adrian