Add support for floating point fields in the Python bindings
[babeltrace.git] / formats / ctf / types / float.c
index 689028360d4fe8f258d307e014e54103fb03201e..9c60b737815ab587444a8a46b9ae12a63d003e3d 100644 (file)
@@ -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)
 {
This page took 0.028228 seconds and 4 git commands to generate.