2008-02-28 11:48:30 UTC
Hello,
I'm porting libipod to MSVC 7.1 (and MSVC 8 to build on Vista). I'm writing a music player, Mars that runs on Windows and Linux -
http://totara-software.com .
I've got libipod reading my iPod after implementing minimal parts of Unix's <stdint.h>, <dirent.h> and <statfs.h> on Windows. I think the tidiest design is to keep the libipod code as intact as possible (just #include different headers on Windows) and implement the missing Unix functions on windows, namely opendir(), readdir(), closedir(), statfs(), srandom() and random(). I'm using the ANSI not Unicode windows API as the fopen() calls won't work with Unicode paths (if I translated the Windows UTF-16 to UTF-8 to squash the filenames into a char*).
There are lots of compiler warning left but I've minimised my changes.
1) I would like to add:
bool IPosTrack::HasAttribute(int tag);
int ipod_track_has_attribute(ipod_track_t track, int tag);
sip4 won't run on Windows so I can't test adding this to the Python API at the moment.
2) Where should I submit my patch, based of the tip of the code in CVS.
Gene Thomas.