📨 chic
0.0.0
Realtime-safe channels in C
Toggle main menu visibility
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
14
enum
chic_err
{
16
CHIC_OK
= 0,
18
CHIC_ARGS_INVAL
,
23
CHIC_CLAIM_ORDER
,
27
CHIC_CHAN_UNREAD
,
34
CHIC_CHAN_CLOSED
,
36
CHIC_CHAN_FULL
,
38
CHIC_CHAN_EMPTY
,
39
};
40
43
const
char
*
chic_strerror
(
enum
chic_err
err);
chic_strerror
const char * chic_strerror(enum chic_err err)
Get a string describing an error.
chic_err
chic_err
Identifiers for channel states and errors.
Definition
err.h:14
CHIC_CHAN_CLOSED
@ CHIC_CHAN_CLOSED
The channel is closed.
Definition
err.h:34
CHIC_ARGS_INVAL
@ CHIC_ARGS_INVAL
The function was called with invalid arguments.
Definition
err.h:18
CHIC_OK
@ CHIC_OK
The operation completed successfully.
Definition
err.h:16
CHIC_CHAN_FULL
@ CHIC_CHAN_FULL
The channel's buffer is full and cannot be sent to.
Definition
err.h:36
CHIC_CLAIM_ORDER
@ CHIC_CLAIM_ORDER
The channel had an uncommitted claim sequenced prior that must be committed first.
Definition
err.h:23
CHIC_CHAN_EMPTY
@ CHIC_CHAN_EMPTY
The channel's buffer is empty and cannot be received from.
Definition
err.h:38
CHIC_CHAN_UNREAD
@ CHIC_CHAN_UNREAD
The channel has unreceived items.
Definition
err.h:27
include
err.h
Generated on
for 📨 chic by
1.17.0