diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-04-27 14:09:59 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-04-27 14:09:59 +0000 |
commit | 4e34b34b9c9ea5df23548c86da080b700666f00f (patch) | |
tree | 3edd7b23d5848a943cfaa9a177800fc8f94f44e4 /src/itdb.h | |
parent | 0a8bf8b3ac053452aab77d6842b4f7ae475419e4 (diff) | |
download | libgpod-tmz-4e34b34b9c9ea5df23548c86da080b700666f00f.tar.gz libgpod-tmz-4e34b34b9c9ea5df23548c86da080b700666f00f.tar.xz libgpod-tmz-4e34b34b9c9ea5df23548c86da080b700666f00f.zip |
* docs/reference/tmpl/device.sgml
docs/reference/tmpl/itunesdb-time.sgml
docs/reference/tmpl/libgpod-unused.sgml
docs/reference/tmpl/track.sgml
src/db-artwork-parser.c
src/db-artwork-writer.c
src/db-itunes-parser.h
src/itdb.h
src/itdb_device.c
src/itdb_device.h
src/itdb_itunesdb.c
src/itdb_private.h
tests/Makefile.am:
Christophe's patch for automatic correction of timestamps
depending on which timezone the iPod is set to.
ATTENTION DEVELOPERS: as a consequence all exported timestamps
are no longer guint32 mac-type timestamps but standard time_t
timestamps. This also includes the 64 bit timestamps in smart
playlists. The following functions are therefore no longer
needed and are deprecated:
itdb_time_mac_to_host(), itdb_time_host_to_mac(): simply return
the argument without changing it. Argument and return value are
now both of type 'time_t'.
itunesdb_time_get_mac_time(): returns the seconds passed since
Epoch in seconds and is equivalent to time(NULL).
These functions may be removed in a future version of
libgpod. Programs linking to libgpod may need to be changed
slightly if they made any assumptions on the type of timestamps
used. This should be obvious through compile-time warnings.
tests/test-ls.c: print a list of recently played tracks.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1417 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb.h')
-rw-r--r-- | src/itdb.h | 28 |
1 files changed, 13 insertions, 15 deletions
@@ -1,5 +1,5 @@ /* -| Copyright (C) 2002-2006 Jorg Schuler <jcsjcs at users sourceforge net> +| Copyright (C) 2002-2007 Jorg Schuler <jcsjcs at users sourceforge net> | Part of the gtkpod project. | | URL: http://www.gtkpod.org/ @@ -461,10 +461,10 @@ struct _Itdb_Artwork { gint32 unk028; guint32 rating; /* Rating from iPhoto * 20 (PhotoDB only) */ gint32 unk036; - guint32 creation_date; /* Date the image file was created + time_t creation_date; /* Date the image file was created (creation date of image file (Mac type, PhotoDB only) */ - guint32 digitized_date;/* Date the image was taken (EXIF + time_t digitized_date;/* Date the image was taken (EXIF information, Mac type, PhotoDB only) */ guint32 artwork_size; /* Size in bytes of the original source image (PhotoDB only -- don't touch in @@ -554,7 +554,7 @@ struct _Itdb_Playlist gint num; /* number of tracks in playlist */ GList *members; /* tracks in playlist (Track *) */ gboolean is_spl; /* smart playlist? */ - guint32 timestamp; /* timestamp of playlist creation */ + time_t timestamp; /* timestamp of playlist creation */ guint64 id; /* playlist ID */ guint32 sortorder; /* How to sort playlist -- see below */ guint32 podcastflag; /* ITDB_PL_FLAG_NORM/_PODCAST */ @@ -694,9 +694,9 @@ struct _Itdb_Track gint32 year; /* year */ gint32 volume; /* volume adjustment */ guint32 soundcheck; /* volume adjustment "soundcheck" */ - guint32 time_added; /* time when added (Mac type) */ - guint32 time_played; /* time of last play (Mac type) */ - guint32 time_modified; /* time of last modification (Mac type)*/ + time_t time_added; /* time when added (Mac type) */ + time_t time_modified; /* time of last modification (Mac type)*/ + time_t time_played; /* time of last play (Mac type) */ guint32 bookmark_time; /* bookmark set for (AudioBook) in ms */ guint32 rating; /* star rating (stars * RATING_STEP (20)) */ guint32 playcount; /* number of times track was played */ @@ -756,11 +756,9 @@ struct _Itdb_Track (like WAVE format), 0x1 for Audible. itdb will try to set this when adding a new track */ guint32 unk132; /* unknown */ - guint32 time_released;/* date/time added to music store? definitely a - timestamp, always appears to be a time of - 0700 GMT. For podcasts: release date as - displayed next to the title in the Podcast - playlist */ + time_t time_released;/* date/time added to music store? + For podcasts: release date as displayed next to the + title in the Podcast playlist */ guint16 unk144; /* unknown, but MP3 songs appear to be always 0x000c, AAC songs are always 0x0033, Audible files are 0x0029, WAV files are 0x0. itdb @@ -1111,9 +1109,9 @@ Itdb_Thumb *itdb_thumb_new (void); gchar *itdb_thumb_get_filename (Itdb_Device *device, Itdb_Thumb *thumb); /* time functions */ -guint64 itdb_time_get_mac_time (void); -time_t itdb_time_mac_to_host (guint64 mactime); -guint64 itdb_time_host_to_mac (time_t time); +time_t itdb_time_get_mac_time (void); +time_t itdb_time_mac_to_host (time_t time); +time_t itdb_time_host_to_mac (time_t time); /* Initialize a blank ipod */ gboolean itdb_init_ipod (const gchar *mountpoint, |