2770a53d1e8e0e5773020965d19c2499439481ca chmalee Tue Feb 7 13:33:08 2023 -0800 Make hubApi return data from multiple tracks at once. Get trackDb tableBrowser setting working correctly in the api diff --git src/hg/inc/cartTrackDb.h src/hg/inc/cartTrackDb.h index 0cd6d22..0549261 100644 --- src/hg/inc/cartTrackDb.h +++ src/hg/inc/cartTrackDb.h @@ -1,23 +1,27 @@ /* cartTrackDb - Combine custom, hub & sql trackDb's to get unified groups/tracks/tables */ #include "cart.h" #include "trackDb.h" #include "grp.h" void cartTrackDbInit(struct cart *cart, struct trackDb **retFullTrackList, struct grp **retFullGroupList, boolean useAccessControl); /* Get lists of all tracks and of groups that actually have tracks in them. * If useAccessControl, exclude tracks with 'tableBrowser off' nor tables listed * in the table tableAccessControl. */ +void cartTrackDbInitForApi(struct cart *cart, char *db, struct trackDb **retFullTrackList, + struct grp **retFullGroupList, boolean useAccessControl); +/* Similar to cartTrackDbInit, but allow cart to be NULL */ + boolean cartTrackDbIsAccessDenied(char *db, char *table); /* Return TRUE if useAccessControl=TRUE was passed to cartTrackDbInit and * if access to table is denied (at least on this host) by 'tableBrowser off' * or by the tableAccessControl table. */ boolean cartTrackDbIsNoGenome(char *db, char *table); /* Return TRUE if range queries, but not genome-queries, are permitted for this table. */ struct slName *cartTrackDbTablesForTrack(char *db, struct trackDb *track, boolean useJoiner); /* Return list of all tables associated with track. If useJoiner, the result can include * non-positional tables that are related to track by all.joiner. */