better handling of feature flags
This commit is contained in:
parent
2d5d46c331
commit
45edfd13a7
2 changed files with 12 additions and 6 deletions
|
@ -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
|
// TOP-LEVEL SECTIONS
|
||||||
// ==============================================================
|
// ==============================================================
|
||||||
|
@ -965,9 +974,7 @@ struct Sec_Hover_Fn {
|
||||||
range("Compressed payload", section.range.len - section.post_size - ROOTZIP_RANGE_LEN);
|
range("Compressed payload", section.range.len - section.post_size - ROOTZIP_RANGE_LEN);
|
||||||
} else {
|
} else {
|
||||||
envelope_preamble();
|
envelope_preamble();
|
||||||
// NOTE: flags in principle require a more complex handling, but for now they are unused,
|
feature_flags();
|
||||||
// so they're always occupying only 8 bytes.
|
|
||||||
field_le<u64>("Flags: 0x%" PRIX64);
|
|
||||||
field_str8<u32>("Name: %s");
|
field_str8<u32>("Name: %s");
|
||||||
field_str8<u32>("Description: %s");
|
field_str8<u32>("Description: %s");
|
||||||
field_str8<u32>("ROOT version: %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);
|
range("Payload", section.range.len - section.post_size - ROOTZIP_RANGE_LEN);
|
||||||
} else {
|
} else {
|
||||||
envelope_preamble();
|
envelope_preamble();
|
||||||
// TODO: flags in principle require a more complex handling, but for now they are unused,
|
feature_flags();
|
||||||
// so they're always occupying only 8 bytes.
|
|
||||||
field_le<u64>("Flags: 0x%" PRIX64);
|
|
||||||
field_le<u64>("Header checksum: 0x%" PRIX64);
|
field_le<u64>("Header checksum: 0x%" PRIX64);
|
||||||
frame<Frame_Record>("Schema Extension", [this] {
|
frame<Frame_Record>("Schema Extension", [this] {
|
||||||
schema_description("Schema Extension");
|
schema_description("Schema Extension");
|
||||||
|
|
|
@ -160,6 +160,7 @@ void run_main_loop(GLFWwindow *window, Arena *arena, App_State &app)
|
||||||
|
|
||||||
// Check if the inspected file changed
|
// 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];
|
char buf[sizeof(inotify_event) + NAME_MAX + 1];
|
||||||
ssize_t nbytes = read(app.inspected_file.inot, buf, sizeof(buf));
|
ssize_t nbytes = read(app.inspected_file.inot, buf, sizeof(buf));
|
||||||
if (nbytes)
|
if (nbytes)
|
||||||
|
|
Loading…
Add table
Reference in a new issue