include/babeltrace2: add `noexcept` specifier for C++ ≥ 11
[babeltrace.git] / include / babeltrace2 / func-status.h
CommitLineData
d24d5663 1/*
0235b0db
MJ
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation
d24d5663
PP
5 */
6
f38da6ca
SM
7/* IWYU pragma: private, include <babeltrace2/babeltrace.h> */
8
d24d5663 9/*
0235b0db
MJ
10 * No include guards here: it is safe to include this file multiple
11 * times.
d24d5663
PP
12 */
13
4fa90f32
PP
14#ifndef __BT_IN_BABELTRACE_H
15# error "Please include <babeltrace2/babeltrace.h> instead."
d24d5663
PP
16#endif
17
18/*
19 * This is NOT part of the API.
20 *
21 * Do NOT use a `__BT_FUNC_STATUS_*` value in user code: this inhibits
22 * precious type checking.
23 */
24
25/* Value is too large for the given data type */
520cdc82
PP
26#ifndef __BT_FUNC_STATUS_OVERFLOW_ERROR
27# define __BT_FUNC_STATUS_OVERFLOW_ERROR -75
4fa90f32 28#endif
d24d5663 29
d24d5663 30/* Memory allocation error */
4fa90f32
PP
31#ifndef __BT_FUNC_STATUS_MEMORY_ERROR
32# define __BT_FUNC_STATUS_MEMORY_ERROR -12
33#endif
d24d5663 34
27c61ce8
PP
35/* User function error */
36#ifndef __BT_FUNC_STATUS_USER_ERROR
37# define __BT_FUNC_STATUS_USER_ERROR -2
38#endif
39
d24d5663 40/* General error */
4fa90f32
PP
41#ifndef __BT_FUNC_STATUS_ERROR
42# define __BT_FUNC_STATUS_ERROR -1
43#endif
d24d5663
PP
44
45/* Saul Goodman */
4fa90f32
PP
46#ifndef __BT_FUNC_STATUS_OK
47# define __BT_FUNC_STATUS_OK 0
48#endif
d24d5663
PP
49
50/* End of iteration/consumption */
4fa90f32
PP
51#ifndef __BT_FUNC_STATUS_END
52# define __BT_FUNC_STATUS_END 1
53#endif
d24d5663
PP
54
55/* Something can't be found */
4fa90f32
PP
56#ifndef __BT_FUNC_STATUS_NOT_FOUND
57# define __BT_FUNC_STATUS_NOT_FOUND 2
58#endif
d24d5663 59
9b4f9b42
PP
60/* Object is interrupted */
61#ifndef __BT_FUNC_STATUS_INTERRUPTED
62# define __BT_FUNC_STATUS_INTERRUPTED 4
63#endif
64
00c988c9
PP
65/* No match found */
66#ifndef __BT_FUNC_STATUS_NO_MATCH
67# define __BT_FUNC_STATUS_NO_MATCH 6
68#endif
69
d24d5663 70/* Try operation again later */
4fa90f32
PP
71#ifndef __BT_FUNC_STATUS_AGAIN
72# define __BT_FUNC_STATUS_AGAIN 11
73#endif
76b6c2f7
SM
74
75/* Unknown query object */
76#ifndef __BT_FUNC_STATUS_UNKNOWN_OBJECT
77# define __BT_FUNC_STATUS_UNKNOWN_OBJECT 42
78#endif
This page took 0.063867 seconds and 4 git commands to generate.