From 6c3d78525e53f2038d79e04514c0728a7229231e Mon Sep 17 00:00:00 2001 From: Daniel Adam Date: Fri, 27 Sep 2024 23:25:01 +0200 Subject: [PATCH] Add OC_API annotations to port/oc_poll_loop.h --- port/oc_poll_loop.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/port/oc_poll_loop.h b/port/oc_poll_loop.h index 777de9e58..12df45f4c 100644 --- a/port/oc_poll_loop.h +++ b/port/oc_poll_loop.h @@ -29,6 +29,7 @@ #ifndef PORT_OC_POLL_LOOP_H #define PORT_OC_POLL_LOOP_H +#include "oc_export.h" #include "util/oc_features.h" #ifdef OC_HAS_FEATURE_SIMPLE_MAIN_LOOP @@ -38,21 +39,27 @@ extern "C" { #endif /** @brief Initialize handles */ +OC_API bool oc_poll_loop_init(void); /** @brief Shutdown handles */ +OC_API void oc_poll_loop_shutdown(void); /** @brief Run the main loop until termination. */ +OC_API void oc_poll_loop_run(void); /** @brief Signal the main loop to wake up and process events. */ +OC_API void oc_poll_loop_signal(void); /** @brief Terminate the main loop. */ +OC_API void oc_poll_loop_terminate(void); /** @brief Check if the main loop has been terminated. */ +OC_API bool oc_poll_loop_is_terminated(void); #ifdef __cplusplus