Commit bbe79251 authored by Lev Walkin's avatar Lev Walkin

formatting

parent 840fb8e3
...@@ -12,7 +12,7 @@ extern "C" { ...@@ -12,7 +12,7 @@ extern "C" {
#endif #endif
typedef struct ASN__PRIMITIVE_TYPE_s { typedef struct ASN__PRIMITIVE_TYPE_s {
uint8_t *buf; /* Buffer with consecutive primitive encoding bytes */ uint8_t *buf; /* Buffer with consecutive primitive encoding bytes */
size_t size; /* Size of the buffer */ size_t size; /* Size of the buffer */
} ASN__PRIMITIVE_TYPE_t; /* Do not use this type directly! */ } ASN__PRIMITIVE_TYPE_t; /* Do not use this type directly! */
...@@ -24,15 +24,15 @@ der_type_encoder_f der_encode_primitive; ...@@ -24,15 +24,15 @@ der_type_encoder_f der_encode_primitive;
* A callback specification for the xer_decode_primitive() function below. * A callback specification for the xer_decode_primitive() function below.
*/ */
enum xer_pbd_rval { enum xer_pbd_rval {
XPBD_SYSTEM_FAILURE, /* System failure (memory shortage, etc) */ XPBD_SYSTEM_FAILURE, /* System failure (memory shortage, etc) */
XPBD_DECODER_LIMIT, /* Hit some decoder limitation or deficiency */ XPBD_DECODER_LIMIT, /* Hit some decoder limitation or deficiency */
XPBD_BROKEN_ENCODING, /* Encoding of a primitive body is broken */ XPBD_BROKEN_ENCODING, /* Encoding of a primitive body is broken */
XPBD_NOT_BODY_IGNORE, /* Not a body format, but safe to ignore */ XPBD_NOT_BODY_IGNORE, /* Not a body format, but safe to ignore */
XPBD_BODY_CONSUMED /* Body is recognized and consumed */ XPBD_BODY_CONSUMED /* Body is recognized and consumed */
}; };
typedef enum xer_pbd_rval(xer_primitive_body_decoder_f)( typedef enum xer_pbd_rval(xer_primitive_body_decoder_f)(
const asn_TYPE_descriptor_t *td, void *struct_ptr, const asn_TYPE_descriptor_t *td, void *struct_ptr, const void *chunk_buf,
const void *chunk_buf, size_t chunk_size); size_t chunk_size);
/* /*
* Specific function to decode simple primitive types. * Specific function to decode simple primitive types.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment