summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * src/itdb_itunesdb.c (itdb_init_ipod): only write iTunesSDJorg Schuler2006-07-022-10/+24
| | | | | | | | (shuffle database) when initializing shuffle. Thanks to James Joyce for the patch. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1307 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c (wcontents_write): added g_strerror in errorJorg Schuler2006-06-282-5/+10
| | | | | | | messages. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1306 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: fixed endianness autodetection for big endianJorg Schuler2006-06-272-3/+9
| | | | | | | mobile phones. Thanks to Rached Ben Mustapha for the patch. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1305 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.cJorg Schuler2006-06-243-9/+56
| | | | | | | | | | src/itdb.h: Added itdb_get_itunessd_path (). itdb_init_ipod() will no longer overwrite existing iTunesDB and iTunesSD. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1304 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c (itdb_device_get_ipod_info): compare more thanJorg Schuler2006-06-102-2/+9
| | | | | | | | 4 characters of iPod model if the stored model number is more than 4 characters long. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1303 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.hJorg Schuler2006-06-077-29/+162
| | | | | | | | | | | | | | | | | | | | src/itdb_device.c: Added itdb_device_write_sysinfo() and itdb_device_set_sysinfo(). * src/itdb_itunesdb.c (itdb_create_directories): Use functions introduced above. (itdb_write): Write SynsInfo file when writing the iTunesDB if SysInfo hash has been changed by application. * src/itdb_device.[ch]: mark sysinfo hash as changed/unchanged. * src/itdb_photoalbum.c (itdb_photodb_write): Write SynsInfo file when writing the iTunesDB if SysInfo hash has been changed by application. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1302 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c (itdb_create_directories): add space afterJorg Schuler2006-06-052-2/+5
| | | | | | | ":" when writing SysInfo file. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1301 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.hJorg Schuler2006-06-053-8/+14
| | | | | | | | | | | | | src/itdb_device.c Rename itdb_info_get_ipod_model_name() -> itdb_info_get_ipod_model_name_string() itdb_info_get_ipod_generation_name() -> itdb_info_get_ipod_generation_string() Input on naming welcome! git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1300 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2006-06-05 Jorg Schuler <jcsjcs at users.sourceforge.net>Jorg Schuler2006-06-0421-278/+610
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/db-artwork-parser.h src/db-artwork-parserc (ipod_supports_cover_art): made available G_GNUC_INTERNAL. Added ipod_supports_photos(). * src/itdb_itunesdb.c (itdb_create_directories): Create Photos directory. 2006-06-04 Jorg Schuler <jcsjcs at users.sourceforge.net> * src/db-image-parser.c src/itdb_artwork.c src/itdb_device.c src/itdb_photoalbum.c src/itdb_track.c src/ithumb-writer.c: Phased out private IPOD_COVER_SMALL... enum in favor of identical public enum "ItdbThumbType" ITDB_THUMB_COVER_SMALL... * src/db-image-parser.c (ipod_image_new_from_mhni): Accept all thumbnail types we know about (i.e. type != -1). * src/db-artwork-debug.h src/db-artwork-parser.h src/db-image-parser.h src/db-parse-context.h src/glib-compat.h src/itdb_endianness.h: Added CVS "$Id:" line, added copyright notices where missing, added explanations to itdb_endianess.h ;-) * src/itdb_itunesdb.c src/itdb_track.c src/itdb_device.c src/itdb_device.h Made naming consistent and suitable for export: Itdb_IpodModel -> Itdb_IpodInfo ipod_model_table -> ipod_info_table itdb_device_get_model_info() -> itdb_device_get_ipod_info() MODEL_TYPE_... -> ITDB_IPOD_MODEL_... nth_GENERATION -> ITDB_IPOD_GENERATION_nth Exported Itdb_IpodModel, Itdb_IpodGeneration, Itdb_IpodInfo, itdb_device_get_ipod_info(). * src/itdb_device.c: new API: itdb_info_get_ipod_info_table(), itdb_info_get_ipod_model_name() * src/itdb.h src/itdb_artwork.c: Removed unused field ->type in Itdb_Artwork and corresponding enum ItdbArtworkType. 2006-06-03 Jorg Schuler <jcsjcs at users.sourceforge.net> * src/itdb_artwork.c (itdb_thumb_get_gdk_pixbuf): handle thumbnail padding correctly -- who would have thought that iTunes indicates _negative_ padding at times... Please use the test-photos program to check out whether or not your photos show up correctly without black bars or funny colors. * src/db-artwork-writer.c src/db-image-parser.c src/itdb.h src/ithumb-writer.c: Hopefully do padding right: - read padding fields from mhni header and store them with each thumbnail - calculate padding for PhotoDB only (padding for iTunesDB Artwork does not seem to be necessary) - include the padding into the total width/height It seems to work well on my iPod Nano -- feedback appreciated. * tests/test-photos.c: added possibility to dump all photos into a directory: tests/test-photos dump <mountpoint> <output_dir> * src/itdb_artwork.c: changed byte order for full screen iPod Nanos. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1299 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.cJorg Schuler2006-06-027-48/+83
| | | | | | | | | | | | | | | | | src/db-image-parser.c src/itdb.h src/ithumb-writer.c: Hopefully do padding right: - read padding fields from mhni header and store them with each thumbnail - calculate padding for PhotoDB only (padding for iTunesDB Artwork does not seem to be necessary) - include the padding into the total width/height It seems to work well on my iPod Nano -- feedback appreciated. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1298 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tests/test-photos.c: added possibility to dump all photos into aJorg Schuler2006-06-023-42/+109
| | | | | | | | | | | directory: tests/test-photos dump <mountpoint> <output_dir> * src/itdb_artwork.c: changed byte order for full screen iPod Nanos. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1297 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb.h:Jorg Schuler2006-06-0112-113/+174
| | | | | | | | | | | | | | | | | | | | | | | | src/itdb_private.h: moved Itdb_DB to private part. * src/itdb.h: src/itdb_private.h: src/itdb_itunesdb: New: db_get_itunesdb(), db_get_photodb() * src/db-artwork-parser.c src/db-artwork-writer.c src/db-image-parser.c src/db-image-parser.h src/db-parse-context.c src/db-parse-context.h src/itdb_endianness.h src/itdb_itunesdb.c src/ithumb-writer.c: Remove all direct access to Itdb_DB->db. enum git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1296 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c (write_mhni): fix segfault caused byJorg Schuler2006-06-014-8/+12
| | | | | | | wrong access of enum inside Itdb_DB git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1295 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac:Jorg Schuler2006-05-313-3/+70
| | | | | | | m4/python: check for eyeD3 (Todd Zullinger) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1294 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Catch up with flag2->skip_when_shuffling, flag3->remember_playback_position ↵Nicholas Piper2006-05-301-17/+7
| | | | | | renames and remove flag1. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1293 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* ***** merged photo-support branch back to MAIN. branch is taggedJorg Schuler2006-05-3039-902/+3188
| | | | | | | | | photo-support-merged_00 ipod.py will need minor patching (flag2, flag3). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1292 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Don't remove required files when we make clean.Nicholas Piper2006-05-291-1/+2
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1284 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add a couple of simple unit tests; use Make test to run. Runs against ↵Nicholas Piper2006-05-232-0/+68
| | | | | | _installed_ gpod bindings for now though. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1275 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix some Playlist handling - len(), creating without kwargs.Nicholas Piper2006-05-231-5/+5
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1274 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Initial version.Nicholas Piper2006-05-194-0/+3
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1271 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Assume local if localdb is specifiedNicholas Piper2006-05-191-1/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1270 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Config file for DoxygenNicholas Piper2006-05-172-1/+237
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1269 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* sw_get_playlist() seems to have also (?) become lost. Maybe I've just lost a ↵Nicholas Piper2006-05-171-0/+11
| | | | | | ability to use cvs ;-) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1268 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Have errors reported with the correct path for anyone that's building ↵Nicholas Piper2006-05-171-2/+2
| | | | | | packages and using DESTDIR. Thanks to Todd Zullinger. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1267 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Support for removing tracks and playlists, local databases, checking if a ↵Nicholas Piper2006-05-152-48/+129
| | | | | | track is in a playlist, delayed copies, etc. I really did think I already committed this. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1265 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Allow searching for playlists by id, name and numberNicholas Piper2006-05-151-5/+63
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1264 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Another attempt at fixing gint64 and guint64 handling. 'Seems to work', this ↵Nicholas Piper2006-05-151-10/+12
| | | | | | time. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1263 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Stop having to list each python file in the gpod module; thanks to Todd ↵Nicholas Piper2006-05-151-10/+3
| | | | | | Zullinger git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1262 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add missing gtkpod.py ; rename playwith_ipod_api.py to use an underscore.Nicholas Piper2006-05-143-1/+100
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1261 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Allow add_song.py to create a playlist to put the new tracks intoNicholas Piper2006-05-072-11/+33
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1259 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Track, Database and Playlist support for the nicer API. add_song.py uses ↵Nicholas Piper2006-05-075-53/+266
| | | | | | this now. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1258 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * Created new branch "photo-support" for testing of photoJorg Schuler2006-05-061-0/+9
| | | | | | | | | | | support. Comes complete with a test program to add photos to your iPod. Works great for me -- thanks to Mikey! Update your repository with the "-r photo-support" option to get a copy and help testing. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1257 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add gint8-gint64 typemaps for 'in'Nicholas Piper2006-05-061-0/+42
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1255 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Rearrange slightly, create a gpod package ready for the nicer APINicholas Piper2006-05-062-12/+19
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1254 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: avoid segfault if album field of podcastsJorg Schuler2006-05-052-3/+15
| | | | | | | is not set (NULL). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1252 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: smart playlists: avoid assertionJorg Schuler2006-05-022-5/+14
| | | | | | | when writing rules with empty strings. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1251 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tests/Makefile.am: removed 'test-rebuild-db' fromJorg Schuler2006-04-262-1/+8
| | | | | | | | | 'noinst_PROGRAM' declaration (bug reported by Jens Taprogge). 'test-rebuild-db' is only added when the taglib is detected. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1250 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add sw_get_rule() to extract smart playlist rules from GList*, and hopefully ↵Nicholas Piper2006-04-253-13/+113
| | | | | | improve the guint8,16,32,64 handling git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1249 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Don't change flag1; it is automatic now as it means coverart present or notNicholas Piper2006-04-251-2/+0
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1248 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add create_mp3_tags_from_itdb.py from Thomas PerlNicholas Piper2006-04-242-2/+77
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1247 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tests/test-rebuild-db.cc: forgot to propagate a GErrorChristophe Fergeau2006-04-122-15/+23
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1246 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tests/test-ls.c: new test program reading and displaying the iPodChristophe Fergeau2006-04-105-1/+413
| | | | | | | | | | | | | | content * tests/test-rebuild-db.cc: new test program which looks for mp3 files on the iPod in the Music dir and rebuild an iPod database from that (it uses taglib to parse the tags, so it's conditionnally built depending on taglib's availability) * configure.ac: * tests/Makefile.am: build system changes to accomodate the 2 new test programs git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1245 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.h: removed dead codeChristophe Fergeau2006-04-103-18/+7
| | | | | | | * src/itdb_playlist.c: make spl_update2 static, kill spl_update git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1244 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * docs/Makefile.am:Christophe Fergeau2006-04-1024-253/+3011
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * docs/reference/Makefile.am: * docs/reference/libgpod-docs.xml: * docs/reference/libgpod-sections.txt: * docs/reference/tmpl/Internal.sgml: * docs/reference/tmpl/artwork.sgml: * docs/reference/tmpl/device.sgml: * docs/reference/tmpl/itunesdb-copying.sgml: * docs/reference/tmpl/itunesdb-db.sgml: * docs/reference/tmpl/itunesdb-lowlevel.sgml: * docs/reference/tmpl/itunesdb-time.sgml: * docs/reference/tmpl/libgpod-unused.sgml: * docs/reference/tmpl/playlists.sgml: * docs/reference/tmpl/smart-playlists.sgml: * docs/reference/tmpl/track.sgml: * docs/reference/version.xml.in: all the files below are new files needed for gtk-doc support * Makefile.am: * configure.ac: add gtk-doc support to build system * src/itdb_artwork.c: * src/itdb_device.c: * src/itdb_itunesdb.c: * src/itdb_playlist.c: * src/itdb_track.c: update inline comments in those files so that gtk-doc can pick them up to build documentation git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1243 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Very start of a much nicer API from PythonNicholas Piper2006-04-095-3/+203
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1242 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Allow fetching guint8 values into Python. Include function name in exception ↵Nicholas Piper2006-04-081-1/+5
| | | | | | when checking guint8. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1241 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Correction to filename (again?), since I started to use all underscores ↵Nicholas Piper2006-04-081-1/+1
| | | | | | instead of a mixture. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1240 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2006-04-08 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2006-04-082-0/+5
| | | | | | | * configure.ac: generate Makefile for bindings/python/examples git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1239 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Correction to filename (again?), since I started to use all underscores ↵Nicholas Piper2006-04-081-5/+3
| | | | | | instead of a mixture. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1238 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove Makefile, which is generated and shouldn't be in CVS.Nicholas Piper2006-04-081-416/+0
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1237 f01d2545-417e-4e96-918e-98f8d0dbbcb6