X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Ftypes%2Ffloat.c;fp=formats%2Fctf%2Ftypes%2Ffloat.c;h=9c60b737815ab587444a8a46b9ae12a63d003e3d;hp=689028360d4fe8f258d307e014e54103fb03201e;hb=e5a73b906c4ef25a05f56dd41d61e58fb73254e5;hpb=90131a325727abff135b9d67f814c79269ec5d13 diff --git a/formats/ctf/types/float.c b/formats/ctf/types/float.c index 68902836..9c60b737 100644 --- a/formats/ctf/types/float.c +++ b/formats/ctf/types/float.c @@ -278,6 +278,14 @@ end: 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) {