Wykres commitów

99 Commity (master)

Autor SHA1 Wiadomość Data
Nate Bargmann d04364e685
Use pkgconf/pkg-config to test for libusb-1.0
As reported in GitHub issue #1892, configure on FreeBSD failed to search
for the name of the library correctly which is libusb.  As pkg-config
correctly holds the library name for linking, modify the search for
libusb-1.0 to use the pkg-config capability.  If pkg-config (now largely
replaced by pkgconf) is not installed or found, the modules depending on
it will be gracefull disabled, i.e. the configure script will complete
with those modules disabled.

Modify the output summary to use spaces instead of tabs as things were
not lining up nicely in my FreeBSD terminal.

Rename the Automake substituted variable 'HAVE_LIBUSB' to
'TESTS_HAVE_LIBUSB' to avoid confusion with identically named variable
written to include/hamlib/config.h.

Likewise, rename the AutoConf substituted name 'LIBUSB' to
'HAMLIB_PC_LIBUSB' to avoid confusion with the 'LIBUSB' string passed to
PKG_CHECK_MODULES.

Update hamlib.pc.in and tests/Makefile.am to use the new variable names.

Make sure all source files no longer reference HAVE_LIBUSB_H or
HAVE_LIBUSB_1_0_LIBUSB_H as these variables no longer exist.

Fix src/Makefile.am to provide include path for usb_port.c.
2025-09-17 21:31:37 -05:00
Daniele Forsi IU5HKX 39e155efe7 Fix include config.h
It should be included, with its path, before any hamlib include
and before any #ifdef that uses the symbols that it defines.
2025-08-30 11:18:51 +02:00
Daniele Forsi IU5HKX 8d8d0328bf Fix typos 2025-08-03 10:49:23 +02:00
Daniele Forsi IU5HKX 0267068220 Fix ambiguity between system includes and Hamlib includes 2025-07-22 23:33:57 +02:00
Daniele Forsi IU5HKX 2fab137fc5 Apply fixes suggested by iwyu
Removes unused includes and adds missing includes.
2025-07-22 23:33:57 +02:00
Daniele Forsi IU5HKX 974e619dd2 Replace #include serial.h with iofunc.h
According to iwyu, to avoid unecessary rebuilds and to reduce the
chances of breakages of the build if includes are rearranged, the
code that uses serial_open() and ser_close() should include
serial.h while the code that uses read_block() write_block() and
similar should include iofunc.h, code that uses all of them should
include both files.

Found with iwyu.
2025-07-22 23:33:56 +02:00
Daniele Forsi IU5HKX 2a3f603680 Remove unused #include <errno.h>
Found with iwyu.
2025-07-22 23:33:56 +02:00
Nate Bargmann 9570d9963b
Merge GitHub PR #1742 2025-05-22 18:17:59 -05:00
Daniele Forsi IU5HKX 4109d606b5 Fix typos 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
Mike Black W9MDB 5c269964c2 astyle files in preparation for release 4.6 2024-11-06 08:07:34 -06:00
George Baltz N3GB 06301679d3 Balance ENTERFUNC/RETURNFUNC usage
Still some unbalanced RETURNFUNC2 usage, but doesn't affect any rig data.
2024-06-26 10:16:12 -04:00
George Baltz N3GB d17290b835 Use sed -i on all in rigs/kit/
Under 1800 to go.
2024-06-05 16:50:40 -04:00
Mike Black W9MDB e1f2342982 Promote all BETA to STABLE
Promot all ALPHA to BETA
2024-02-14 07:11:20 -06:00
George Baltz N3GB 464eea58e7 Convert rigs/icom/, rigs/kit/ 2024-02-05 11:28:31 -05:00
Mike Black W9MDB efeba2dfe0 Fix some more hamlib_token_t
https://github.com/Hamlib/Hamlib/issues/1469
2024-01-22 10:50:30 -06:00
Mike Black W9MDB 05033171c3 Change token_t to hamlib_token_t to avoid collsions with libbsm and others
https://github.com/Hamlib/Hamlib/issues/1469
2024-01-21 23:11:55 -06:00
Mike Black W9MDB e267c62764 astyle files 2023-12-16 11:37:58 -06:00
Mike Black W9MDB 9841e500b9 Fix ptt_share segmentation fault
https://github.com/Hamlib/Hamlib/issues/1433
Fix ID5100 0x25 and simplex VFO actions
https://github.com/Hamlib/Hamlib/issues/1429
2023-11-23 15:00:05 -06:00
Mike Black W9MDB 8d15c04727 Fix more cppcheck items 2023-10-14 12:01:41 -05:00
Mike Black W9MDB 534fe449a2 Fix more cppcheck items 2023-10-13 17:36:29 -05:00
Mike Black W9MDB d72127f29a Fix cppcheck warnings 2023-10-11 23:22:42 -05:00
Daniele Forsi IU5HKX 2db37fe7db Fix typos 2023-03-26 11:01:51 +02:00
Daniele Forsi IU5HKX 52be0797d8 [rigs/*] Fix includes 2023-02-16 19:08:24 +01:00
Daniele Forsi IU5HKX d09c048161 [rigs/*] Remove unused include of config.h 2023-02-14 19:57:48 +01:00
Daniele Forsi IU5HKX b93551712f Remove unused includes of fcntl.h 2022-12-09 14:06:59 +01:00
Daniele Forsi IU5HKX f7fe2912ec Remove unused includes of errno.h 2022-12-09 12:32:54 +01:00
Mike Black W9MDB 16826c5a88 Fix compilation warning on fifisdr.c 2022-11-28 08:50:22 -06:00
Mike Black W9MDB 6b41f0738f Clean up rest of dumpcap backend warnings 2022-11-15 17:54:02 -06:00
Mike Black W9MDB 4f5bf9aadd Fix some dumpcaps warnings in many rigs 2022-11-14 16:02:28 -06:00
Mike Black W9MDB a83eb3bf42 astyle files for 4.5 release 2022-07-27 17:16:17 -05:00
Mike Black W9MDB 627ec83652 Change malloc to calloc 2022-07-27 10:26:08 -05:00
Daniele Forsi IU5HKX 7a132e2703 Remove unused includes
Removes includes of stdio.h stdlib.h string.h unistd.h
2022-07-24 17:08:57 +02:00
Daniele Forsi IU5HKX 34018600ee Remove unused includes of math.h 2022-07-23 18:39:55 +02:00
Daniele Forsi IU5HKX 08c06aea14 Fix spelling errors
Fixed with:
codespell --summary --skip=.git,extra,,lib,macros,security --ignore-words-list="ans,ba,cant,develope,fo,get's,nin,numer,parm,parms,setts,som,statics,ths,ue,vektor,objext" --write-changes --interactive=2
and manual editing.
2022-07-07 23:56:22 +02:00
Mike Black W9MDB 5cce47e233 Change TEMP_METER to float 2022-04-30 13:44:09 -05:00
Mike Black W9MDB 5427b4cf86 Promote UNTESTED to ALPHA -- assuming no news is good news 2022-04-16 22:47:51 -05:00
Mike Black W9MDB 0473702cb6 Promote rigs from ALPHA to BETA -- assuming no news is good news 2022-04-16 17:35:39 -05:00
Mike Black W9MDB acf80cea37 Update rotors from Untested to Alpha 2022-03-29 16:07:21 -05:00
Mike Black W9MDB d209438549 Update hamlib_check_rig_caps 2022-02-11 14:58:03 -06:00
Mike Black W9MDB 8c34ce1a2d astyle source code 2022-02-05 15:27:43 -06:00
Mike Black W9MDB 68e121d82c Change all to remove HAVE_CONFIG dependency and include <hamlib/config.h> by default
This is necessary to keep alignment between the client view of rig->state and the shared libarary view
Including PTHREAD functions in rig->state necessitated this as HAVE_PTHREAD only defined during hamlib compilation.
Clients including hamlib/rig.h did not pick up all the HAVE* config variable that control what gets included
https://github.com/Hamlib/Hamlib/issues/947
2022-02-04 07:41:36 -06:00
Mike Black W9MDB a277d7ab9b Changes changing hamlib_port_t to pointer are not backwards compatible 2022-01-25 17:41:26 -06:00
Mike Black W9MDB fe08947700 Fix rest of rig.state pointer in kit rigs 2022-01-25 08:31:38 -06:00
Mike Black W9MDB 67e28c4faf Fix more rig state pointer references in funcube.c and si570avrusb.c 2022-01-25 08:18:48 -06:00
Mike Black W9MDB a22b21f3d7 Fix more rigport pointer references in si570avrusb.c 2022-01-25 08:14:39 -06:00
Mike Black W9MDB 6d7d2804de Fix rigport handle references to new pointer format in si570avrusb.c 2022-01-25 08:12:47 -06:00
Mike Black W9MDB 9e86e62238 Enable async I/O by default
Change hamlib_port_t to a pointer in rig.state
Deprecate static hamlib_port_t structure
New hamlib_port_t structure at end of rig.state
Clients built with older hamlib will use old structure in DLL
Clients built with newer hamlib will use new structure in DLL
So we maintain backwards compatibility until Hamlib 5.0
https://github.com/Hamlib/Hamlib/issues/894
2022-01-25 07:59:47 -06:00
Mike Black W9MDB a5a5cc90d8 Change sprintf to SNPRINTF in kit
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 23:05:41 -06:00
Mike Black W9MDB ae2c5b13e3 Recommit si570avrusb.c -- change didn't take for some reason 2022-01-16 08:01:42 -06:00