aboutsummaryrefslogtreecommitdiffstats
path: root/include/err.h
blob: ba9191c5c454420b000e46164066ffc1dfee4538 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2023 Marc Pervaz Boocha
 *
 * SPDX-License-Identifier: MIT
 */
#ifndef CALT_ERR_H
#define CALT_ERR_H

enum calt_err {
	CALT_OK = 0,
	CALT_ERR_UNKNOWN = 1,
	CALT_ERR_NULL = 2,
	CALT_ERR_OP_NOT_IMPLEMENTED = 3,
	CALT_ERR_OOM = 4,
	CALT_ERR_INVALID_ARGUEMENT = 5,
};


extern void calt_set_err(enum calt_err *err, enum calt_err code);
extern char* calt_errstr(enum calt_err err);

#endif