Skip to content

Commit f58fbb5

Browse files
committed
sync2c: provide a list of all tracks (backported from c4001e3)
1 parent a5034e4 commit f58fbb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/sync2c/main.go

+6
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ TrackT {{ .Name }} = {
211211
}
212212
};
213213
{{ end }}
214+
static TrackT *AllTracks[] = {
215+
{{- range . }}
216+
&{{ .Name }},
217+
{{- end }}
218+
NULL
219+
};
214220
`
215221

216222
func exportTracks(tracks []Track) {

0 commit comments

Comments
 (0)