Wykres commitów

11899 Commity (ace6e71d383deac8e65697fc9bf92ad4e7c77eda)

Autor SHA1 Wiadomość Data
Daniele Forsi IU5HKX ace6e71d38 Add tests for rigs 2025-05-25 23:03:03 +02:00
Daniele Forsi IU5HKX c6c976a7ca Implement Rot.get_level() 2025-05-25 22:55:43 +02:00
Daniele Forsi IU5HKX fa70f80558 Refactor get_level using the macros AMP_LEVEL_* 2025-05-25 22:55:43 +02:00
Daniele Forsi IU5HKX 73146355c2 Add checks for constant strings 2025-05-25 22:53:52 +02:00
Daniele Forsi IU5HKX 1c5bdce775 Split the tests and remove simpler tests 2025-05-25 22:53:52 +02:00
Daniele Forsi IU5HKX e5aa8f2c0c Add missing type for 4th argument of macro AMPMETHOD4 2025-05-25 22:53:52 +02:00
Daniele Forsi IU5HKX 51ba2b3b1d Move/add %immutable in their files and before they are used
Makes all those files more self-contained.
2025-05-25 22:53:52 +02:00
Daniele Forsi IU5HKX afc70e2539 Move includes in the files where they are used
Makes the other files less dependent on being included by
hamlib.swg and more self-contained.
Need to explicitly add %include for amplist.h, riglist.h,
rotlist.h to have the definitions picked up by SWIG even
if they are included by their main file.
2025-05-25 22:53:52 +02:00
Daniele Forsi IU5HKX 10895d1abe Remove more symbols from Hamlib class
They are for internal use of Hamlib.
Use regular expressions to reduce the lenght of the ignore file.
Sort the lines for better manageability.
Drop some symbols that do not exist.
This reduces the number of symbols visible in Hamlib from 1524 to 1291.
2025-05-25 22:53:52 +02:00
Daniele Forsi IU5HKX cfc19fc42b Implement Amp.get_level 2025-05-25 22:53:49 +02:00
Daniele Forsi IU5HKX 84b7f4dc3a Fix typo 2025-05-25 16:44:11 +02:00
Daniele Forsi IU5HKX 90fbddb9d7 Implement Amp.get_freq 2025-05-25 16:44:11 +02:00
Daniele Forsi IU5HKX 6e8b5d602f Implement Amp.get_powerstat 2025-05-25 16:44:11 +02:00
Daniele Forsi IU5HKX 81d7745411 Rename and fix AMPMETHOD1VGET macro
Drop the V which means VFO and add missing parentheses.
2025-05-25 16:44:11 +02:00
Daniele Forsi IU5HKX 111862fc8c Just call all the methods of the Amp object 2025-05-25 16:44:11 +02:00
Daniele Forsi IU5HKX e895cfcdfe Add a minimal test for dummy amplifier 2025-05-25 16:44:09 +02:00
Daniele Forsi IU5HKX 02ade243e6 Add missing definitions for amplifiers 2025-05-24 23:10:46 +02:00
Daniele Forsi IU5HKX a63476cbff Just call all the methods of the Rot object 2025-05-24 23:10:46 +02:00
Daniele Forsi IU5HKX c654cbc77f Add a minimal test for dummy rotor 2025-05-24 15:06:58 +02:00
Daniele Forsi IU5HKX f93ec0bbc5 Replace print() with assert
So changes in behavior can be detected.
2025-05-24 15:06:58 +02:00
Daniele Forsi IU5HKX dedf641ef3 Add a pytest test copying all the contents of the old py3test.py
Python tests are enabled by default when building the Python bindings
if pytest is available at configuration time:
 ./configure --with-python-binding
or
 ./configure --with-python-binding --enable-pytest=check
To fail the configure step if the tests can't be enabled:
 ./configure --with-python-binding --enable-pytest
or
 ./configure --with-python-binding --enable-pytest=yes
To disable the tests:
 ./configure --with-python-binding --enable-pytest=no
To run the tests:
 make -C bindings/ check
2025-05-24 15:06:58 +02:00
Daniele Forsi IU5HKX 0fab44428a Remove the scripts pytest.py and py3test.py
They will be replaced by the official pytest tool.
Because of name clash it would be impossible to call the pytest
tool from the bindings directory.
2025-05-24 15:06:58 +02:00
Mooneer Salem 0fd094f476
Fix issue where Hamlib attempts to use memory returned by setlocale() after being freed. 2025-05-22 21:18:38 -05:00
Nate Bargmann 9570d9963b
Merge GitHub PR #1742 2025-05-22 18:17:59 -05:00
Nate Bargmann 9b177cd8b3
Merge GitHub PR #1739. 2025-05-22 17:23:35 -05:00
Nate Bargmann 91a4d914d9
Merge branch 'fix/usage-texts' of github.com:dforsi/Hamlib into dforsi-fix/usage-texts
From GitHub PR #1735.
2025-05-22 17:11:55 -05:00
Nate Bargmann 73607aeb54
Merge branch 'dforsi-fix/ac_arg_enable'
Reference GitHub PR #1731.
2025-05-22 16:56:01 -05:00
Daniele Forsi IU5HKX dbe89b2092 Remove duplicated comment 2025-05-22 21:55:10 +02:00
Daniele Forsi IU5HKX 87311035ea Also mention amplifiers 2025-05-22 21:55:10 +02:00
Daniele Forsi IU5HKX 4109d606b5 Fix typos 2025-05-22 21:55:10 +02:00
Daniele Forsi IU5HKX 84376c4561 Use the variable with the version number in the example path 2025-05-22 21:55:10 +02:00
Daniele Forsi IU5HKX 5fe81cdef4 Fix compilation errors and warnings and link failure
Compile-tested with commit 8ea3f0e (tag: 3.4.10)
from https://github.com/osmocom/libusrp

Fixes:
usrp_impl.cc:33:10: fatal error: usrp_standard.h: No such file or directory
usrp_impl.cc:49:63: error: expected '(' before 'malloc'
usrp_impl.cc:49:100: error: expected ')' before ';' token
usrp_impl.cc:72:39: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'
usrp_impl.cc:86:39: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'
usrp_impl.cc:104:39: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'
usrp_impl.cc:129:45: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'
usrp_impl.cc:151:45: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'
usrp_impl.cc:169:45: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'

usrp_impl.cc:114:37: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
usrp_impl.cc:139:38: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

/usr/bin/ld: ../src/.libs/libhamlib.so: undefined reference to `usrp_caps'
2025-05-17 23:00:08 +02:00
Daniele Forsi IU5HKX 94bf1d717a Fix failure of ./configure --with-tcl-binding --with-xml-support
If pkg-config has found tcl.pc, then tclConfig.sh is not executed
and $TCL_INCLUDE_SPEC is empty so the test for tcl.h fails.
This patch moves the test inside the "else" case where the variable
is always defined.
The is a bug exposed by the fact that --with-xml-support redefines
the macro PKG_CHECK_MODULES.
Fix verified moving aside /usr/lib/x86_64-linux-gnu/pkgconfig/tcl.pc

Fixes:
configure: error: Unable to find Tcl headers
2025-05-17 15:51:57 +02:00
Daniele Forsi IU5HKX 435a354ee0 Fix --with-indi[=no] being considered =yes 2025-05-17 10:57:23 +02:00
Daniele Forsi IU5HKX b03dea99b5 Allow to give the command lines options --list or --version 2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX 55cae893f0 Fix definition of -B/--mapa2b command line option
It doesn't accept an argument.
2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX e34ae180a2 Remove unused definition of -z command line option 2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX dc3a71da1b Document existing option to read commands from stdin 2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX 57e5dba438 Make usage texts more similar 2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX ce95b034c6 Fix --with-libusb[=yes] being considered =no 2025-05-13 21:04:44 +02:00
Daniele Forsi IU5HKX 9aee8f8343 Fix --with-readline[=yes] being considered =no 2025-05-13 21:04:44 +02:00
Daniele Forsi IU5HKX 5370bbd32e Fix --enable-html-matrix[=yes] being considered =no 2025-05-13 21:04:44 +02:00
Daniele Forsi IU5HKX 50462e6564 Fix --enable-parallel[=yes] being considered =no 2025-05-13 21:04:44 +02:00
Daniele Forsi IU5HKX daa5c83a82 Fix --enable-winradio[=yes] being considered =no 2025-05-13 21:04:44 +02:00
Daniele Forsi IU5HKX ad824fa85e Remove duplicated assignment of compilation flags
Fixes a double "-g -O2 -g -O2" in compiler invocation.
2025-05-09 22:39:17 +02:00
Daniele Forsi IU5HKX c7ba4f5384 Fix --without-cxx-binding being ignored
Do not build the C++ bindings if the configure script was called
with the option --without-cxx-binding.
2025-05-09 22:37:35 +02:00
Daniele Forsi IU5HKX da60d2d383 Replace non-portable make rule with one that is also easier to understand
Fixes:
warning: '%'-style pattern rules are a GNU make extension
2025-05-09 21:08:42 +02:00
Daniele Forsi IU5HKX de01821c51 Fix typo 2025-05-08 23:51:47 +02:00
Daniele Forsi IU5HKX 1e7b1a628e Fix error return values
All constant error values RIG_E* should be negated when returned.
Found with:
grep -nrE RETURNFUNC.?.RIG_E.+ --include=*.{c,h} | grep -v \-
2025-05-08 23:51:47 +02:00
Daniele Forsi IU5HKX 56eea198be Remove unneeded test script testcpp.sh
Library directory ../dummy/.libs doesn't exist anymore and ../c++/.libs
(a.k.a. .libs) is already used by the libtool wrapper script that runs
the testcpp program.
2025-05-08 23:51:47 +02:00