summaryrefslogtreecommitdiff
path: root/lib/decoder_ipc_atomic.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/decoder_ipc_atomic.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/decoder_ipc_atomic.f90')
-rw-r--r--lib/decoder_ipc_atomic.f9049
1 files changed, 49 insertions, 0 deletions
diff --git a/lib/decoder_ipc_atomic.f90 b/lib/decoder_ipc_atomic.f90
new file mode 100644
index 00000000..2814168d
--- /dev/null
+++ b/lib/decoder_ipc_atomic.f90
@@ -0,0 +1,49 @@
+module decoder_ipc_atomic
+ use, intrinsic :: iso_c_binding, only: c_int
+ implicit none
+
+ integer(c_int), parameter :: DECODER_IPC_CLAIM_INVALID = -2
+ integer(c_int), parameter :: DECODER_IPC_CLAIM_INCOMPATIBLE = -1
+ integer(c_int), parameter :: DECODER_IPC_CLAIM_NONE = 0
+ integer(c_int), parameter :: DECODER_IPC_CLAIMED = 1
+ integer(c_int), parameter :: DECODER_IPC_CLAIM_SHUTDOWN = 2
+
+ interface
+ function decoder_ipc_control_try_claim(generation, state, version, &
+ claimed_generation) bind(C)
+ import c_int
+ integer(c_int), intent(inout) :: generation
+ integer(c_int), intent(inout) :: state
+ integer(c_int), intent(in) :: version
+ integer(c_int), intent(out) :: claimed_generation
+ integer(c_int) :: decoder_ipc_control_try_claim
+ end function decoder_ipc_control_try_claim
+
+ function decoder_ipc_control_finish(generation, state, version, &
+ request_generation) bind(C)
+ import c_int
+ integer(c_int), intent(in) :: generation
+ integer(c_int), intent(inout) :: state
+ integer(c_int), intent(in) :: version
+ integer(c_int), value :: request_generation
+ integer(c_int) :: decoder_ipc_control_finish
+ end function decoder_ipc_control_finish
+
+ subroutine decoder_ipc_progress_bind(generation, state, version, &
+ progress) bind(C)
+ import c_int
+ integer(c_int), intent(in) :: generation
+ integer(c_int), intent(in) :: state
+ integer(c_int), intent(in) :: version
+ integer(c_int), intent(inout) :: progress
+ end subroutine decoder_ipc_progress_bind
+
+ subroutine decoder_ipc_progress_unbind() bind(C)
+ end subroutine decoder_ipc_progress_unbind
+
+ subroutine decoder_ipc_progress_report(request_generation) bind(C)
+ import c_int
+ integer(c_int), value :: request_generation
+ end subroutine decoder_ipc_progress_report
+ end interface
+end module decoder_ipc_atomic