libicuid  1.4.1
icuid_err.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2016, Kurt Cancemi ([email protected])
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 #ifndef __LIBICUID_ERR_H__
18 #define __LIBICUID_ERR_H__
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #define ICUID_OK 0
25 #define ICUID_NO_CPUID 1
26 #define ICUID_PASSED_NULL 2
27 #define ICUID_ERROR_OPEN 3
28 #define ICUID_ERROR_PARSING 4
30 const char *icuid_errorstr(int err);
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif /* __LIBICUID_ERR_H__ */