Looks like libgpod is the one... but it doesn't support iPhone 4 yet.