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_control.h | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
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 |
