Merge branch 'feat/pm-788' into 'master'

support sleep retention destroy callback

Closes PM-788

See merge request espressif/esp-idf!49568
This commit is contained in:
Li Shuai
2026-06-30 11:55:57 +08:00
2 changed files with 36 additions and 6 deletions
@@ -52,7 +52,13 @@ typedef struct {
} sleep_retention_create_callback_t;
typedef struct {
sleep_retention_create_callback_t create; /*!< A function handle is used to register the implementation of creating a sleep retention linked list and is executed when the corresponding module is created */
sleep_retention_callback_t handle;
void *arg;
} sleep_retention_destroy_callback_t;
typedef struct {
sleep_retention_create_callback_t create; /*!< A function handler is used to register the implementation of creating a sleep retention linked list and is executed when the corresponding module is created */
sleep_retention_destroy_callback_t destroy; /*!< The callback function handler is invoked after the sleep retention linked list is destroyed */
} sleep_retention_module_callbacks_t;
typedef enum {