3bbad1670f2e44ca41d06c657b8f8636abfce4fb hiram Wed Mar 27 14:47:11 2019 -0700 provide list chrom function for hubs refs #18869 diff --git src/hg/hubApi/dataApi.h src/hg/hubApi/dataApi.h index 6c6ccf4..a27ed43 100644 --- src/hg/hubApi/dataApi.h +++ src/hg/hubApi/dataApi.h @@ -57,28 +57,37 @@ struct jsonWrite *apiStartOutput(); /* begin json output with standard header information for all requests */ int tableColumns(struct sqlConnection *conn, struct jsonWrite *jw, char *table, char ***nameReturn, char ***typeReturn); /* return the column names, and their MySQL data type, for the given table * return number of columns (aka 'fields') */ struct trackHub *errCatchTrackHubOpen(char *hubUrl); /* use errCatch around a trackHub open in case it fails */ struct trackDb *obtainTdb(struct trackHubGenome *genome, char *db); /* return a full trackDb fiven the hub genome pointer, or ucsc database name */ +struct trackDb *findTrackDb(char *track, struct trackDb *tdb); +/* search tdb structure for specific track, recursion on subtracks */ + +struct bbiFile *bigFileOpen(char *trackType, char *bigDataUrl); +/* open bigDataUrl for correct trackType and error catch if failure */ + +int chromInfoCmp(const void *va, const void *vb); +/* Compare to sort based on size */ + /* ######################################################################### */ /* functions in getData.c */ void apiGetData(char *words[MAX_PATH_INFO]); /* 'getData' function, words[1] is the subCommand */ /* ######################################################################### */ /* functions in list.c */ void apiList(char *words[MAX_PATH_INFO]); /* 'list' function words[1] is the subCommand */ #endif /* DATAAPH_H */