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.
pull/1726/head
Daniele Forsi IU5HKX 2025-05-25 14:01:19 +02:00
rodzic 48c40dc326
commit bca1d80d20
4 zmienionych plików z 26 dodań i 20 usunięć

Wyświetl plik

@ -23,6 +23,11 @@
#include <hamlib/amplifier.h>
%}
%immutable amp_caps::model_name;
%immutable amp_caps::mfg_name;
%immutable amp_caps::version;
%immutable amp_caps::copyright;
%include <hamlib/amplist.h>
%include <hamlib/amplifier.h>

Wyświetl plik

@ -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 <hamlib/rig_dll.h>
%inline {

Wyświetl plik

@ -22,6 +22,11 @@
#include <hamlib/rig.h>
%}
%immutable rig_caps::model_name;
%immutable rig_caps::mfg_name;
%immutable rig_caps::version;
%immutable rig_caps::copyright;
%include <hamlib/riglist.h>
%include <hamlib/rig.h>

Wyświetl plik

@ -22,6 +22,11 @@
#include <hamlib/rotator.h>
%}
%immutable rot_caps::model_name;
%immutable rot_caps::mfg_name;
%immutable rot_caps::version;
%immutable rot_caps::copyright;
%include <hamlib/rotator.h>
%include <hamlib/rotlist.h>