From bca1d80d205b00f1a005806c52ffb7363243b194 Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Sun, 25 May 2025 14:01:19 +0200 Subject: [PATCH] Move/add %immutable in their files Makes the other files less dependent on being included by hamlib.swg and more self-contained. Also drop the symbols that are ignored. --- bindings/amplifier.swg | 5 +++++ bindings/hamlib.swg | 31 +++++++++++-------------------- bindings/rig.swg | 5 +++++ bindings/rotator.swg | 5 +++++ 4 files changed, 26 insertions(+), 20 deletions(-) diff --git a/bindings/amplifier.swg b/bindings/amplifier.swg index 27e76de4a..840ae389b 100644 --- a/bindings/amplifier.swg +++ b/bindings/amplifier.swg @@ -23,6 +23,11 @@ #include %} +%immutable amp_caps::model_name; +%immutable amp_caps::mfg_name; +%immutable amp_caps::version; +%immutable amp_caps::copyright; + %include %include diff --git a/bindings/hamlib.swg b/bindings/hamlib.swg index bdeb876bc..04f3968b5 100644 --- a/bindings/hamlib.swg +++ b/bindings/hamlib.swg @@ -37,6 +37,17 @@ %} +/* + * symbols that shouldn't be changed + */ +%immutable clone_combo_get; +%immutable clone_combo_set; +%immutable confparams::dflt; +%immutable confparams::label; +%immutable confparams::name; +%immutable confparams::tooltip; +%immutable cs; + /* * symbols that won't be wrapped */ @@ -197,26 +208,6 @@ #endif #endif -%immutable confparams::name; -%immutable confparams::label; -%immutable confparams::tooltip; -%immutable confparams::dflt; -%immutable cs; -%immutable rig_caps::model_name; -%immutable rig_caps::mfg_name; -%immutable rig_caps::version; -%immutable rig_caps::copyright; -%immutable hamlib_version2; -%immutable hamlib_copyright2; - -%immutable clone_combo_set; -%immutable clone_combo_get; - -%immutable rot_caps::model_name; -%immutable rot_caps::mfg_name; -%immutable rot_caps::version; -%immutable rot_caps::copyright; - %include %inline { diff --git a/bindings/rig.swg b/bindings/rig.swg index 7c6101798..e0f3373e6 100644 --- a/bindings/rig.swg +++ b/bindings/rig.swg @@ -22,6 +22,11 @@ #include %} +%immutable rig_caps::model_name; +%immutable rig_caps::mfg_name; +%immutable rig_caps::version; +%immutable rig_caps::copyright; + %include %include diff --git a/bindings/rotator.swg b/bindings/rotator.swg index 90d07c281..bbf2a637a 100644 --- a/bindings/rotator.swg +++ b/bindings/rotator.swg @@ -22,6 +22,11 @@ #include %} +%immutable rot_caps::model_name; +%immutable rot_caps::mfg_name; +%immutable rot_caps::version; +%immutable rot_caps::copyright; + %include %include