diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /lib/decoder_ipc_control.h | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (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_control.h')
| -rw-r--r-- | lib/decoder_ipc_control.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/decoder_ipc_control.h b/lib/decoder_ipc_control.h new file mode 100644 index 00000000..5bf593ba --- /dev/null +++ b/lib/decoder_ipc_control.h @@ -0,0 +1,40 @@ +#ifndef DECODER_IPC_CONTROL_H +#define DECODER_IPC_CONTROL_H + +#include "../DecoderIpcProtocol.h" + +enum decoder_ipc_claim_result +{ + DECODER_IPC_CLAIM_INVALID = -2, + DECODER_IPC_CLAIM_INCOMPATIBLE = -1, + DECODER_IPC_CLAIM_NONE = 0, + DECODER_IPC_CLAIMED = 1, + DECODER_IPC_CLAIM_SHUTDOWN = 2 +}; + +#ifdef __cplusplus +extern "C" { +#endif + +int decoder_ipc_atomic_load (int const * value); +void decoder_ipc_control_initialize (int * generation, int * state, int * version, + int * progress); +void decoder_ipc_control_shutdown (int * state, int * legacy_acknowledgment); +int decoder_ipc_control_publish (int * generation, int * state, + int const * version, int * progress, + int request_generation); +int decoder_ipc_control_try_claim (int * generation, int * state, int const * version, + int * claimed_generation); +int decoder_ipc_control_finish (int const * generation, int * state, + int const * version, int request_generation); +int decoder_ipc_control_consume (int const * generation, int * state, + int const * version, int request_generation); +void decoder_ipc_progress_bind (int const * generation, int const * state, + int const * version, int * progress); +void decoder_ipc_progress_unbind (void); +void decoder_ipc_progress_report (int request_generation); +#ifdef __cplusplus +} +#endif + +#endif |
