2011-03-31 12:05:41 -04:00
|
|
|
%language=ANSI-C
|
|
|
|
%readonly-tables
|
|
|
|
%enum
|
|
|
|
%switch=1
|
|
|
|
%compare-lengths
|
|
|
|
%define hash-function-name daap_query_field_hash
|
|
|
|
%define lookup-function-name daap_query_field_lookup
|
|
|
|
%define slot-name dmap_field
|
|
|
|
%struct-type
|
|
|
|
%omit-struct-type
|
|
|
|
struct dmap_query_field_map;
|
|
|
|
%%
|
2011-03-28 13:06:48 -04:00
|
|
|
"dmap.itemname", "f.title", 0
|
|
|
|
"dmap.itemid", "f.id", 1
|
2013-11-21 17:33:03 -05:00
|
|
|
"dmap.containeritemid", "f.id", 1
|
2018-06-17 17:11:05 -04:00
|
|
|
"dmap.persistentid", "f.id", 1
|
2011-03-28 13:06:48 -04:00
|
|
|
"daap.songalbum", "f.album", 0
|
|
|
|
"daap.songalbumid", "f.songalbumid", 1
|
2013-07-22 16:30:55 -04:00
|
|
|
"daap.songartist", "f.album_artist", 0
|
2013-12-18 13:26:27 -05:00
|
|
|
"daap.songartistid", "f.songartistid", 1
|
2011-03-28 13:06:48 -04:00
|
|
|
"daap.songalbumartist", "f.album_artist", 0
|
|
|
|
"daap.songbitrate", "f.bitrate", 1
|
|
|
|
"daap.songcomment", "f.comment", 0
|
|
|
|
"daap.songcompilation", "f.compilation", 1
|
|
|
|
"daap.songcomposer", "f.composer", 0
|
|
|
|
"daap.songdatakind", "f.data_kind", 1
|
|
|
|
"daap.songdataurl", "f.url", 0
|
|
|
|
"daap.songdateadded", "f.time_added", 1
|
|
|
|
"daap.songdatemodified", "f.time_modified", 1
|
2018-08-18 16:56:27 -04:00
|
|
|
"daap.songlastskipdate", "f.time_skipped", 1
|
2016-02-12 18:27:22 -05:00
|
|
|
"daap.songdatereleased", "f.date_released", 1
|
2011-03-28 13:06:48 -04:00
|
|
|
"daap.songdescription", "f.description", 0
|
|
|
|
"daap.songdisccount", "f.total_discs", 1
|
|
|
|
"daap.songdiscnumber", "f.disc", 1
|
|
|
|
"daap.songformat", "f.type", 0
|
|
|
|
"daap.songgenre", "f.genre", 0
|
|
|
|
"daap.songsamplerate", "f.samplerate", 1
|
|
|
|
"daap.songsize", "f.file_size", 1
|
|
|
|
"daap.songstoptime", "f.song_length", 1
|
|
|
|
"daap.songtime", "f.song_length", 1
|
|
|
|
"daap.songtrackcount", "f.total_tracks", 1
|
|
|
|
"daap.songtracknumber", "f.track", 1
|
2013-10-21 16:54:45 -04:00
|
|
|
"daap.songuserplaycount", "f.play_count", 1
|
2018-08-18 16:56:27 -04:00
|
|
|
"daap.songuserskipcount", "f.skip_count", 1
|
2011-03-28 13:06:48 -04:00
|
|
|
"daap.songyear", "f.year", 1
|
|
|
|
"com.apple.itunes.mediakind", "f.media_kind", 1
|
2012-12-02 04:25:48 -05:00
|
|
|
"com.apple.itunes.extended-media-kind", "f.media_kind", 1
|