From 6a3158cb9a0c7f158f2d5ad594e8d661deb923fa Mon Sep 17 00:00:00 2001 From: Florian Schulze Date: Mon, 30 Sep 2024 10:33:01 +0200 Subject: [PATCH] adds RegisterCustom function to tag package --- pkg/tag/tag.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/tag/tag.go b/pkg/tag/tag.go index 00b326cf..89478267 100644 --- a/pkg/tag/tag.go +++ b/pkg/tag/tag.go @@ -231,3 +231,11 @@ func parseTag(tag string) (Tag, error) { } return Tag{Group: uint16(group), Element: uint16(elem)}, nil } + +// RegisterCustom allows to add a custom tag. This allows to work arond missing tag definitions +// and to create private tags +func RegisterCustom(info Info) { + maybeInitTagDict() + + tagDict[info.Tag] = info +}