2c1edfc333aea4ff30046df5a89f9a150ecf5c78
kent
  Thu Oct 28 14:51:11 2010 -0700
Adding trackHubAddNamePrefix to help give hubs their own name space within cart.
diff --git src/hg/inc/trackHub.h src/hg/inc/trackHub.h
index 104d5b0..0dcc352 100644
--- src/hg/inc/trackHub.h
+++ src/hg/inc/trackHub.h
@@ -44,33 +44,39 @@
 
 void trackHubClose(struct trackHub **pHub);
 /* Close up and free resources from hub. */
 
 struct trackHub *trackHubOpen(char *url);
 /* Open up a track hub from url.  Reads and parses hub.ra and the genomesFile. */
 
 struct trackHubGenome *trackHubFindGenome(struct trackHub *hub, char *genomeName);
 /* Return trackHubGenome of given name associated with hub.  Return NULL if no
  * such genome. */
 
 struct trackDb *trackHubTracksForGenome(struct trackHub *hub, struct trackHubGenome *genome);
 /* Get list of tracks associated with genome.  Check that it only is composed of legal
  * types.  Do a few other quick checks to catch errors early. */
 
+void trackHubAddNamePrefix(char *hubName, struct trackDb *tdbList);
+/* For a hub named "xyz" add the prefix "hub_xyz_" to each track and parent field. 
+ * This is useful to the genome browser which directly puts tracks into it's
+ * user settings name space.... */
+
 char *trackHubSetting(struct trackHub *hub, char *name);
 /* Return setting if it exists, otherwise NULL. */
 
 char *trackHubRequiredSetting(struct trackHub *hub, char *name);
 /* Return named setting.  Abort with error message if not found. */
 
 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. */
 
 void trackHubGenomeFree(struct trackHubGenome **pGenome);
 /* Free up genome info. */
 
 void trackHubGenomeFreeList(struct trackHubGenome **pList);
 /* Free a list of dynamically allocated trackHubGenome's */
+
 #endif /* TRACKHUB_H */