e506d31b6278bb1251d8b260f75c67fa38c99a27
jcasper
  Thu Jul 23 10:20:01 2026 -0700
Making it possible for multiWig containers to be children of composites, refs #36320

diff --git src/hg/inc/trackDb.h src/hg/inc/trackDb.h
index 86328570a77..b93112ed961 100644
--- src/hg/inc/trackDb.h
+++ src/hg/inc/trackDb.h
@@ -537,30 +537,34 @@
  * after this call currently. */
 
 void trackDbPrioritizeContainerItems(struct trackDb *tdbList);
 /* Set priorities in containers if they have no priorities already set
    priorities are based upon 'sortOrder' setting or else shortLabel */
 
 void trackDbAddTableField(struct trackDb *tdbList);
 /* Add table field by looking it up in settings.  */
 
 struct slRef *trackDbListGetRefsToDescendants(struct trackDb *tdbForest);
 /* Return reference list to everything in forest. Do slFreeList when done. */
 
 struct slRef *trackDbListGetRefsToDescendantLeaves(struct trackDb *tdbForest);
 /* Return reference list all leaves in forest. Do slFreeList when done. */
 
+struct slRef *trackDbListGetRefsToDescendantLeavesOrContainers(struct trackDb *tdbForest);
+/* Return reference list of all leaves in forest, plus any container (multiWig) nodes,
+ * not descending into containers. Do slFreeList when done. */
+
 int trackDbRefCmp(const void *va, const void *vb);
 /* Do trackDbCmp on list of references as opposed to actual trackDbs. */
 
 int trackDbCountDescendants(struct trackDb *tdb);
 /* Count the number of tracks in subtracks list and their subtracks too . */
 
 int trackDbCountDescendantLeaves(struct trackDb *tdb);
 /* Count the number of leaves in children list and their children. */
 
 struct trackDb *trackDbTopLevelSelfOrParent(struct trackDb *tdb);
 /* Look for a parent who is a composite or multiTrack track and return that.  Failing that
  * just return self. */
 
 boolean trackDbUpdateOldTag(char **pTag, char **pVal);
 /* Look for obscolete tags and update them to new format.  Return TRUE if any update