From bfee83c29b28e88e307cedd146409c20e58c8b08 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Mon, 29 Sep 2014 20:06:39 +0000 Subject: [PATCH] fix compiler warnings --- include/btstack/run_loop.h | 3 +++ src/run_loop.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/btstack/run_loop.h b/include/btstack/run_loop.h index 3a94476f0..c77233e6f 100644 --- a/include/btstack/run_loop.h +++ b/include/btstack/run_loop.h @@ -117,6 +117,9 @@ void embedded_set_ticks(uint32_t ticks); // handler of a data source to signal the run loop that a new data // is available. void embedded_trigger(void); +// Execute run_loop once +// can be used to integrate BTstack's timer and data source processing into a foreign run runloop (not recommended) +void embedded_execute_once(void); #endif #if defined __cplusplus } diff --git a/src/run_loop.c b/src/run_loop.c index ce29d9e29..23add4b33 100644 --- a/src/run_loop.c +++ b/src/run_loop.c @@ -63,7 +63,7 @@ extern run_loop_t run_loop_cocoa; #endif // assert run loop initialized -void run_loop_assert(void){ +static void run_loop_assert(void){ #ifndef EMBEDDED if (!the_run_loop){ log_error("ERROR: run_loop function called before run_loop_init!");