]> the.earth.li Git - onak.git/blob - onak.h
0.6.2 release
[onak.git] / onak.h
1 /*
2  * onak.h - Common onak definitions
3  *
4  * Copyright 2012 Jonathan McDowell <noodles@earth.li>
5  *
6  * This program is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the Free
8  * Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along with
16  * this program.  If not, see <https://www.gnu.org/licenses/>.
17  */
18
19 #ifndef __ONAK_H__
20 #define __ONAK_H__
21
22 typedef enum {
23         ONAK_E_OK = 0,
24         ONAK_E_NOMEM,
25         ONAK_E_NOT_FOUND,
26         ONAK_E_INVALID_PARAM,
27         ONAK_E_INVALID_PKT,
28         ONAK_E_UNKNOWN_VER,
29         ONAK_E_UNSUPPORTED_FEATURE,
30         ONAK_E_BAD_SIGNATURE,
31         ONAK_E_WEAK_SIGNATURE,
32 } onak_status_t;
33
34 #endif /* __ONAK_H__ */