Skip to content

Commit

Permalink
sync2c: provide a list of all tracks (backported from c4001e3)
Browse files Browse the repository at this point in the history
  • Loading branch information
cahirwpz committed Dec 16, 2023
1 parent a5034e4 commit f58fbb5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/sync2c/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ TrackT {{ .Name }} = {
}
};
{{ end }}
static TrackT *AllTracks[] = {
{{- range . }}
&{{ .Name }},
{{- end }}
NULL
};
`

func exportTracks(tracks []Track) {
Expand Down

0 comments on commit f58fbb5

Please sign in to comment.