blob: 764c88e0c88a69cbdc690cb951be66d219f9b145 [file] [log] [blame]
Lev Walkine7b73c42017-07-07 10:06:17 -07001/*
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
12extern "C" {
13#endif
14
15/*
16 * Pre-computed OER constraints.
17 */
18typedef 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;
26typedef 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_ */