summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIndu Bhagat <indu.bhagat@oracle.com>2022-12-16 22:01:57 -0800
committerIndu Bhagat <indu.bhagat@oracle.com>2022-12-16 22:01:57 -0800
commit9c4b163cb546f0627a4d3106d2750db37d6aed50 (patch)
tree485d52baf463adb9630fe86e55dac8d8715993ca /include
parent28f69152b99fd3a774e9bb9e66496cb1d7fd03b9 (diff)
downloadbinutils-gdb-9c4b163cb546f0627a4d3106d2750db37d6aed50.tar.gz
libsframe: provide new access API for mangled RA bit
include/ChangeLog: * sframe-api.h (sframe_fre_get_ra_mangled_p): New declaration. ChangeLog: * libsframe/sframe.c (sframe_get_fre_ra_mangled_p): New definition. (sframe_fre_get_ra_mangled_p): New static function.
Diffstat (limited to 'include')
-rw-r--r--include/sframe-api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sframe-api.h b/include/sframe-api.h
index c9db39eaaf0..bd1833558a4 100644
--- a/include/sframe-api.h
+++ b/include/sframe-api.h
@@ -21,6 +21,7 @@
#define _SFRAME_API_H
#include <sframe.h>
+#include <stdbool.h>
#ifdef __cplusplus
extern "C"
@@ -184,6 +185,12 @@ extern int32_t
sframe_fre_get_ra_offset (sframe_decoder_ctx *dctx,
sframe_frame_row_entry *fre, int *errp);
+/* Get whether the RA is mangled. */
+
+extern bool
+sframe_fre_get_ra_mangled_p (sframe_decoder_ctx *dctx,
+ sframe_frame_row_entry *fre, int *errp);
+
/* The SFrame Encoder. */
/* Create an encoder context with the given SFrame format version VER, FLAGS