b4953bb3495c56cccbaa88f7ac2c83c1c7dacd66
kent
  Tue Dec 7 10:59:36 2010 -0800
Adding hubConnect module to help manage list of hubs that are available.
diff --git src/hg/lib/hubConnect.c src/hg/lib/hubConnect.c
new file mode 100644
index 0000000..d165d72
--- /dev/null
+++ src/hg/lib/hubConnect.c
@@ -0,0 +1,24 @@
+/* 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
+ * hub symbolic names and hub URLs,  to see if a hub is up or down or sideways (up but badly
+ * formatted) etc. */
+
+#include "common.h"
+#include "linefile.h"
+#include "hash.h"
+#include "jksql.h"
+#include "hdb.h"
+#include "trackHub.h"
+#include "hubConnect.h"
+
+
+
+boolean hubConnectTableExists()
+/* Return TRUE if the hubConnect table exists. */
+{
+struct sqlConnection *conn = hConnectCentral();
+boolean exists = sqlTableExists(conn, hubConnectTableName);
+hDisconnectCentral(&conn);
+return exists;
+}
+