From f58fbb5e03ea1a50943e48141cce89b9c562108e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Bac=C5=82awski?= Date: Mon, 3 Apr 2023 08:06:49 +0200 Subject: [PATCH] sync2c: provide a list of all tracks (backported from c4001e3) --- tools/sync2c/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/sync2c/main.go b/tools/sync2c/main.go index 64d84933..acaf08ae 100644 --- a/tools/sync2c/main.go +++ b/tools/sync2c/main.go @@ -211,6 +211,12 @@ TrackT {{ .Name }} = { } }; {{ end }} +static TrackT *AllTracks[] = { +{{- range . }} + &{{ .Name }}, +{{- end }} + NULL +}; ` func exportTracks(tracks []Track) {