e66fc3455af36e94cb806c92f514e906dda721b5 braney Thu Dec 1 09:44:18 2011 -0800 fiddle a bit with the hg.conf variables to change hubPublc and hubStatus (#6162) diff --git src/hg/inc/hubConnect.h src/hg/inc/hubConnect.h index 29e591f..6eb5ac1 100644 --- src/hg/inc/hubConnect.h +++ src/hg/inc/hubConnect.h @@ -1,35 +1,43 @@ /* hubConnect - stuff to manage connections to track hubs. Most of this is mediated through - * the hubConnect table in the hgCentral database. Here there are routines to translate between + * the hubStatus table in the hgcentral database. Here there are routines to translate between * hub symbolic names and hub URLs, to see if a hub is up or down or sideways (up but badly - * formatted) etc. Note that there is no C structure corresponding to a row in the hubConnect + * formatted) etc. Note that there is no C structure corresponding to a row in the hubStatus * table by design. We just want field-by-field access to this. */ #ifndef HUBCONNECT_H #define HUBCONNECT_H #define defaultHubPublicTableName "hubPublic" /* Name of our table with list of public hubs. read only */ + +#define hubPublicTableConfVariable "hub.publicTableName" +/* the name of the hg.conf variable to use something other than the default */ + #define defaultHubStatusTableName "hubStatus" /* Name of table that maintains status of hubs read/write. */ +#define hubStatusTableConfVariable "hub.statusTableName" +/* the name of the hg.conf variable to use something other than the default */ + #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. */ + 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 */ };