libpaf 1.1.13
Loading...
Searching...
No Matches
paf_err.h
1/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(c) 2020 Ericsson AB
4 */
5
6#ifndef PAF_ERR_H
7#define PAF_ERR_H
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <stdint.h>
13
14const char *paf_strerror(int64_t return_code);
15
16#define PAF_ERR (-1)
17#define PAF_ERR_PROPS_TOO_LARGE (-2)
18#define PAF_ERR_BUFFER_TOO_SMALL (-3)
19#define PAF_ERR_FILTER_TOO_LARGE (-4)
20#define PAF_ERR_INVALID_FILTER_SYNTAX (-5)
21#define PAF_ERR_DETACHED (-6)
22
23#define PAF_IS_ERR(x) ((x) < 0 ? true : false)
24
25#ifdef __cplusplus
26}
27#endif
28#endif