projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for floating point fields in the Python bindings
[babeltrace.git]
/
formats
/
ctf
/
types
/
float.c
diff --git
a/formats/ctf/types/float.c
b/formats/ctf/types/float.c
index 689028360d4fe8f258d307e014e54103fb03201e..9c60b737815ab587444a8a46b9ae12a63d003e3d 100644
(file)
--- a/
formats/ctf/types/float.c
+++ b/
formats/ctf/types/float.c
@@
-278,6
+278,14
@@
end:
return ret;
}
return ret;
}
+double bt_get_float(const struct bt_definition *field)
+{
+ struct definition_float *definition =
+ container_of(field, struct definition_float, p);
+
+ return definition->value;
+}
+
static
void __attribute__((constructor)) ctf_float_init(void)
{
static
void __attribute__((constructor)) ctf_float_init(void)
{
This page took
0.03832 seconds
and
4
git commands to generate.