2024-01-17 01:16:06 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2018-2024 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2018-10-26 01:14:19 -04:00
|
|
|
|
|
|
|
#ifndef ESP_EVENT_PRIVATE_H_
|
|
|
|
#define ESP_EVENT_PRIVATE_H_
|
|
|
|
|
2021-07-21 00:07:53 -04:00
|
|
|
#include <stdbool.h>
|
2018-10-26 01:14:19 -04:00
|
|
|
#include "esp_event.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Searches handlers registered with an event loop to see if it has been registered.
|
|
|
|
*
|
|
|
|
* @param[in] event_loop the loop to search
|
|
|
|
* @param[in] event_base the event base to search
|
|
|
|
* @param[in] event_id the event id to search
|
|
|
|
* @param[in] event_handler the event handler to look for
|
|
|
|
*
|
|
|
|
* @return true handler registered
|
|
|
|
* @return false handler not registered
|
2020-11-10 02:40:01 -05:00
|
|
|
*
|
|
|
|
* @return
|
2018-10-26 01:14:19 -04:00
|
|
|
* - true: Handler registered
|
|
|
|
* - false: Handler not registered
|
|
|
|
*/
|
|
|
|
bool esp_event_is_handler_registered(esp_event_loop_handle_t event_loop, esp_event_base_t event_base, int32_t event_id, esp_event_handler_t event_handler);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Deinitializes the event loop library
|
|
|
|
*
|
2020-11-10 02:40:01 -05:00
|
|
|
* @return
|
2018-10-26 01:14:19 -04:00
|
|
|
* - ESP_OK: Success
|
|
|
|
* - Others: Fail
|
|
|
|
*/
|
2019-07-16 05:33:30 -04:00
|
|
|
esp_err_t esp_event_loop_deinit(void);
|
2018-10-26 01:14:19 -04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif
|
|
|
|
|
2020-11-10 02:40:01 -05:00
|
|
|
#endif // #ifndef ESP_EVENT_PRIVATE_H_
|