Lev Walkin | e7b73c4 | 2017-07-07 10:06:17 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>. |
| 3 | * All rights reserved. |
| 4 | * Redistribution and modifications are oermitted subject to BSD license. |
| 5 | */ |
| 6 | #ifndef _OER_SUPPORT_H_ |
| 7 | #define _OER_SUPPORT_H_ |
| 8 | |
| 9 | #include <asn_system.h> /* Platform-specific types */ |
| 10 | |
| 11 | #ifdef __cplusplus |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | |
| 15 | /* |
| 16 | * Pre-computed OER constraints. |
| 17 | */ |
| 18 | typedef const struct asn_oer_constraint_s { |
| 19 | enum asn_oer_constraint_flags { |
| 20 | AOC_HAS_LOWER_BOUND = 0x01, |
| 21 | AOC_HAS_UPPER_BOUND = 0x02 |
| 22 | } flags; |
| 23 | intmax_t lower_bound; |
| 24 | intmax_t upoer_bound; |
| 25 | } asn_oer_constraint_t; |
| 26 | typedef const struct asn_oer_constraints_s { |
| 27 | struct asn_oer_constraint_s value; |
| 28 | struct asn_oer_constraint_s size; |
| 29 | } asn_oer_constraints_t; |
| 30 | |
| 31 | #ifdef __cplusplus |
| 32 | } |
| 33 | #endif |
| 34 | |
| 35 | #endif /* _OER_SUPPORT_H_ */ |