From f675678295b1c0f9d2ece9dee2fed6fd466f74f0 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Tue, 29 Jun 2010 21:59:24 +0000 Subject: [PATCH] removed data_source flags again, tidy source code --- include/btstack/run_loop.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/include/btstack/run_loop.h b/include/btstack/run_loop.h index 080c27654..94fd8912c 100644 --- a/include/btstack/run_loop.h +++ b/include/btstack/run_loop.h @@ -41,10 +41,6 @@ #include -// flags for data_source -#define DS_FLAG_ACTIVE 1 -#define DS_FLAG_POLL 2 - typedef enum { RUN_LOOP_POSIX = 1, RUN_LOOP_COCOA, @@ -53,9 +49,8 @@ typedef enum { typedef struct data_source { linked_item_t item; - int fd; // <-- file descriptors to watch or 0 + int fd; // <-- file descriptor to watch or 0 int (*process)(struct data_source *ds); // <-- do processing - int flags; // <-- RL_FLAG } data_source_t; typedef struct timer { @@ -67,13 +62,13 @@ typedef struct timer { // init must be called before any other run_loop call void run_loop_init(RUN_LOOP_TYPE type); -// set timer based on current time -void run_loop_set_timer(timer_source_t *a, int timeout_in_ms); - // add/remove data_source void run_loop_add_data_source(data_source_t *dataSource); int run_loop_remove_data_source(data_source_t *dataSource); +// set timer based on current time +void run_loop_set_timer(timer_source_t *a, int timeout_in_ms); + // add/remove timer_source void run_loop_add_timer(timer_source_t *timer); int run_loop_remove_timer(timer_source_t *timer);