diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
| commit | 059831534c7e884f0a607ed86b582fd00d821731 (patch) | |
| tree | 76bcb67a78f8aa2654fd34c2ad801a62136b0170 /lib/jt9com.f90 | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'lib/jt9com.f90')
| -rw-r--r-- | lib/jt9com.f90 | 22 |
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 |
