src/hg/hgTables/bigWig.c 1.5

1.5 2009/05/20 20:59:55 mikep
Libified findTdbForTable, findTypeForTable, trackIsType, hIsBigBed from hgTables so that other code can easily determine if a track is a bigBed.
Index: src/hg/hgTables/bigWig.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/bigWig.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/hg/hgTables/bigWig.c	17 Mar 2009 17:24:50 -0000	1.4
+++ src/hg/hgTables/bigWig.c	20 May 2009 20:59:55 -0000	1.5
@@ -24,9 +24,9 @@
 
 boolean isBigWig(char *table)
 /* Return TRUE if table corresponds to a bigWig file. */
 {
-return trackIsType(table, "bigWig");
+return trackIsType(database, table, curTrack, "bigWig", ctLookupName);
 }
 
 char *bigWigFileName(char *table, struct sqlConnection *conn)
 /* Return file name associated with bigWig.  This handles differences whether it's
@@ -34,9 +34,9 @@
 {
 char *fileName = NULL;
 if (isCustomTrack(table))
     {
-    struct customTrack *ct = lookupCt(table);
+    struct customTrack *ct = ctLookupName(table);
     if (ct != NULL)
         fileName = cloneString(trackDbSetting(ct->tdb, "dataUrl"));
     }
 else