itdb.h | itdb.h | |||
---|---|---|---|---|
skipping to change at line 411 | skipping to change at line 411 | |||
ITDB_LIMITSORT_ALBUM = 0x04, | ITDB_LIMITSORT_ALBUM = 0x04, | |||
ITDB_LIMITSORT_ARTIST = 0x05, | ITDB_LIMITSORT_ARTIST = 0x05, | |||
ITDB_LIMITSORT_GENRE = 0x07, | ITDB_LIMITSORT_GENRE = 0x07, | |||
ITDB_LIMITSORT_MOST_RECENTLY_ADDED = 0x10, | ITDB_LIMITSORT_MOST_RECENTLY_ADDED = 0x10, | |||
ITDB_LIMITSORT_LEAST_RECENTLY_ADDED = 0x80000010, /* See note above */ | ITDB_LIMITSORT_LEAST_RECENTLY_ADDED = 0x80000010, /* See note above */ | |||
ITDB_LIMITSORT_MOST_OFTEN_PLAYED = 0x14, | ITDB_LIMITSORT_MOST_OFTEN_PLAYED = 0x14, | |||
ITDB_LIMITSORT_LEAST_OFTEN_PLAYED = 0x80000014, /* See note above */ | ITDB_LIMITSORT_LEAST_OFTEN_PLAYED = 0x80000014, /* See note above */ | |||
ITDB_LIMITSORT_MOST_RECENTLY_PLAYED = 0x15, | ITDB_LIMITSORT_MOST_RECENTLY_PLAYED = 0x15, | |||
ITDB_LIMITSORT_LEAST_RECENTLY_PLAYED = 0x80000015,/* See note above */ | ITDB_LIMITSORT_LEAST_RECENTLY_PLAYED = 0x80000015,/* See note above */ | |||
ITDB_LIMITSORT_HIGHEST_RATING = 0x17, | ITDB_LIMITSORT_HIGHEST_RATING = 0x17, | |||
ITDB_LIMITSORT_LOWEST_RATING = 0x80000017, /* See note above */ | ITDB_LIMITSORT_LOWEST_RATING = 0x80000017 /* See note above */ | |||
} ItdbLimitSort; | } ItdbLimitSort; | |||
/** | /** | |||
* ItdbSPLAction: | * ItdbSPLAction: | |||
* @ITDB_SPLACTION_IS_INT: is integer ("Is Set" in iTunes) | * @ITDB_SPLACTION_IS_INT: is integer ("Is Set" in iTunes) | |||
* @ITDB_SPLACTION_IS_GREATER_THAN: is greater than ("Is after" in iTun es) | * @ITDB_SPLACTION_IS_GREATER_THAN: is greater than ("Is after" in iTun es) | |||
* @ITDB_SPLACTION_IS_LESS_THAN: is less than ("Is Before" in iTunes ) | * @ITDB_SPLACTION_IS_LESS_THAN: is less than ("Is Before" in iTunes ) | |||
* @ITDB_SPLACTION_IS_IN_THE_RANGE: is in the range | * @ITDB_SPLACTION_IS_IN_THE_RANGE: is in the range | |||
* @ITDB_SPLACTION_IS_IN_THE_LAST: is in the last | * @ITDB_SPLACTION_IS_IN_THE_LAST: is in the last | |||
* @ITDB_SPLACTION_BINARY_AND: binary AND | * @ITDB_SPLACTION_BINARY_AND: binary AND | |||
skipping to change at line 501 | skipping to change at line 501 | |||
ITDB_SPLACTION_IS_NOT_GREATER_THAN = 0x02000010, | ITDB_SPLACTION_IS_NOT_GREATER_THAN = 0x02000010, | |||
ITDB_SPLACTION_IS_NOT_LESS_THAN = 0x02000040, | ITDB_SPLACTION_IS_NOT_LESS_THAN = 0x02000040, | |||
ITDB_SPLACTION_IS_NOT_IN_THE_RANGE = 0x02000100, | ITDB_SPLACTION_IS_NOT_IN_THE_RANGE = 0x02000100, | |||
ITDB_SPLACTION_IS_NOT_IN_THE_LAST = 0x02000200, | ITDB_SPLACTION_IS_NOT_IN_THE_LAST = 0x02000200, | |||
ITDB_SPLACTION_NOT_BINARY_AND = 0x02000400, | ITDB_SPLACTION_NOT_BINARY_AND = 0x02000400, | |||
ITDB_SPLACTION_BINARY_UNKNOWN2 = 0x02000800, | ITDB_SPLACTION_BINARY_UNKNOWN2 = 0x02000800, | |||
ITDB_SPLACTION_IS_NOT = 0x03000001, | ITDB_SPLACTION_IS_NOT = 0x03000001, | |||
ITDB_SPLACTION_DOES_NOT_CONTAIN = 0x03000002, | ITDB_SPLACTION_DOES_NOT_CONTAIN = 0x03000002, | |||
ITDB_SPLACTION_DOES_NOT_START_WITH = 0x03000004, | ITDB_SPLACTION_DOES_NOT_START_WITH = 0x03000004, | |||
ITDB_SPLACTION_DOES_NOT_END_WITH = 0x03000008, | ITDB_SPLACTION_DOES_NOT_END_WITH = 0x03000008 | |||
} ItdbSPLAction; | } ItdbSPLAction; | |||
/** | /** | |||
* ItdbSPLFieldType: | * ItdbSPLFieldType: | |||
* @ITDB_SPLFT_STRING: string | * @ITDB_SPLFT_STRING: string | |||
* @ITDB_SPLFT_INT: integer | * @ITDB_SPLFT_INT: integer | |||
* @ITDB_SPLFT_BOOLEAN: boolean | * @ITDB_SPLFT_BOOLEAN: boolean | |||
* @ITDB_SPLFT_DATE: date | * @ITDB_SPLFT_DATE: date | |||
* @ITDB_SPLFT_PLAYLIST: playlist | * @ITDB_SPLFT_PLAYLIST: playlist | |||
* @ITDB_SPLFT_UNKNOWN: unknown | * @ITDB_SPLFT_UNKNOWN: unknown | |||
skipping to change at line 577 | skipping to change at line 577 | |||
* | * | |||
* These are to pass to AddRule() when you need a unit for the two "in the last" | * These are to pass to AddRule() when you need a unit for the two "in the last" | |||
* action types. In theory, you can use any time range. iTunes might not | * action types. In theory, you can use any time range. iTunes might not | |||
* like it, but the iPod shouldn't care. | * like it, but the iPod shouldn't care. | |||
* | * | |||
* Since: 0.5.0 | * Since: 0.5.0 | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
ITDB_SPLACTION_LAST_DAYS_VALUE = 86400, /* nr of secs in 24 hours */ | ITDB_SPLACTION_LAST_DAYS_VALUE = 86400, /* nr of secs in 24 hours */ | |||
ITDB_SPLACTION_LAST_WEEKS_VALUE = 604800, /* nr of secs in 7 days */ | ITDB_SPLACTION_LAST_WEEKS_VALUE = 604800, /* nr of secs in 7 days */ | |||
ITDB_SPLACTION_LAST_MONTHS_VALUE = 2628000,/* nr of secs in 30.4167 | ITDB_SPLACTION_LAST_MONTHS_VALUE = 2628000 /* nr of secs in 30.4167 | |||
days ~= 1 month */ | days ~= 1 month */ | |||
} ItdbSPLActionLast; | } ItdbSPLActionLast; | |||
#if 0 | #if 0 | |||
// Hey, why limit ourselves to what iTunes can do? If the iPod can deal wit h it, excellent! | // Hey, why limit ourselves to what iTunes can do? If the iPod can deal wit h it, excellent! | |||
#define ITDB_SPLACTION_LAST_HOURS_VALUE 3600 // n umber of seconds in 1 hour | #define ITDB_SPLACTION_LAST_HOURS_VALUE 3600 // n umber of seconds in 1 hour | |||
#define ITDB_SPLACTION_LAST_MINUTES_VALUE 60 // n umber of seconds in 1 minute | #define ITDB_SPLACTION_LAST_MINUTES_VALUE 60 // n umber of seconds in 1 minute | |||
#define ITDB_SPLACTION_LAST_YEARS_VALUE 31536000 // n umber of seconds in 365 days | #define ITDB_SPLACTION_LAST_YEARS_VALUE 31536000 // n umber of seconds in 365 days | |||
/* fun ones.. Near as I can tell, all of these work. It's open like that. : )*/ | /* fun ones.. Near as I can tell, all of these work. It's open like that. : )*/ | |||
skipping to change at line 1264 | skipping to change at line 1264 | |||
ITDB_MEDIATYPE_MOVIE = (1 << 1), | ITDB_MEDIATYPE_MOVIE = (1 << 1), | |||
ITDB_MEDIATYPE_PODCAST = (1 << 2), | ITDB_MEDIATYPE_PODCAST = (1 << 2), | |||
ITDB_MEDIATYPE_AUDIOBOOK = (1 << 3), | ITDB_MEDIATYPE_AUDIOBOOK = (1 << 3), | |||
ITDB_MEDIATYPE_MUSICVIDEO = (1 << 5), | ITDB_MEDIATYPE_MUSICVIDEO = (1 << 5), | |||
ITDB_MEDIATYPE_TVSHOW = (1 << 6), | ITDB_MEDIATYPE_TVSHOW = (1 << 6), | |||
ITDB_MEDIATYPE_RINGTONE = (1 << 14), | ITDB_MEDIATYPE_RINGTONE = (1 << 14), | |||
ITDB_MEDIATYPE_RENTAL = (1 << 15), | ITDB_MEDIATYPE_RENTAL = (1 << 15), | |||
ITDB_MEDIATYPE_ITUNES_EXTRA = (1 << 16), | ITDB_MEDIATYPE_ITUNES_EXTRA = (1 << 16), | |||
ITDB_MEDIATYPE_MEMO = (1 << 20), | ITDB_MEDIATYPE_MEMO = (1 << 20), | |||
ITDB_MEDIATYPE_ITUNES_U = (1 << 21), | ITDB_MEDIATYPE_ITUNES_U = (1 << 21), | |||
ITDB_MEDIATYPE_EPUB_BOOK = (1 << 22) | ITDB_MEDIATYPE_EPUB_BOOK = (1 << 22), | |||
ITDB_MEDIATYPE_PDF_BOOK = (1 << 23) | ||||
} Itdb_Mediatype; | } Itdb_Mediatype; | |||
/* Known compound media types which have been observed in iPod databases. | /* Known compound media types which have been observed in iPod databases. | |||
* This list is in no way exhaustive, and these constants are only helpers, | * This list is in no way exhaustive, and these constants are only helpers, | |||
* there's nothing wrong with not using them. | * there's nothing wrong with not using them. | |||
*/ | */ | |||
#define ITDB_MEDIATYPE_VIDEO_PODCAST (ITDB_MEDIATYPE_MOVIE | ITDB_MEDIATYPE _PODCAST) | #define ITDB_MEDIATYPE_VIDEO_PODCAST (ITDB_MEDIATYPE_MOVIE | ITDB_MEDIATYPE _PODCAST) | |||
#define ITDB_MEDIATYPE_MUSIC_TVSHOW (ITDB_MEDIATYPE_MUSICVIDEO | ITDB_MEDIA TYPE_TVSHOW) | #define ITDB_MEDIATYPE_MUSIC_TVSHOW (ITDB_MEDIATYPE_MUSICVIDEO | ITDB_MEDIA TYPE_TVSHOW) | |||
typedef struct _Itdb_Track_Private Itdb_Track_Private; | typedef struct _Itdb_Track_Private Itdb_Track_Private; | |||
/** | /** | |||
skipping to change at line 1624 | skipping to change at line 1625 | |||
without setting the field. | without setting the field. | |||
*/ | */ | |||
gchar *sort_artist; | gchar *sort_artist; | |||
gchar *sort_title; | gchar *sort_title; | |||
gchar *sort_album; | gchar *sort_album; | |||
gchar *sort_albumartist; | gchar *sort_albumartist; | |||
gchar *sort_composer; | gchar *sort_composer; | |||
gchar *sort_tvshow; | gchar *sort_tvshow; | |||
/* end of new fields in libgpod 0.5.0 */ | /* end of new fields in libgpod 0.5.0 */ | |||
guint32 id; | guint32 id; | |||
gint32 size; | guint32 size; | |||
gint32 tracklen; | gint32 tracklen; | |||
gint32 cd_nr; | gint32 cd_nr; | |||
gint32 cds; | gint32 cds; | |||
gint32 track_nr; | gint32 track_nr; | |||
gint32 tracks; | gint32 tracks; | |||
gint32 bitrate; | gint32 bitrate; | |||
guint16 samplerate; | guint16 samplerate; | |||
guint16 samplerate_low; | guint16 samplerate_low; | |||
gint32 year; | gint32 year; | |||
gint32 volume; | gint32 volume; | |||
End of changes. 5 change blocks. | ||||
5 lines changed or deleted | 6 lines changed or added | |||