extern uint8_t
sframe_decoder_get_abi_arch (sframe_decoder_ctx *dctx);
+/* Get the format version from the SFrame decoder context DCTX. */
+extern uint8_t
+sframe_decoder_get_version (sframe_decoder_ctx *dctx);
+
/* Return the number of function descriptor entries in the SFrame decoder
DCTX. */
extern uint32_t
extern uint8_t
sframe_encoder_get_abi_arch (sframe_encoder_ctx *encoder);
+/* Get the format version from the SFrame encoder context ENCODER. */
+extern uint8_t
+sframe_encoder_get_version (sframe_encoder_ctx *encoder);
+
/* Return the number of function descriptor entries in the SFrame encoder
ENCODER. */
extern uint32_t
sframe_decode;
sframe_decoder_get_hdr_size;
sframe_decoder_get_abi_arch;
+ sframe_decoder_get_version;
sframe_decoder_get_fixed_fp_offset;
sframe_decoder_get_fixed_ra_offset;
sframe_get_funcdesc_with_addr;
sframe_encoder_free;
sframe_encoder_get_hdr_size;
sframe_encoder_get_abi_arch;
+ sframe_encoder_get_version;
sframe_encoder_get_num_fidx;
sframe_encoder_add_fre;
sframe_encoder_add_funcdesc;
return sframe_header->sfh_abi_arch;
}
+/* Get the format version from the SFrame decoder context DCTX. */
+
+uint8_t
+sframe_decoder_get_version (sframe_decoder_ctx *dctx)
+{
+ sframe_header *dhp;
+ dhp = sframe_decoder_get_header (dctx);
+ return dhp->sfh_preamble.sfp_version;
+}
+
/* Get the SFrame's fixed FP offset given the decoder context CTX. */
int8_t
sframe_decoder_get_fixed_fp_offset (sframe_decoder_ctx *ctx)
return abi_arch;
}
+/* Get the format version from the SFrame encoder context ENCODER. */
+
+uint8_t
+sframe_encoder_get_version (sframe_encoder_ctx *encoder)
+{
+ sframe_header *ehp;
+ ehp = sframe_encoder_get_header (encoder);
+ return ehp->sfh_preamble.sfp_version;
+}
+
/* Return the number of function descriptor entries in the SFrame encoder
ENCODER. */