aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIndu Bhagat <indu.bhagat@oracle.com>2023-06-29 16:28:56 -0700
committerIndu Bhagat <indu.bhagat@oracle.com>2023-06-29 16:28:56 -0700
commit9f71b60bd45a93e25ea8dd3d8dc47f9ebd7d00d1 (patch)
tree6da12653beecf02ac177d829765dc0563ad86af3 /include
parent3169b734cf07ec8800436b2c5298897aa993d2be (diff)
downloadgdb-9f71b60bd45a93e25ea8dd3d8dc47f9ebd7d00d1.zip
gdb-9f71b60bd45a93e25ea8dd3d8dc47f9ebd7d00d1.tar.gz
gdb-9f71b60bd45a93e25ea8dd3d8dc47f9ebd7d00d1.tar.bz2
libsframe: add new APIs to get SFrame version
While the SFrame preamble is guaranteed to not change between versions, providing these access APIs from the SFrame decoder and encoder APIs is for convenience only. The linker may want to use these APIs as the format evolves. include/ * sframe-api.h (sframe_decoder_get_version): New declaration. (sframe_encoder_get_version): Likewise. libsframe/ * libsframe/libsframe.ver: Add new APIs. * libsframe/sframe.c (sframe_decoder_get_version): New definition. (sframe_encoder_get_version): Likewise.
Diffstat (limited to 'include')
-rw-r--r--include/sframe-api.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sframe-api.h b/include/sframe-api.h
index 7594011..7883b66 100644
--- a/include/sframe-api.h
+++ b/include/sframe-api.h
@@ -120,6 +120,10 @@ sframe_decoder_get_hdr_size (sframe_decoder_ctx *dctx);
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
@@ -217,6 +221,10 @@ sframe_encoder_get_hdr_size (sframe_encoder_ctx *encoder);
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