Lines Matching defs:parentID
66 char parentID[64];
71 get_next_available_id(const char *table, const char *parentID)
78 table, table, parentID);
92 const char *artist, const char *genre, const char *album_art, int64_t *objectID, int64_t *parentID)
109 *parentID = strtoll(base+1, NULL, 16);
111 *parentID = 0;
118 *parentID = get_next_available_id("OBJECTS", rootParent);
133 rootParent, (long long)*parentID, rootParent,
148 int64_t objectID, parentID;
175 //DEBUG DPRINTF(E_DEBUG, L_SCANNER, "Using last date item: %s/%s/%X\n", last_date.name, last_date.parentID, last_date.objectID);
179 insert_container(date_taken, IMAGE_DATE_ID, NULL, "album.photoAlbum", NULL, NULL, NULL, &objectID, &parentID);
180 sprintf(last_date.parentID, IMAGE_DATE_ID"$%llX", (unsigned long long)parentID);
183 //DEBUG DPRINTF(E_DEBUG, L_SCANNER, "Creating cached date item: %s/%s/%X\n", last_date.name, last_date.parentID, last_date.objectID);
189 last_date.parentID, (long long)last_date.objectID, last_date.parentID, refID, class, (long long)detailID, name);
193 insert_container(camera, IMAGE_CAMERA_ID, NULL, "storageFolder", NULL, NULL, NULL, &objectID, &parentID);
194 sprintf(last_cam.parentID, IMAGE_CAMERA_ID"$%llX", (long long)parentID);
202 //DEBUG DPRINTF(E_DEBUG, L_SCANNER, "Using last camdate item: %s/%s/%s/%X\n", camera, last_camdate.name, last_camdate.parentID, last_camdate.objectID);
206 insert_container(date_taken, last_cam.parentID, NULL, "album.photoAlbum", NULL, NULL, NULL, &objectID, &parentID);
207 sprintf(last_camdate.parentID, "%s$%llX", last_cam.parentID, (long long)parentID);
210 //DEBUG DPRINTF(E_DEBUG, L_SCANNER, "Creating cached camdate item: %s/%s/%s/%X\n", camera, last_camdate.name, last_camdate.parentID, last_camdate.objectID);
216 last_camdate.parentID, last_camdate.objectID, last_camdate.parentID, refID, class, (long long)detailID, name);
255 //DEBUG DPRINTF(E_DEBUG, L_SCANNER, "Using last album item: %s/%s/%X\n", last_album.name, last_album.parentID, last_album.objectID);
260 insert_container(album, MUSIC_ALBUM_ID, NULL, "album.musicAlbum", artist, genre, album_art, &objectID, &parentID);
261 sprintf(last_album.parentID, MUSIC_ALBUM_ID"$%llX", (long long)parentID);
263 //DEBUG DPRINTF(E_DEBUG, L_SCANNER, "Creating cached album item: %s/%s/%X\n", last_album.name, last_album.parentID, last_album.objectID);
269 last_album.parentID, last_album.objectID, last_album.parentID, refID, class, (long long)detailID, name);
275 insert_container(artist, MUSIC_ARTIST_ID, NULL, "person.musicArtist", NULL, genre, NULL, &objectID, &parentID);
276 sprintf(last_artist.parentID, MUSIC_ARTIST_ID"$%llX", (long long)parentID);
280 insert_container(_("- All Albums -"), last_artist.parentID, NULL, "album", artist, genre, NULL, &objectID, &parentID);
281 sprintf(last_artistAlbumAll.parentID, "%s$%llX", last_artist.parentID, (long long)parentID);
291 //DEBUG DPRINTF(E_DEBUG, L_SCANNER, "Using last artist/album item: %s/%s/%X\n", last_artist.name, last_artist.parentID, last_artist.objectID);
295 insert_container(album?album:_("Unknown Album"), last_artist.parentID, album?last_album.parentID:NULL,
296 "album.musicAlbum", artist, genre, album_art, &objectID, &parentID);
297 sprintf(last_artistAlbum.parentID, "%s$%llX", last_artist.parentID, (long long)parentID);
300 //DEBUG DPRINTF(E_DEBUG, L_SCANNER, "Creating cached artist/album item: %s/%s/%X\n", last_artist.name, last_artist.parentID, last_artist.objectID);
306 last_artistAlbum.parentID, last_artistAlbum.objectID, last_artistAlbum.parentID, refID, class, (long long)detailID, name);
311 last_artistAlbumAll.parentID, last_artistAlbumAll.objectID, last_artistAlbumAll.parentID, refID, class, (long long)detailID, name);
317 insert_container(genre, MUSIC_GENRE_ID, NULL, "genre.musicGenre", NULL, NULL, NULL, &objectID, &parentID);
318 sprintf(last_genre.parentID, MUSIC_GENRE_ID"$%llX", (long long)parentID);
321 insert_container(_("- All Artists -"), last_genre.parentID, NULL, "person", NULL, genre, NULL, &objectID, &parentID);
322 sprintf(last_genreArtistAll.parentID, "%s$%llX", last_genre.parentID, (long long)parentID);
335 insert_container(artist?artist:_("Unknown Artist"), last_genre.parentID, artist?last_artist.parentID:NULL,
336 "person.musicArtist", NULL, genre, NULL, &objectID, &parentID);
337 sprintf(last_genreArtist.parentID, "%s$%llX", last_genre.parentID, (long long)parentID);
340 //DEBUG DPRINTF(E_DEBUG, L_SCANNER, "Creating cached genre/artist item: %s/%s/%X\n", last_genreArtist.name, last_genreArtist.parentID, last_genreArtist.objectID);
346 last_genreArtist.parentID, last_genreArtist.objectID, last_genreArtist.parentID, refID, class, (long long)detailID, name);
351 last_genreArtistAll.parentID, last_genreArtistAll.objectID, last_genreArtistAll.parentID, refID, class, (long long)detailID, name);
389 insert_directory(const char *name, const char *path, const char *base, const char *parentID, int objectID)
404 snprintf(refID, sizeof(refID), "%s%s$%X", BROWSEDIR_ID, parentID, objectID);
405 snprintf(id_buf, sizeof(id_buf), "%s%s$%X", base, parentID, objectID);
406 snprintf(parent_buf, sizeof(parent_buf), "%s%s", base, parentID);
445 base, parentID, objectID, base, parentID, detailID, class, name);
451 insert_file(char *name, const char *path, const char *parentID, int object, media_types types)
496 sprintf(objectID, "%s%s$%X", BROWSEDIR_ID, parentID, object);
502 objectID, BROWSEDIR_ID, parentID, class, detailID, name);
504 if( *parentID )
507 typedir_parentID = strdup(parentID);
521 base, parentID, object, base, parentID, objectID, class, detailID, name);