31822fe501d11cd0e9409d31d322c37aa63d6341 braney Fri Feb 23 14:44:57 2018 -0800 changes in response to code review #20986 diff --git src/hg/inc/trackHub.h src/hg/inc/trackHub.h index dbeba5c..cd4e4a1 100644 --- src/hg/inc/trackHub.h +++ src/hg/inc/trackHub.h @@ -11,30 +11,33 @@ * How you use the routines here most commonly is as so: * struct trackHub *hub = trackHubOpen(hubRaUrl); * struct trackHubGenome *hubGenome = trackHubFindGenome(hub, "hg19"); * struct trackDb *tdbList = trackHubTracksForGenome(hub, hubGenome); * // do something with tdbList * trackHubClose(&hub); * Note that the tdbList returned does not have the parent/subtrack pointers set. * It is just a simple list of tracks, not a tree. */ #ifndef TRACKHUB_H #define TRACKHUB_H #include "dystring.h" +#define MAX_HUB_TRACKDB_FILE_SIZE 64*1024*1024 +#define MAX_HUB_GROUP_FILE_SIZE 16*1024*1024 +#define MAX_HUB_GENOME_FILE_SIZE 64*1024*1024 struct trackHub /* A track hub. */ { struct trackHub *next; char *url; /* URL of hub.ra file. */ struct trackHubGenome *genomeList; /* List of associated genomes. */ struct hash *genomeHash; /* Hash of genomeList keyed by genome name. */ struct hash *settings; /* Settings from hub.ra file. */ /* Required settings picked out for convenience. All allocated in settings hash */ char *shortLabel; /* Hub short label. Not allocated here. */ char *longLabel; /* Hub long label. Not allocated here. */ char *genomesFile; /* URL to genome.ra file. Not allocated here. */