ae91fde2bdbbb1b057c10afca6e331df83971c5f kent Sat Jan 8 21:03:32 2011 -0800 Adding trackDbPolishAfterLinkup routine that bundles together a number of other calls, and exposing it for use by data hub trackDb list makers. diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h index 1a7defe..7390136 100644 --- src/hg/inc/hdb.h +++ src/hg/inc/hdb.h @@ -408,30 +408,34 @@ /* Compare to sort based on order key */ char *hDbDbNibPath(char *database); /* return nibPath from dbDb for database */ struct sqlConnection *hMaybeConnectArchiveCentral(void); /* Connect to central database for archives. * Free this up with hDisconnectCentralArchive(). */ boolean hIsPrivateHost(void); /* Return TRUE if this is running on private web-server. */ boolean hTrackOnChrom(struct trackDb *tdb, char *chrom); /* Return TRUE if track exists on this chromosome. */ +struct trackDb *trackDbPolishAfterLinkup(struct trackDb *tdbList, char *db); +/* Do various massaging that can only be done after parent/child + * relationships are established. */ + struct trackDb *hTrackDb(char *db); /* Load tracks associated with current db. * Supertracks are loaded as a trackDb, but are not in the returned list, * but are accessible via the parent pointers of the member tracks. Also, * the supertrack trackDb subtrack fields are not set here (would be * incompatible with the returned list) * Returns list sorted by priority * NOTE: this result is cached, do not free it ! */ struct trackDb *tdbForTrack(char *db, char *track,struct trackDb **tdbList); /* Load trackDb object for a track. If track is composite, its subtracks * will also be loaded and inheritance will be handled; if track is a * subtrack then inheritance will be handled. (Unless a subtrack has * "noInherit on"...) This will die if the current database does not have