NULL.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*-
  2. * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
  3. * Redistribution and modifications are permitted subject to BSD license.
  4. */
  5. #ifndef ASN_TYPE_NULL_H
  6. #define ASN_TYPE_NULL_H
  7. #include <asn_application.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. /*
  12. * The value of the NULL type is meaningless.
  13. * Use the BOOLEAN type if you need to carry true/false semantics.
  14. */
  15. typedef int NULL_t;
  16. extern asn_TYPE_descriptor_t asn_DEF_NULL;
  17. extern asn_TYPE_operation_t asn_OP_NULL;
  18. asn_struct_free_f NULL_free;
  19. asn_struct_print_f NULL_print;
  20. asn_struct_compare_f NULL_compare;
  21. ber_type_decoder_f NULL_decode_ber;
  22. der_type_encoder_f NULL_encode_der;
  23. xer_type_decoder_f NULL_decode_xer;
  24. xer_type_encoder_f NULL_encode_xer;
  25. oer_type_decoder_f NULL_decode_oer;
  26. oer_type_encoder_f NULL_encode_oer;
  27. per_type_decoder_f NULL_decode_uper;
  28. per_type_encoder_f NULL_encode_uper;
  29. asn_random_fill_f NULL_random_fill;
  30. #define NULL_constraint asn_generic_no_constraint
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif /* NULL_H */