NativeEnumerated.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (c) 2004-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
  3. * Redistribution and modifications are permitted subject to BSD license.
  4. */
  5. /*
  6. * This type differs from the standard ENUMERATED in that it is modelled using
  7. * the fixed machine type (long, int, short), so it can hold only values of
  8. * limited length. There is no type (i.e., NativeEnumerated_t, any integer type
  9. * will do).
  10. * This type may be used when integer range is limited by subtype constraints.
  11. */
  12. #ifndef _NativeEnumerated_H_
  13. #define _NativeEnumerated_H_
  14. #include <NativeInteger.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. extern asn_TYPE_descriptor_t asn_DEF_NativeEnumerated;
  19. extern asn_TYPE_operation_t asn_OP_NativeEnumerated;
  20. xer_type_encoder_f NativeEnumerated_encode_xer;
  21. oer_type_decoder_f NativeEnumerated_decode_oer;
  22. oer_type_encoder_f NativeEnumerated_encode_oer;
  23. per_type_decoder_f NativeEnumerated_decode_uper;
  24. per_type_encoder_f NativeEnumerated_encode_uper;
  25. #define NativeEnumerated_free NativeInteger_free
  26. #define NativeEnumerated_print NativeInteger_print
  27. #define NativeEnumerated_compare NativeInteger_compare
  28. #define NativeEnumerated_random_fill NativeInteger_random_fill
  29. #define NativeEnumerated_constraint asn_generic_no_constraint
  30. #define NativeEnumerated_decode_ber NativeInteger_decode_ber
  31. #define NativeEnumerated_encode_der NativeInteger_encode_der
  32. #define NativeEnumerated_decode_xer NativeInteger_decode_xer
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif /* _NativeEnumerated_H_ */