2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation
7 /* IWYU pragma: private, include <babeltrace2/babeltrace.h> */
10 * No include guards here: it is safe to include this file multiple
14 #ifndef __BT_IN_BABELTRACE_H
15 # error "Please include <babeltrace2/babeltrace.h> instead."
19 * This is NOT part of the API.
21 * Do NOT use a `__BT_FUNC_STATUS_*` value in user code: this inhibits
22 * precious type checking.
25 /* Value is too large for the given data type */
26 #ifndef __BT_FUNC_STATUS_OVERFLOW_ERROR
27 # define __BT_FUNC_STATUS_OVERFLOW_ERROR -75
30 /* Memory allocation error */
31 #ifndef __BT_FUNC_STATUS_MEMORY_ERROR
32 # define __BT_FUNC_STATUS_MEMORY_ERROR -12
35 /* User function error */
36 #ifndef __BT_FUNC_STATUS_USER_ERROR
37 # define __BT_FUNC_STATUS_USER_ERROR -2
41 #ifndef __BT_FUNC_STATUS_ERROR
42 # define __BT_FUNC_STATUS_ERROR -1
46 #ifndef __BT_FUNC_STATUS_OK
47 # define __BT_FUNC_STATUS_OK 0
50 /* End of iteration/consumption */
51 #ifndef __BT_FUNC_STATUS_END
52 # define __BT_FUNC_STATUS_END 1
55 /* Something can't be found */
56 #ifndef __BT_FUNC_STATUS_NOT_FOUND
57 # define __BT_FUNC_STATUS_NOT_FOUND 2
60 /* Object is interrupted */
61 #ifndef __BT_FUNC_STATUS_INTERRUPTED
62 # define __BT_FUNC_STATUS_INTERRUPTED 4
66 #ifndef __BT_FUNC_STATUS_NO_MATCH
67 # define __BT_FUNC_STATUS_NO_MATCH 6
70 /* Try operation again later */
71 #ifndef __BT_FUNC_STATUS_AGAIN
72 # define __BT_FUNC_STATUS_AGAIN 11
75 /* Unknown query object */
76 #ifndef __BT_FUNC_STATUS_UNKNOWN_OBJECT
77 # define __BT_FUNC_STATUS_UNKNOWN_OBJECT 42
This page took 0.030639 seconds and 4 git commands to generate.