Re: Getting started with libgpod

Christophe Fergeau <[email protected]> Mon, 1 Aug 2011 11:41:30 +0200
Newsgroups gmane.comp.ipod.gtkpod
Message-ID <CACw48RmQsw89sALBGx585=uvhtO6-1fE6CcR+1W6eq7y1YXR+Q@mail.gmail.com>
Hi,

2011/7/31 Árpád Goretity <[email protected]>:
Which is
> the essential part of libimobiledevice which causes the iPod.app to properly
> read and reload the library? I'd like to implement this by hand in my iPhone
> app.

There are 2 things that are needed, first of all, libgpod uses some
information it got from the iPod through libimobiledevice to
automatically identify the ipod model that is connected. This is
needed to know how the ipod database should be checksummed, and
whether sqlite files should be written or not. I think this is the
part that is missing in your case.
Then, for iOS devices, a series of commands needs to be run on the
sqlite databases as a postprocessing step (otherwise you get a long
"updating database" screen on the device), and once again libgpod uses
libimobiledevice to get these commands. I'm not sure either how to get
them from the ipod directly.

Last but not least, recent iOS devices are read-only as far as libgpod
is concerned, that is everything that went out after the
iPhone4/iTouch4/iPad

Hope that helps,

Christophe

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey