diff --git a/src/hover.cpp b/src/hover.cpp index ae2ecf5..7d8eab3 100644 --- a/src/hover.cpp +++ b/src/hover.cpp @@ -790,6 +790,15 @@ struct Sec_Hover_Fn { }); } + void feature_flags() + { + // NOTE: currently there are no feature flags defined. + u64 flags; + do { + field_le<u64>("Flags: 0x%" PRIX64, &flags); + } while (flags >> 63); + } + // ============================================================== // TOP-LEVEL SECTIONS // ============================================================== @@ -965,9 +974,7 @@ struct Sec_Hover_Fn { range("Compressed payload", section.range.len - section.post_size - ROOTZIP_RANGE_LEN); } else { envelope_preamble(); - // NOTE: flags in principle require a more complex handling, but for now they are unused, - // so they're always occupying only 8 bytes. - field_le<u64>("Flags: 0x%" PRIX64); + feature_flags(); field_str8<u32>("Name: %s"); field_str8<u32>("Description: %s"); field_str8<u32>("ROOT version: %s"); @@ -988,9 +995,7 @@ struct Sec_Hover_Fn { range("Payload", section.range.len - section.post_size - ROOTZIP_RANGE_LEN); } else { envelope_preamble(); - // TODO: flags in principle require a more complex handling, but for now they are unused, - // so they're always occupying only 8 bytes. - field_le<u64>("Flags: 0x%" PRIX64); + feature_flags(); field_le<u64>("Header checksum: 0x%" PRIX64); frame<Frame_Record>("Schema Extension", [this] { schema_description("Schema Extension"); diff --git a/src/mainloop.cpp b/src/mainloop.cpp index 2420d7e..059cbe2 100644 --- a/src/mainloop.cpp +++ b/src/mainloop.cpp @@ -160,6 +160,7 @@ void run_main_loop(GLFWwindow *window, Arena *arena, App_State &app) // Check if the inspected file changed { + // TODO: this should re-run get_tfile_data and get_rntuple_data! char buf[sizeof(inotify_event) + NAME_MAX + 1]; ssize_t nbytes = read(app.inspected_file.inot, buf, sizeof(buf)); if (nbytes)