Harald Welte | 3aa901d | 2018-08-13 18:32:36 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "RSPRO" |
| 4 | * found in "../../asn1/RSPRO.asn" |
| 5 | */ |
| 6 | |
| 7 | #ifndef _IpAddress_H_ |
| 8 | #define _IpAddress_H_ |
| 9 | |
| 10 | |
| 11 | #include <asn_application.h> |
| 12 | |
| 13 | /* Including external dependencies */ |
| 14 | #include <osmocom/rspro/Ipv4Address.h> |
| 15 | #include <osmocom/rspro/Ipv6Address.h> |
| 16 | #include <constr_CHOICE.h> |
| 17 | |
| 18 | #ifdef __cplusplus |
| 19 | extern "C" { |
| 20 | #endif |
| 21 | |
| 22 | /* Dependencies */ |
| 23 | typedef enum IpAddress_PR { |
| 24 | IpAddress_PR_NOTHING, /* No components present */ |
| 25 | IpAddress_PR_ipv4, |
| 26 | IpAddress_PR_ipv6 |
| 27 | } IpAddress_PR; |
| 28 | |
| 29 | /* IpAddress */ |
| 30 | typedef struct IpAddress { |
| 31 | IpAddress_PR present; |
| 32 | union IpAddress_u { |
| 33 | Ipv4Address_t ipv4; |
| 34 | Ipv6Address_t ipv6; |
| 35 | } choice; |
| 36 | |
| 37 | /* Context for parsing across buffer boundaries */ |
| 38 | asn_struct_ctx_t _asn_ctx; |
| 39 | } IpAddress_t; |
| 40 | |
| 41 | /* Implementation */ |
| 42 | extern asn_TYPE_descriptor_t asn_DEF_IpAddress; |
| 43 | |
| 44 | #ifdef __cplusplus |
| 45 | } |
| 46 | #endif |
| 47 | |
| 48 | #endif /* _IpAddress_H_ */ |
| 49 | #include <asn_internal.h> |