Wykres commitów

102 Commity (a5e2a0a0ae7f615f392786490294457864a2d90b)

Autor SHA1 Wiadomość Data
Michael Black 4f05f09eed
Fix potential segfault in g313-posix.c 2019-12-24 12:55:01 -06:00
Michael Black ed339b1c2b
Add sleep and usleep macros so all sleeps use nanosleep 2019-12-22 11:17:22 -06:00
Michael Black 131ab4757a Fix mingw64 build for g313-win.c 2019-12-04 09:02:03 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black 72087f1b10
Change all __FUNCTION__ to __func__ 2019-11-30 10:16:28 -06:00
Michael Black 2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
Michael Black 5d16de90ee
Fix start/end names 2019-08-23 22:53:25 -05:00
Michael Black 73c1ecd165
Change freq & chan struct start/end to avoid colliding with LUA SWIG start/end 2019-08-17 23:20:48 -05:00
Michael Black bf9adaf9de Suppress GCC unused-return warning 2018-12-23 18:08:32 -05:00
Nate Bargmann 5fbef72af3 Properly exclude non-Linux/MS Windows build of G313
While the Winradio G313 backend wasn't being compiled on a non-Linux
POSIX system, the register function in winradio.c was which caused an
error linking rigctl.  Also, the host_os test in the configure script
now looks for a string containg "*linux-gnu*" which accepts such systems
as the Raspberry Pi which is defined as "linux-gnueabihf".

Thanks to Lorenzo Simoncello, IW3HER, for reporting this build error on
the Raspberry Pi.
2014-11-19 22:02:30 -06:00
Nate Bargmann 6ea09a138a Clean up build system, fix test programs
Clean up various left over commented lines from dlopen to single
libhamlib transition.  Remove unneeded configure variables.

Correct minor inconsistencies in Makefile.am files.

Define a new variable, READLINE_LIBS, so that only programs that offer
Readline support are linked against it.

Fix various compilation warnings and errors in test files revealed with
'make check' on MinGW.

Define rig and rotor backends to (mostly) be built in alphabetical
order.
2013-12-10 20:14:22 -06:00
Julian Cable 3c15a1d6c3 Use Automake conditionals for G313 build
Split G313 sources into POSIX and Windows versions and use Automake
conditionals for building on *linux-gnu or  mingw*, pw32*, or cygwin
platforms.

Fixed dlopen issue on g313 backend which broke rigmatrix generation.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-11-23 08:03:17 -06:00
Ladislav Vaiz f632695131 Android build updates for monolithic build
Android is now built as a static library.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-19 07:25:08 -05:00
Nate Bargmann 9210621c75 Remove dependency on libltdl
No longer depend on libltdl from the libtool package.  The
winradio/linradio/wg313api backend still depends on libdl, but since it
is only compiled on POSIX, it will use the POSIX supplied libdl.

Update documentation to remove references to libltdl.
2013-09-18 22:58:00 -05:00
Nate Bargmann 332a04b7cd Clean up backend Makefile.am files
Moved all backend *.h files into the SOURCES primary as Automake
documentation states all source file types should be listed.  This
causes Automake to include *.h files in rebuild rules for the targets.

Removed the '-DIN_HAMLIB' assignment from the CFLAGS primary in each
backend and assigned it to AM_CPPFLAGS in configure.ac.  The effect is
the same and it simplifies the backend Makefile.am files.

Removed all commented lines.
2013-09-16 21:51:39 -05:00
Remi Chateauneu 60019c9444 Monolitic libraries. 2013-09-08 14:56:28 +01:00
Nate Bargmann 1c1a0797bd g313.c: Correct CPP conditional
Add a #else between tests for _WIN32 and __CYGWIN__
2013-05-10 06:39:25 -05:00
Nate Bargmann 6e104f14f2 Test for cygwin to avoid Linux specific code
Compile failed on Cygwin looking for Linux specific header files.  Add a
preprocessor test for cygwin to only compile Windows compatible code.
2013-05-09 22:02:24 -05:00
Ladislav Vaiz 6d4295af2c Add Android build support
Android makefile fragments are distributed as extra distribution files
by the GNU build system but are otherwise ignored.  The Android build
support is independent and does not rely on the GNU build system.

See android/README.android for more info.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-04-26 22:31:56 -05:00
Julian Cable 92a80da264 wrg313api.c: Fix Win32 (MinGW) build issue
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-11 20:44:10 -06:00
Julian Cable 0005b9a511 WinRadio G313: Updates from Julian Campbell
"I've re-written the hamlib backend to stream the audio, if and spectrum
pcm samples to simple file system objects.

If no path is given, streaming is not requested. If the path can't be
openned, no streaming is requested.

The file is openned non-blocking and overruns are just silently
discarded.

I've tested it using named fifos and if there is no active reader it
fails to open and if there is an active reader it streams fine.

Thats as simple as it can get.

In terms of the project files, I've put the wrg313api.c and wrg313api.h
files in the existing linradio subfolder of winradio.

The .h file is the g313 equivalent of the wrapi.h file already there.
The .c file actually just contains the dlopen and the assignments to the
function variables.

The actual API shared library is binary only (and 32-bit only), and not
included in my patch."

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-10 07:37:11 -06:00
Stephane Fillod eb8fc66675 winradio: fix ineffective packed attribute 2012-06-23 16:51:13 +02:00
Nate Bargmann 01ab10bf10 Include backend specific notes with 'make dist'
(cherry picked from commit 20814924b2)
2012-03-01 21:23:16 -06:00
Nate Bargmann be2fefcf18 Update version of modified backends
Per Stephane's request, updated the version string of backends modified
since 1.2.14 release.  Newly added backends were left alone.
2012-02-02 20:10:37 -06:00
Stephane Fillod 8b26904aa5 Quell cppcheck warnings 2012-01-29 23:37:59 +01:00
Nate Bargmann 4863209a07 Assure NULL terminated strings in winradio file.
Various strncpy operations could result in a port pathname that is not a
NULL terminated string as the allowed string length is the same size as
the buffer per the strncpy manual page.  This is corrected by assuring
that the allowed length is FILPATHLEN - 1.
2012-01-07 21:55:37 -06:00
Nate Bargmann 77f92769d9 Update LGPL header in WiNRADiO source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:38 -05:00
Kamal Mostafa, KA6MAL 2567b93af7 Move backend libraries into /usr/lib/hamlib directory.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2988 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-26 02:23:50 +00:00
Stéphane Fillod, F8CFE 58bf987f4f remove double binding of dll symbol
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2652 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-20 12:38:29 +00:00
Stéphane Fillod, F8CFE 16c2af2d00 Add Winradio G305
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2576 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-11 13:21:21 +00:00
Thomas Beierlein, DL1JBE b1bf5c9c67 changed RIG_STATUS_NEW into RIG_STATUS_UNTESTED.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2424 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-10-26 13:54:52 +00:00
Stéphane Fillod, F8CFE 5403a48f6c fix memory access after freeing
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2217 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-09-18 19:34:43 +00:00
Nate Bargmann, N0NB 30550d15b7 Added S-meter functionality. Thanks to Simone.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2186 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-02-22 16:54:46 +00:00
Nate Bargmann, N0NB 081e1d4595 20061119:
New:
		New g313.c for G313i/G313e RX support.  Thanks to
		Simone Stoeppler for this support.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2163 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-11-19 13:06:37 +00:00
Nate Bargmann, N0NB 6124a3cbc2 20061118:
Update:
		New Winradio backend, G313i/G313e RX, from Simone Stoeppler.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2162 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-11-19 03:04:20 +00:00
Stéphane Fillod, F8CFE 6fbf59e8dc correct SignalStrength computation and function pointer types
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1818 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-23 19:48:41 +00:00
Stéphane Fillod, F8CFE b697ce1859 bump version
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1808 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-16 22:33:07 +00:00
Stéphane Fillod, F8CFE 4c16d9b1d4 Some winradio backends have only support for Linux module, ie. depend on linux/ioctl.h
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1802 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-16 20:44:16 +00:00
Stéphane Fillod, F8CFE 6593aa6235 fix DLL function name binding
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1788 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-08 21:38:02 +00:00
Stéphane Fillod, F8CFE 6c91ab3632 Added G303 support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1722 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-04-16 20:08:08 +00:00
Stéphane Fillod, F8CFE 9395fdea50 Add G303 support, allow build on non-Linux systems
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1721 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-04-16 20:07:47 +00:00
Stéphane Fillod, F8CFE 35511d272b Allow build on non-Linux systems
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1720 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-04-16 20:06:24 +00:00
Stéphane Fillod, F8CFE 68b3fef8dd Initial release of G3 wrapper
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1719 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-04-16 20:05:31 +00:00
Stéphane Fillod, F8CFE 64d539acd9 be freq_t and setting_t type agnostic
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1641 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-01-15 22:43:59 +00:00
Stéphane Fillod, F8CFE 84ad9b827b include fixup, stdio.h is not included by rig.h anymore
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1551 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-10-01 19:32:04 +00:00
Stéphane Fillod, F8CFE aba3325e7f Missing WR-1550 registration, from Juergen DC3BW
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1532 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-09-07 14:07:48 +00:00
Stéphane Fillod, F8CFE 960c83c4c5 * added ABI VERSION to backend entry point symbol name
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1442 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-16 22:30:43 +00:00
Stéphane Fillod, F8CFE e0b2a7b4ac fix headers
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1435 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-07 22:42:11 +00:00
Stéphane Fillod, F8CFE 3497d098a5 misc Makefile fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1282 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-13 20:39:07 +00:00
Stéphane Fillod, F8CFE 2c4dc9fcd9 updated to linradio-toolkit-0.7
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1253 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-05 21:54:10 +00:00