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/decoder_ipc_atomic.f90 | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'lib/decoder_ipc_atomic.f90')
| -rw-r--r-- | lib/decoder_ipc_atomic.f90 | 49 |
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 |
