summaryrefslogtreecommitdiffstats
path: root/src/ipod-device.c
Commit message (Collapse)AuthorAgeFilesLines
* * itdb_device.[ch]: rewrote ipod-device.c, removed all hal-code,Jorg Schuler2006-03-161-1832/+0
| | | | | | | | | | | | | | | | | removed all code irrelevant to writing the iTunesDB and ArtworkDB. * autodetect iControl directory now also works for ArtworkDB. * db-artwork-parser.c (ipod_db_get_artwork_db_path): create Artwork directory if not already present. * itdb.h: Itdb_iTunesDB: moved mountpoint and musicdirs into private Itdb_Device. Use itdb_set_mountpoint() and itdb_get_mountpoint() to access the mountpoint. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1220 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * ipod-device.c: added entries for iPod Nano 1 GB black and whiteJorg Schuler2006-03-091-1/+3
| | | | | | | (thanks to Leonhard Gruenschlos) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1217 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * ipod-device.c: (ipod_device_set_property): fixed possibleJorg Schuler2006-02-281-8/+10
| | | | | | | segfault when hald is present. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1210 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/ipod-device.c: added HP type color photo ipod 'S492'. ThanksJorg Schuler2006-02-191-1/+2
| | | | | | | to David Desrosiers. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1207 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/ipod-device.c: (ipod_device_set_property): fixed bug thatJorg Schuler2006-02-141-13/+13
| | | | | | | | caused ipod-detection to fail if hal daemon was not running. As a consequence cover art was not written to the iPod. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1205 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* (ipod_device_get_model_index_from_table): fix warning aboutJorg Schuler2006-01-031-2/+2
| | | | | | | unused computed value (thanks to Martin Aumueller) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1200 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/ipod-device.c: (ipod_device_set_property) check hal_contextJorg Schuler2006-01-031-6/+11
| | | | | | | | | | before accessing it to avoid segfault when hald is not running. (ipod_device_hal_initialize) fixed memory leak: 'error' was not freed if libhal_ctx_init() failed. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1199 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/ipod-device.c: don't ignore return value ofJorg Schuler2005-12-181-10/+18
| | | | | | | fread/fwrite/ftell because of possible compiler warnings. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1198 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2005-11-22 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2005-11-221-3/+2
| | | | | | | * src/ipod-device.c: fix compilation issue when hal isn't available git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1166 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2005-11-21 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2005-11-211-24/+18
| | | | | | | | * src/hal-common.c: * src/ipod-device.c: marked some functions as static git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1160 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2005-11-21 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2005-11-211-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/ipod-device.c: fix g_mkdir_with_parents use (don't use it with glib 2.8, and mark it static) 2005-11-21 Christophe Fergeau <teuf@gnome.org> * src/db-artwork-writer.c: (write_mhod_type_3): * src/db-parse-context.c: * src/ipod-device.c: * src/itdb_private.h: * src/itdb_track.c: * src/ithumb-writer.c: (ithumb_writer_write_thumbnail): commit some changes which should help compiling with glib 2.4 2005-11-21 Christophe Fergeau <teuf@gnome.org> * autogen.sh: * gnome-autogen.sh: use autogen.sh script from gnome-common since the custom libgpod one keep having issues (this doesn't add a dependency on gnome-common since I imported the necessary script to our CVS) 2005-11-21 Christophe Fergeau <teuf@gnome.org> * INSTALL: * autogen.sh: * gnome-autogen.sh: 2005-11-21 Christophe Fergeau <teuf@gnome.org> * src/hal-common.h: mark hal stubs (for when hal isn't available) as G_GNUC_INTERNAL to avoid namespace clashes * src/ipod-device.c: * src/ipod-device.h: move hal header inclusion in the .c instead of having it in the .h 2005-11-19 Jorg Schuler <jcsjcs at users.sourceforge.net> * itdb_playlist.c: simplified API for itdb_spl_update() and itdb_splr_eval() * itdb_playlist.c: added itdb_spl_update_live() for convenience * itdb_itunesdb.c: (itdb_rename_files) also remove "iTunesShuffle" as this file might confuse iPod Shuffles. 2005-11-17 Jorg Schuler <jcsjcs at users.sourceforge.net> * configure.ac: check for version 2.4 of glib -- now we need to make sure that libgpod actually works with 2.4... 2005-11-15 Christophe Fergeau <teuf@gnome.org> * src/itdb_itunesdb.c: (itdb_new): initialise glib type system before calling ipod_device_new (which creates a gobject) 2005-11-13 Jorg Schuler <jcsjcs at users.sourceforge.net> * src/itdb_itunesdb.c: when new rating is set on the iPod, backup the old rating to app_rating. Not sure what it's for, but iTunes seem to do it. * src/itdb_itunesdb.c: * src/itdb.h: split unk164 into flag1, flag2, flag3, and flag4. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1159 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2005-11-21 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2005-11-211-1/+1
| | | | | | | | | | | | | * src/db-artwork-writer.c: (write_mhod_type_3): * src/db-parse-context.c: * src/ipod-device.c: * src/itdb_private.h: * src/itdb_track.c: * src/ithumb-writer.c: (ithumb_writer_write_thumbnail): commit some changes which should help compiling with glib 2.4 git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1158 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2005-11-21 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2005-11-211-2/+0
| | | | | | | | | | | * src/hal-common.h: mark hal stubs (for when hal isn't available) as G_GNUC_INTERNAL to avoid namespace clashes * src/ipod-device.c: * src/ipod-device.h: move hal header inclusion in the .c instead of having it in the .h git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1156 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2005-11-08 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2005-11-081-1/+1
| | | | | | | | * src/ipod-device.c: * src/ipod-device.h: update comments to reflect the fact we are using git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1144 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2005-11-08 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2005-11-081-5/+12
| | | | | | | | | | | | * src/hal-common.c: * src/hal-common.h: * src/ipod-device.c: (ipod_device_set_property), (ipod_device_hal_initialize), (ipod_device_detect_volume_info), (ipod_device_new), (ipod_device_eject): sync with libipoddevice CVS, use #ifdef HAVE_LIBHAL instead of #if HAVE_LIBHAL git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1143 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2005-11-05 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2005-11-051-6/+77
| | | | | | | | | | * src/ipod-device.c: (ipod_device_get_property), (ipod_device_class_init): * src/ipod-device.h: sync with libipoddevice CVS to get information about artwork formats supported by the various iPod models git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1140 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2005-11-04 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2005-11-041-1/+1
| | | | | | | | | | | | | | | * src/ipod-device.c: (ipod_device_new): * src/ipod-device.h: * src/itdb.h: * src/itdb_itunesdb.c: (itdb_free), (itdb_parse), (itdb_shuffle_write), (itdb_set_mountpoint): added an IpodDevice element to Itdb_iTunesDB. This makes it possible for libgpod to know the type (regular/nano/mini/video/...) of the iPod it's currently dealing with (which is necessary for proper cover art support for example) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1139 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c,itdb_private.h: fixes for 64 bit systemsJorg Schuler2005-10-151-3/+3
| | | | | | | | | * src/ipod-device.c: fixes for 64 bit systems (patch provided by Bodo Bauer) * TROUBLESHOOTING: hint for 64 bit compilation git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1121 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * bindings/python/gpod.i: applied Kelvin Lawson's patch to queryJorg Schuler2005-10-091-0/+1748
integers. * src/ipod-device.[ch],hal-common.[ch],Makefile.am: code ported from libipoddevice to retrieve information about the iPod without libhal dependence. * tests/test-ipod-device.c: small script to show how to to query the iPod for information. * tests/Makefile.am: initialize <LIBS> with better default * configure.ac: add dependency for libgobject git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1113 f01d2545-417e-4e96-918e-98f8d0dbbcb6