882be7eea9ec10c09a9ac1fc86dfb24c07eabafb braney Thu Feb 28 10:06:39 2013 -0800 move hasProtocol() function from common.c to net.c (code review #10278) diff --git src/hg/lib/trackHub.c src/hg/lib/trackHub.c index d106160..ec1f5a8 100644 --- src/hg/lib/trackHub.c +++ src/hg/lib/trackHub.c @@ -22,30 +22,31 @@ #include "udc.h" #include "ra.h" #include "filePath.h" #include "htmlPage.h" #include "trackDb.h" #include "trackHub.h" #include "errCatch.h" #include "hgBam.h" #include "bigWig.h" #include "bigBed.h" #include "hdb.h" #include "chromInfo.h" #include "grp.h" #include "twoBit.h" #include "dbDb.h" +#include "net.h" static struct hash *hubCladeHash; // mapping of clade name to hub pointer static struct hash *hubAssemblyHash; // mapping of assembly name to genome struct static struct hash *hubOrgHash; // mapping from organism name to hub pointer struct trackHub *globalAssemblyHubList; // list of trackHubs in the user's cart char *trackHubRelativeUrl(char *hubUrl, char *path) /* Return full path (in URL form if it's a remote hub) given * path possibly relative to hubUrl. Do a freeMem of result * when done. */ { /* If path itself is a URL then just return a copy of it. */ if (hasProtocol(path)) return cloneString(path);