itdb.h | itdb.h | |||
---|---|---|---|---|
skipping to change at line 645 | skipping to change at line 645 | |||
ITDB_SPLFIELD_DATE_ADDED = 0x10, | ITDB_SPLFIELD_DATE_ADDED = 0x10, | |||
ITDB_SPLFIELD_COMPOSER = 0x12, | ITDB_SPLFIELD_COMPOSER = 0x12, | |||
ITDB_SPLFIELD_PLAYCOUNT = 0x16, | ITDB_SPLFIELD_PLAYCOUNT = 0x16, | |||
ITDB_SPLFIELD_LAST_PLAYED = 0x17, | ITDB_SPLFIELD_LAST_PLAYED = 0x17, | |||
ITDB_SPLFIELD_DISC_NUMBER = 0x18, | ITDB_SPLFIELD_DISC_NUMBER = 0x18, | |||
ITDB_SPLFIELD_RATING = 0x19, | ITDB_SPLFIELD_RATING = 0x19, | |||
ITDB_SPLFIELD_COMPILATION = 0x1f, | ITDB_SPLFIELD_COMPILATION = 0x1f, | |||
ITDB_SPLFIELD_BPM = 0x23, | ITDB_SPLFIELD_BPM = 0x23, | |||
ITDB_SPLFIELD_GROUPING = 0x27, | ITDB_SPLFIELD_GROUPING = 0x27, | |||
ITDB_SPLFIELD_PLAYLIST = 0x28, | ITDB_SPLFIELD_PLAYLIST = 0x28, | |||
ITDB_SPLFIELD_PURCHASE = 0x29, | ||||
ITDB_SPLFIELD_DESCRIPTION = 0x36, | ||||
ITDB_SPLFIELD_CATEGORY = 0x37, | ||||
ITDB_SPLFIELD_PODCAST = 0x39, | ||||
ITDB_SPLFIELD_VIDEO_KIND = 0x3c, | ITDB_SPLFIELD_VIDEO_KIND = 0x3c, | |||
ITDB_SPLFIELD_TVSHOW = 0x3e, | ITDB_SPLFIELD_TVSHOW = 0x3e, | |||
ITDB_SPLFIELD_SEASON_NR = 0x3f, | ITDB_SPLFIELD_SEASON_NR = 0x3f, | |||
ITDB_SPLFIELD_SKIPCOUNT = 0x44, | ITDB_SPLFIELD_SKIPCOUNT = 0x44, | |||
ITDB_SPLFIELD_LAST_SKIPPED = 0x45, | ITDB_SPLFIELD_LAST_SKIPPED = 0x45, | |||
ITDB_SPLFIELD_ALBUMARTIST = 0x47 | ITDB_SPLFIELD_ALBUMARTIST = 0x47, | |||
ITDB_SPLFIELD_SORT_SONG_NAME = 0x4e, | ||||
ITDB_SPLFIELD_SORT_ALBUM = 0x4f, | ||||
ITDB_SPLFIELD_SORT_ARTIST = 0x50, | ||||
ITDB_SPLFIELD_SORT_ALBUMARTIST = 0x51, | ||||
ITDB_SPLFIELD_SORT_COMPOSER = 0x52, | ||||
ITDB_SPLFIELD_SORT_TVSHOW = 0x53, | ||||
ITDB_SPLFIELD_ALBUM_RATING = 0x5a | ||||
} ItdbSPLField; | } ItdbSPLField; | |||
/** | /** | |||
* Itdb_SPLPref: | * Itdb_SPLPref: | |||
* @liveupdate: Live Updating | * @liveupdate: Live Updating | |||
* @checkrules: Match this number of rules. If set to 0, ignore ru les. | * @checkrules: Match this number of rules. If set to 0, ignore ru les. | |||
* @checklimits: Limit to this number of @limittype. If 0, no limit s. | * @checklimits: Limit to this number of @limittype. If 0, no limit s. | |||
* @limittype: an #ItdbLimitType | * @limittype: an #ItdbLimitType | |||
* @limitsort: an #ItdbLimitSort | * @limitsort: an #ItdbLimitSort | |||
* @limitvalue: The value typed next to "Limit type" | * @limitvalue: The value typed next to "Limit type" | |||
skipping to change at line 1119 | skipping to change at line 1130 | |||
ItdbUserDataDuplicateFunc userdata_duplicate; | ItdbUserDataDuplicateFunc userdata_duplicate; | |||
ItdbUserDataDestroyFunc userdata_destroy; | ItdbUserDataDestroyFunc userdata_destroy; | |||
}; | }; | |||
/** | /** | |||
* ItdbPlaylistSortOrder: | * ItdbPlaylistSortOrder: | |||
* @ITDB_PSO_MANUAL: Sort by playlist order (manual sort) | * @ITDB_PSO_MANUAL: Sort by playlist order (manual sort) | |||
* @ITDB_PSO_TITLE: Sort by track title | * @ITDB_PSO_TITLE: Sort by track title | |||
* @ITDB_PSO_ALBUM: Sort by album | * @ITDB_PSO_ALBUM: Sort by album | |||
* @ITDB_PSO_ARTIST: Sort by artist | * @ITDB_PSO_ARTIST: Sort by artist | |||
* @ITDB_PSO_BIRATE: Sort by bitrate | * @ITDB_PSO_BITRATE: Sort by bitrate | |||
* @ITDB_PSO_GENRE: Sort by genre | * @ITDB_PSO_GENRE: Sort by genre | |||
* @ITDB_PSO_FILETYPE: Sort by filetype | * @ITDB_PSO_FILETYPE: Sort by filetype | |||
* @ITDB_PSO_TIME_MODIFIED: Sort by date modified | * @ITDB_PSO_TIME_MODIFIED: Sort by date modified | |||
* @ITDB_PSO_TRACK_NR: Sort by track number | * @ITDB_PSO_TRACK_NR: Sort by track number | |||
* @ITDB_PSO_SIZE: Sort by track size | * @ITDB_PSO_SIZE: Sort by track size | |||
* @ITDB_PSO_TIME: Sort by track time | * @ITDB_PSO_TIME: Sort by track time | |||
* @ITDB_PSO_YEAR: Sort by year | * @ITDB_PSO_YEAR: Sort by year | |||
* @ITDB_PSO_SAMPLERATE: Sort by samplerate | * @ITDB_PSO_SAMPLERATE: Sort by samplerate | |||
* @ITDB_PSO_COMMENT: Sort by comments | * @ITDB_PSO_COMMENT: Sort by comments | |||
* @ITDB_PSO_TIME_ADDED: Sort by date added | * @ITDB_PSO_TIME_ADDED: Sort by date added | |||
skipping to change at line 1153 | skipping to change at line 1164 | |||
* | * | |||
* Since: 0.1.3 | * Since: 0.1.3 | |||
*/ | */ | |||
typedef enum | typedef enum | |||
{ | { | |||
ITDB_PSO_MANUAL = 1, | ITDB_PSO_MANUAL = 1, | |||
/* ITDB_PSO_UNKNOWN = 2, */ | /* ITDB_PSO_UNKNOWN = 2, */ | |||
ITDB_PSO_TITLE = 3, | ITDB_PSO_TITLE = 3, | |||
ITDB_PSO_ALBUM = 4, | ITDB_PSO_ALBUM = 4, | |||
ITDB_PSO_ARTIST = 5, | ITDB_PSO_ARTIST = 5, | |||
ITDB_PSO_BIRATE = 6, | ITDB_PSO_BITRATE = 6, | |||
ITDB_PSO_GENRE = 7, | ITDB_PSO_GENRE = 7, | |||
ITDB_PSO_FILETYPE = 8, | ITDB_PSO_FILETYPE = 8, | |||
ITDB_PSO_TIME_MODIFIED = 9, | ITDB_PSO_TIME_MODIFIED = 9, | |||
ITDB_PSO_TRACK_NR = 10, | ITDB_PSO_TRACK_NR = 10, | |||
ITDB_PSO_SIZE = 11, | ITDB_PSO_SIZE = 11, | |||
ITDB_PSO_TIME = 12, /* ? */ | ITDB_PSO_TIME = 12, /* ? */ | |||
ITDB_PSO_YEAR = 13, | ITDB_PSO_YEAR = 13, | |||
ITDB_PSO_SAMPLERATE = 14, | ITDB_PSO_SAMPLERATE = 14, | |||
ITDB_PSO_COMMENT = 15, | ITDB_PSO_COMMENT = 15, | |||
ITDB_PSO_TIME_ADDED = 16, | ITDB_PSO_TIME_ADDED = 16, | |||
skipping to change at line 1177 | skipping to change at line 1188 | |||
ITDB_PSO_PLAYCOUNT = 20, | ITDB_PSO_PLAYCOUNT = 20, | |||
ITDB_PSO_TIME_PLAYED = 21, | ITDB_PSO_TIME_PLAYED = 21, | |||
ITDB_PSO_CD_NR = 22, | ITDB_PSO_CD_NR = 22, | |||
ITDB_PSO_RATING = 23, | ITDB_PSO_RATING = 23, | |||
ITDB_PSO_RELEASE_DATE = 24, /* used by podcasts */ | ITDB_PSO_RELEASE_DATE = 24, /* used by podcasts */ | |||
ITDB_PSO_BPM = 25, | ITDB_PSO_BPM = 25, | |||
ITDB_PSO_GROUPING = 26, | ITDB_PSO_GROUPING = 26, | |||
ITDB_PSO_CATEGORY = 27, | ITDB_PSO_CATEGORY = 27, | |||
ITDB_PSO_DESCRIPTION = 28 | ITDB_PSO_DESCRIPTION = 28 | |||
} ItdbPlaylistSortOrder; | } ItdbPlaylistSortOrder; | |||
/* libgpod 0.7.90 and earlier had a typo in ITDB_PSO_BITRATE, workaround | ||||
* that typo and avoid breaking the API (even if I doubt there are users | ||||
* of this) | ||||
*/ | ||||
#define ITDB_PSO_BIRATE ITDB_PSO_BITRATE | ||||
/** | /** | |||
* Itdb_Mediatype: | * Itdb_Mediatype: | |||
* @ITDB_MEDIATYPE_AUDIO: Audio files | * @ITDB_MEDIATYPE_AUDIO: Audio files | |||
* @ITDB_MEDIATYPE_MOVIE: Movies | * @ITDB_MEDIATYPE_MOVIE: Movies | |||
* @ITDB_MEDIATYPE_PODCAST: Podcasts | * @ITDB_MEDIATYPE_PODCAST: Podcasts | |||
* @ITDB_MEDIATYPE_AUDIOBOOK: Audio books | * @ITDB_MEDIATYPE_AUDIOBOOK: Audio books | |||
* @ITDB_MEDIATYPE_MUSICVIDEO: Music videos | * @ITDB_MEDIATYPE_MUSICVIDEO: Music videos | |||
* @ITDB_MEDIATYPE_TVSHOW: TV Shows | * @ITDB_MEDIATYPE_TVSHOW: TV Shows | |||
* | * | |||
* Mediatype definitions | * Mediatype definitions | |||
* | * | |||
* The mediatype is used to determine what menu a track appears under. For | * The mediatype is used to determine what menu a track appears under. For | |||
* example, setting the mediatype to #ITDB_MEDIATYPE_PODCAST makes the trac k | * example, setting the mediatype to #ITDB_MEDIATYPE_PODCAST makes the trac k | |||
* appear on the Podcast menu. | * appear on the Podcast menu. | |||
* | * | |||
* Since: 0.5.0 | * Since: 0.5.0 | |||
*/ | */ | |||
typedef enum | typedef enum | |||
{ | { | |||
ITDB_MEDIATYPE_AUDIO = 0x0001, | ITDB_MEDIATYPE_AUDIO = 0x000001, | |||
ITDB_MEDIATYPE_MOVIE = 0x0002, | ITDB_MEDIATYPE_MOVIE = 0x000002, | |||
ITDB_MEDIATYPE_PODCAST = 0x0004, | ITDB_MEDIATYPE_PODCAST = 0x000004, | |||
ITDB_MEDIATYPE_AUDIOBOOK = 0x0008, | ITDB_MEDIATYPE_AUDIOBOOK = 0x000008, | |||
ITDB_MEDIATYPE_MUSICVIDEO = 0x0020, | ITDB_MEDIATYPE_MUSICVIDEO = 0x000020, | |||
ITDB_MEDIATYPE_TVSHOW = 0x0040, | ITDB_MEDIATYPE_TVSHOW = 0x000040, | |||
ITDB_MEDIATYPE_RINGTONE = 0x4000, | ITDB_MEDIATYPE_RINGTONE = 0x004000, | |||
ITDB_MEDIATYPE_RENTAL = 0x8000, | ITDB_MEDIATYPE_RENTAL = 0x008000, | |||
ITDB_MEDIATYPE_ITUNES_EXTRA = 0x010000, | ||||
ITDB_MEDIATYPE_MEMO = 0x100000, | ||||
ITDB_MEDIATYPE_ITUNES_U = 0x200000, | ||||
} Itdb_Mediatype; | } Itdb_Mediatype; | |||
typedef struct _Itdb_Track_Private Itdb_Track_Private; | typedef struct _Itdb_Track_Private Itdb_Track_Private; | |||
/** | /** | |||
* Itdb_Track: | * Itdb_Track: | |||
* @itdb: A pointer to the #Itdb_iTunesDB (for conven ience) | * @itdb: A pointer to the #Itdb_iTunesDB (for conven ience) | |||
* @title: The title of the track in UTF8 | * @title: The title of the track in UTF8 | |||
* @ipod_path: The file path on the iPod. Directories are | * @ipod_path: The file path on the iPod. Directories are | |||
* separated with ":" instead of "/". The pat h is | * separated with ":" instead of "/". The pat h is | |||
* relative to the iPod mountpoint. | * relative to the iPod mountpoint. | |||
End of changes. 6 change blocks. | ||||
11 lines changed or deleted | 30 lines changed or added | |||