From 32ceb4793794b6f25ed59364293cfaeed7720d15 Mon Sep 17 00:00:00 2001 From: hackerman-kl Date: Sun, 30 Nov 2025 12:11:56 +0100 Subject: [PATCH] module-avb: aecp-aem: adding struct base_info. The structure provides information about the controller that last accessed, the time when when it actually accessed, and the expiring time if a timer has to be implemented --- src/modules/module-avb/aecp-aem-state.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/modules/module-avb/aecp-aem-state.h b/src/modules/module-avb/aecp-aem-state.h index ea79917ca..40c5f5da6 100644 --- a/src/modules/module-avb/aecp-aem-state.h +++ b/src/modules/module-avb/aecp-aem-state.h @@ -77,7 +77,24 @@ struct aecp_aem_unsol_notification_state { }; +struct aecp_aem_base_info { + /** Originator of the control + * This is needed so the unsoolictied notification does not send back SUCCESS + * to the originator of of the unsolicited notification */ + uint64_t controller_entity_id; + + /** + * To avoid sending on every change for unsol notifications, only once a + * a second + * */ + int64_t last_update; + + /** timeout absolute time*/ + int64_t expire_timeout; +}; + struct aecp_aem_lock_state { + struct aecp_aem_base_info base_info; /** * the entity id that is locking this system */