src/hg/inc/trackDb.h 1.57
1.57 2010/04/30 00:24:27 tdreszer
Added a couple of functions to determine the viewName for a view level track or a subtrack
Index: src/hg/inc/trackDb.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/trackDb.h,v
retrieving revision 1.56
retrieving revision 1.57
diff -b -B -U 4 -r1.56 -r1.57
--- src/hg/inc/trackDb.h 13 Apr 2010 19:48:44 -0000 1.56
+++ src/hg/inc/trackDb.h 30 Apr 2010 00:24:27 -0000 1.57
@@ -299,8 +299,14 @@
void *tdbExtrasGetOrDefault(struct trackDb *tdb,char *name,void *defaultVal);
/* Returns a value if it is found in the extras hash. */
+boolean tdbIsView(struct trackDb *tdb,char **viewName);
+// Is this tdb a view? Will fill viewName if provided
+
+char *tdbGetViewName(struct trackDb *tdb);
+// returns NULL the view name for view or child track (do not free)
+
void parseColor(char *text, unsigned char *r, unsigned char *g, unsigned char *b);
/* Turn comma-separated string of three numbers into three
* color components. */