summaryrefslogtreecommitdiff
path: root/lib/jt9com.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
committerhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
commitc25cbdf6fb6d946175f4335fab77bfea601b56db (patch)
tree6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /lib/jt9com.f90
parent71f5689252c9f13e70e1c24856904475b2307809 (diff)
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'lib/jt9com.f90')
-rw-r--r--lib/jt9com.f9022
1 files changed, 20 insertions, 2 deletions
diff --git a/lib/jt9com.f90 b/lib/jt9com.f90
index dc955479..fc0577a2 100644
--- a/lib/jt9com.f90
+++ b/lib/jt9com.f90
@@ -1,14 +1,28 @@
use, intrinsic :: iso_c_binding, only: c_int, c_short, c_float, c_char, c_bool
include 'constants.f90'
+ integer(c_int), parameter :: DECODER_IPC_VERSION = 2
+ integer(c_int), parameter :: DECODER_IPC_IDLE = 0
+ integer(c_int), parameter :: DECODER_IPC_READY = 1
+ integer(c_int), parameter :: DECODER_IPC_DECODING = 2
+ integer(c_int), parameter :: DECODER_IPC_COMPLETE = 3
+ integer(c_int), parameter :: DECODER_IPC_SHUTDOWN = 999
+
!
! these structures must be kept in sync with ../commons.h
!
+ type, bind(C) :: decoder_ipc_control
+ integer(c_int) :: generation
+ integer(c_int) :: state
+ integer(c_int) :: version
+ integer(c_int) :: progress
+ end type decoder_ipc_control
+
type, bind(C) :: params_block
integer(c_int) :: nutc
logical(c_bool) :: ndiskdat
integer(c_int) :: ntr
- integer(c_int) :: nQSOProgress ! See MainWindow::m_QSOProgress for values
+ integer(c_int) :: nQSOProgress ! Values are defined by ../QsoProgress.hpp
integer(c_int) :: nfqso
integer(c_int) :: nftx
logical(c_bool) :: newdat
@@ -92,10 +106,14 @@
end type params_block
type, bind(C) :: dec_data
- integer(c_int) :: ipc(3)
real(c_float) :: ss(184,NSMAX)
real(c_float) :: savg(NSMAX)
real(c_float) :: sred(5760)
integer(c_short) :: id2(NMAX)
type(params_block) :: params
end type dec_data
+
+ type, bind(C) :: shared_dec_data
+ type(decoder_ipc_control) :: control
+ type(dec_data) :: payload
+ end type shared_dec_data