From f59ea5f7690c9a01ef6f7f6508084a66c40b1dae Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 26 Apr 2024 19:44:25 +0200 Subject: Merging upstream version 4.2.4. Signed-off-by: Daniel Baumann --- tools/make-packet-dcm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/make-packet-dcm.py') diff --git a/tools/make-packet-dcm.py b/tools/make-packet-dcm.py index 028bde4e..51cbcf10 100755 --- a/tools/make-packet-dcm.py +++ b/tools/make-packet-dcm.py @@ -196,7 +196,7 @@ typedef struct dcm_tag { const gboolean add_to_summary; /* Add to parent's item description */ } dcm_tag_t; -static dcm_tag_t dcm_tag_data[] = { +static dcm_tag_t const dcm_tag_data[] = { /* Command Tags */ """ + text_for_rows(cmd_rows) + """ @@ -233,7 +233,7 @@ typedef struct dcm_uid { """ + "\n".join(f'#define {uid_define_name(uid)} "{uid[0]}"' for uid in uid_rows if uid[1] != '(Retired)') + """ -static dcm_uid_t dcm_uid_data[] = { +static dcm_uid_t const dcm_uid_data[] = { """ + "\n".join(f' {{ {uid_define_name(uid)}, "{uid[1]}", "{uid[3]}"}},' for uid in uid_rows)+ """ }; -- cgit v1.2.3