dc4dc74eb9e0b860f56347141d6d3e1ae76bd9ad
braney
  Fri May 30 15:09:18 2014 -0700
clean up some code for opening trackHubs, removed hgHubConnectCgiDestUrlcart variable, added ability to tell CGI's to default to a particular
database supported by a hub

diff --git src/hg/inc/trackHub.h src/hg/inc/trackHub.h
index 32263fb..8876584 100644
--- src/hg/inc/trackHub.h
+++ src/hg/inc/trackHub.h
@@ -24,30 +24,31 @@
 
 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. */
+    char *defaultDb;    /* the default database  */
 
     char *name;	/* Symbolic name of hub in cart, etc.  From trackHubOpen hubName parameter. */
 
     char *descriptionUrl;  /* URL to description file */
     };
 
 struct trackHubGenome
 /* A genome serviced within a track hub. */
     {
     struct trackHubGenome *next;
     char *name;	/* Something like hg18 or mm9, a UCSC assembly database name. */
     char *trackDbFile;	/* The base trackDb.ra file. */
     struct hash *settingsHash;	/* Settings from hub.ra file. */
     char *twoBitPath;  /* URL to twoBit.  If not null, this is an assmebly hub*/
     struct twoBitFile *tbf;  /* open handle to two bit file */