diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
| commit | 69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch) | |
| tree | ebc98370a697a9bbd6b973a14fa5113c475c6db7 /lib/decoder_ipc_control.h | |
| parent | 3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff) | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg'
with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
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 |
