824181a062ed154ffb0a1f02fa81db23f8902bed kent Tue Dec 7 17:23:13 2010 -0800 Checking in a skeletal hub connection page. diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c new file mode 100644 index 0000000..ba302b1 --- /dev/null +++ src/hg/hgHubConnect/hgHubConnect.c @@ -0,0 +1,101 @@ +/* hgHubConnect - the CGI web-based program to select track data hubs to connect with. */ + +#include "common.h" +#include "hash.h" +#include "linefile.h" +#include "errabort.h" +#include "errCatch.h" +#include "hCommon.h" +#include "dystring.h" +#include "jksql.h" +#include "cheapcgi.h" +#include "htmshell.h" +#include "hdb.h" +#include "hui.h" +#include "cart.h" +#include "dbDb.h" +#include "web.h" +#include "trackHub.h" +#include "hubConnect.h" + +static char const rcsid[] = "$Id: hgPcr.c,v 1.29 2009/09/23 18:42:17 angie Exp $"; + +struct cart *cart; /* The user's ui state. */ +struct hash *oldVars = NULL; + +static char *pageTitle = "UCSC Track Hub Connect"; + + +void hgHubConnect() +/* Put up the list of hubs and other controls for the page. */ +{ +printf("
\n"); +hDisconnectCentral(&conn); +} + +void doMiddle(struct cart *theCart) +/* Write header and body of html page. */ +{ +cart = theCart; +setUdcCacheDir(); +cartWebStart(cart, NULL, pageTitle); +hgHubConnect(); +cartWebEnd(); +} + +char *excludeVars[] = {"Submit", "submit", "hc_one_url", NULL}; + +int main(int argc, char *argv[]) +/* Process command line. */ +{ +oldVars = hashNew(10); +cgiSpoof(&argc, argv); +cartEmptyShell(doMiddle, hUserCookie(), excludeVars, oldVars); +return 0; +} +