Merge branch 'master' into bindings/python
[babeltrace.git] / formats / ctf / types / float.c
index 5fcae00451697bcd520fa6034f3471e84ccd7612..b82f68db91fbd901859ee3a8004ed6794c07b3a1 100644 (file)
@@ -284,6 +284,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)
 {
This page took 0.025469 seconds and 4 git commands to generate.