1 /* 2 * Copyright 2022 The ChromiumOS Authors 3 * Use of this source code is governed by a BSD-style license that can be 4 * found in the LICENSE file. 5 */ 6 #ifndef __EXTRA_USB_UPDATER_DAUNTLESS_EVENT_H 7 #define __EXTRA_USB_UPDATER_DAUNTLESS_EVENT_H 8 9 #include <stdint.h> 10 11 typedef struct { 12 uint64_t time; 13 uint32_t size; 14 uint32_t event_type; 15 uint8_t payload[0]; 16 } dt_event_t; 17 18 union dt_entry_u { 19 uint8_t raw[256]; 20 dt_event_t evt; 21 }; 22 23 #endif // __EXTRA_USB_UPDATER_DAUNTLESS_EVENT_H 24