summaryrefslogtreecommitdiff
path: root/lib/jt9com.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
commitffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch)
tree1269efa852935b183daae4bb33a58d1b4d2ffb53 /lib/jt9com.f90
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'lib/jt9com.f90')
-rw-r--r--lib/jt9com.f9025
1 files changed, 23 insertions, 2 deletions
diff --git a/lib/jt9com.f90 b/lib/jt9com.f90
index fc0577a2..5383a82d 100644
--- a/lib/jt9com.f90
+++ b/lib/jt9com.f90
@@ -1,7 +1,7 @@
- use, intrinsic :: iso_c_binding, only: c_int, c_short, c_float, c_char, c_bool
+ use, intrinsic :: iso_c_binding, only: c_int, c_int64_t, 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_VERSION = 4
integer(c_int), parameter :: DECODER_IPC_IDLE = 0
integer(c_int), parameter :: DECODER_IPC_READY = 1
integer(c_int), parameter :: DECODER_IPC_DECODING = 2
@@ -18,6 +18,18 @@
integer(c_int) :: progress
end type decoder_ipc_control
+ type, bind(C) :: decoder_ipc_field_layout
+ integer(c_int) :: offset, bytes
+ end type decoder_ipc_field_layout
+
+ type, bind(C) :: decoder_ipc_layout
+ integer(c_int) :: magic, protocol_version, header_bytes, payload_bytes
+ integer(c_int) :: logical_bytes, payload_offset, capabilities
+ integer(c_int) :: int_bytes, short_bytes, float_bytes, bool_bytes, char_bytes
+ integer(c_int) :: endian_marker, field_count
+ type(decoder_ipc_field_layout) :: fields(96)
+ end type decoder_ipc_layout
+
type, bind(C) :: params_block
integer(c_int) :: nutc
logical(c_bool) :: ndiskdat
@@ -113,7 +125,16 @@
type(params_block) :: params
end type dec_data
+ type, bind(C) :: decoder_input_metadata
+ integer(c_int64_t) :: input_id
+ integer(c_int64_t) :: analysis_id
+ integer(c_int) :: attempt_no
+ integer(c_int) :: valid_samples
+ end type decoder_input_metadata
+
type, bind(C) :: shared_dec_data
type(decoder_ipc_control) :: control
+ type(decoder_ipc_layout) :: layout
type(dec_data) :: payload
+ type(decoder_input_metadata) :: metadata
end type shared_dec_data