📨 chic 0.0.0
Realtime-safe channels in C
Loading...
Searching...
No Matches
err.h
Go to the documentation of this file.
1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
9
10#pragma once
11
40
43const char *chic_strerror(enum chic_err err);
const char * chic_strerror(enum chic_err err)
Get a string describing an error.
chic_err
Identifiers for channel states and errors.
Definition err.h:14
@ CHIC_CHAN_CLOSED
The channel is closed.
Definition err.h:34
@ CHIC_ARGS_INVAL
The function was called with invalid arguments.
Definition err.h:18
@ CHIC_OK
The operation completed successfully.
Definition err.h:16
@ CHIC_CHAN_FULL
The channel's buffer is full and cannot be sent to.
Definition err.h:36
@ CHIC_CLAIM_ORDER
The channel had an uncommitted claim sequenced prior that must be committed first.
Definition err.h:23
@ CHIC_CHAN_EMPTY
The channel's buffer is empty and cannot be received from.
Definition err.h:38
@ CHIC_CHAN_UNREAD
The channel has unreceived items.
Definition err.h:27