Skip to content

Commit

Permalink
Add OC_API annotations to port/oc_poll_loop.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 committed Sep 27, 2024
1 parent e8bf175 commit 6c3d785
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions port/oc_poll_loop.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6c3d785

Please sign in to comment.