2 * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>.
4 * Redistribution and modifications are permitted subject to BSD license.
6 #include <asn_internal.h>
7 #include <asn_codecs_prim.h>
12 BOOLEAN_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
13 int ilevel, enum jer_encoder_flags_e flags,
14 asn_app_consume_bytes_f *cb, void *app_key) {
15 const BOOLEAN_t *st = (const BOOLEAN_t *)sptr;
16 asn_enc_rval_t er = {0, 0, 0};
21 if(!st) ASN__ENCODE_FAILED;
24 ASN__CALLBACK("true", 4);
26 ASN__CALLBACK("false", 5);