/* Stream file's path (for debugging) */
GString *path;
+
+ /* Serializer's log level */
+ int log_level;
};
/*
* This function opens the file `path` for writing.
*/
BT_HIDDEN
-int bt_ctfser_init(struct bt_ctfser *ctfser, const char *path);
+int bt_ctfser_init(struct bt_ctfser *ctfser, const char *path,
+ int log_level);
/*
* Finalizes a CTF serializer.
{
union u64f {
uint64_t u;
- float f;
+ double d;
} u64f;
- u64f.f = value;
+ u64f.d = value;
return bt_ctfser_write_unsigned_int(ctfser, u64f.u, alignment_bits,
64, byte_order);
}