generic primitive codec added
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@401 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/ber_codec_prim.h b/skeletons/ber_codec_prim.h
new file mode 100644
index 0000000..aa6a5c5
--- /dev/null
+++ b/skeletons/ber_codec_prim.h
@@ -0,0 +1,19 @@
+/*-
+ * Copyright (c) 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
+ * Redistribution and modifications are permitted subject to BSD license.
+ */
+#ifndef _BER_CODEC_of_PRIMITIVE_TYPE_H_
+#define _BER_CODEC_of_PRIMITIVE_TYPE_H_
+
+#include <asn_application.h>
+
+typedef struct ASN__PRIMITIVE_TYPE_s {
+ uint8_t *buf; /* Buffer with consecutive primitive encoding bytes */
+ int size; /* Size of the buffer */
+} ASN__PRIMITIVE_TYPE_t; /* Do not use this type directly! */
+
+asn_struct_free_f ASN__PRIMITIVE_TYPE_free;
+ber_type_decoder_f ber_decode_primitive;
+der_type_encoder_f der_encode_primitive;
+
+#endif /* _BER_CODEC_of_PRIMITIVE_TYPE_H_ */