libsframe: add new APIs to get SFrame version
authorIndu Bhagat <indu.bhagat@oracle.com>
Thu, 29 Jun 2023 23:28:56 +0000 (16:28 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Thu, 29 Jun 2023 23:28:56 +0000 (16:28 -0700)
commit9f71b60bd45a93e25ea8dd3d8dc47f9ebd7d00d1
tree6da12653beecf02ac177d829765dc0563ad86af3
parent3169b734cf07ec8800436b2c5298897aa993d2be
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.
include/sframe-api.h
libsframe/libsframe.ver
libsframe/sframe.c