path: root/rbutil/ipodpatcher/ipodio-posix.c
AgeCommit message (Collapse)AuthorFilesLines
2014-03-20OS X: change include paths to use actual paths.Dominik Riebeling1-2/+2
The old include path is actually a symlink for compatibility. Newer SDK versions remove that symlink to the include breaks. Change-Id: I74317557840f1886cebc1ce099e103dc415eabc0
2013-01-01Provide dealloc function to ipodpatcher.Dominik Riebeling1-0/+10
On Windows the sector buffer is allocated using VirtualAlloc, thus releasing this buffer should be done using VirtualFree. Provide an additional function for deallocating the buffer so users of ipodpatcher do not need to know about this. Change-Id: Ibb0fc575a185148a389e63935e86a392bf8d180d
2013-01-01ipodpatcher: move sectorbuf pointer into ipod_t structure.Dominik Riebeling1-7/+13
The ipod_t structure holds all relevant information for ipodpatcher. Put the global ipod_sectorbuf pointer into it as well. Allows the Rockbox Utility Ipod class to be instanciated multiple times since each instance can now have its own buffer. Change-Id: Ie319cbadbc20c367ceadba9a46b4dc34b57a79a7
2011-12-07ipodpatcher: guard platform specific files.Dominik Riebeling1-0/+3
Use the preprocessor to make platform specific files compile as empty files if built for a different platform. This removes the need to distinguish in the Makefile and simplifies creating a libipodpatcher. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-12-19Check if creating the dictionary worked before accessing it, not afterwards.Dominik Riebeling1-3/+2
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-01-30Implement ipod_scsi_inquiry() on OS X.Dominik Riebeling1-8/+146
This implements the basic functionality for sending inquiries on OS X. The current implementation has some limitations: - it will not respect the selected device but pick the first Ipod found. - it is inefficient due to the way ipodpatcher expects this which doesn't really match how it works on OS X. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-01-28Revert most of r24361 - it was committed in error.Dave Chapman1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-01-28Update the comments describing how to build ipodpatcher - no functional changes.Dave Chapman1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-11-29Suppress unused warnings for functions that haven't been implemented.Dominik Riebeling1-0/+8
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-11-08Rename print_error() in ipodpatcher and sansapatcher.Dominik Riebeling1-1/+1
Both patchers use the same function name with one being removed when building for rbutil. This gets in the way trying to move the patchers to libraries, and it also results a linking dependency of sansapatcher on ipodpatcher. Renaming the function makes both more self-contained and avoids potential issues if the functions happen to not do the same. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-08-04Add support (on Linux and win32 only - I couldn't figure this out on OS X) ↵Dave Chapman1-0/+63
for reading the XML device information from ipods. This information includes the RAM size, which is potentially useful for rbutil to distinguish between the two ipod video builds. This is implemented as both a new --dump-xml option (to dump the entire XML to a file) and a new 'ramsize' field in struct ipod_t. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg1-2/+4
later. We still need to hunt down snippets used that are not. 1324 modified files... git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-05-04Check for permission denied error when trying to access the player and ↵Dominik Riebeling1-1/+3
inform the user that raw disc access permissions are required. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2007-09-01Mac OS X only - automatically unmount the FAT32 partition before attempting ↵Dave Chapman1-0/+24
to open the disk device for writing. This step can be removed from the manual when the next ipodpatcher version is released. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2007-07-29Add -W to CFLAGS in Makefile and fix the generated warnings.Dave Chapman1-2/+2
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2007-06-16Initial integration of a --format option, based on fat32format.exe. The ↵Dave Chapman1-2/+41
main limitation is that it only works on disks with 512-byte sectors - it needs adapting to the 2048-byte sector ipods. It has only been tested on Linux and Mac OS X, with a 60GB ipod Color, but appears to work.... When this feature has been more widely tested, the intention is to add code to convert the information in an Apple Partition Map (which can currently be read by ipodpatcher) to a DOS partition table, and hence allow conversion of Macpods to Winpods. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2007-02-10Move ipodpatcher into rbutil directoryDave Chapman1-0/+115
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657