+ if(n < config->collection.n)
+ return &config->collection.s[n];
+ else
+ return 0;
+}
+
+const char *find_track_root(const char *track) {
+ const struct collection *c = find_track_collection(track);
+ if(c)
+ return c->root;
+ error(0, "found track in no collection '%s'", track);
+ return 0;