2ba572dc8bbe18b3398dcf17205dafdd52ab396a
braney
  Sat May 24 10:01:21 2014 -0700
updates to hgHubConnect to interface to make it less confusing.   Nowconnection and disconnection put you on the gateway page.

diff --git src/hg/inc/hubConnect.h src/hg/inc/hubConnect.h
index 20acfd4..2d9e7cd 100644
--- src/hg/inc/hubConnect.h
+++ src/hg/inc/hubConnect.h
@@ -19,30 +19,39 @@
 #define hubStatusTableConfVariable    "hub.statusTableName"
 /* the name of the hg.conf variable to use something other than the default */
 
 #define hgHubConnectTimeToCheck "hub.timeToCheck"
 /* the number of seconds to wait before checking the hub again */
 
 #define hgHubDataText      "hubUrl"
 /* name of cgi variable containing new hub name */
 
 #define hubTrackPrefix "hub_"
 /* The names of all hub tracks begin with this.  Use in cart. */
 
 #define hgHubSearchTerms      "hubSearchTerms"
 /* name of cart/cgi variable containing the current search terms */
 
+#define hgHub             "hgHub_"  /* prefix for all control variables */
+#define hgHubDo            hgHub   "do_"    /* prefix for all commands */
+#define hgHubDoClear       hgHubDo "clear"
+#define hgHubDoReset       hgHubDo "reset"
+#define hgHubDoSearch      hgHubDo "search"
+#define hgHubDoDeleteSearch      hgHubDo "deleteSearch"
+#define hgHubDoDisconnect  hgHubDo "disconnect"
+#define hgHubDoConnect     hgHubDo "connect"
+
 boolean isHubTrack(char *trackName);
 /* Return TRUE if it's a hub track. */
 
 struct hubConnectStatus
 /* Basic status in hubStatus.  Note it is *not* the same as the
  * hubStatus table, that has a bunch of extra fields to help 
  * keep track of whether the hub is alive. */
     {
     struct hubConnectStatus *next;
     unsigned id;	/* Hub ID */
     char *hubUrl;	/* URL to hub.ra file. */
     char *errorMessage;	/* If non-empty hub has an error and this describes it. */
     struct trackHub *trackHub; /* pointer to structure that describes hub */
     unsigned  status;   /* 1 if private */
     };