mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
added data_source flags
This commit is contained in:
parent
88bc6ea8e4
commit
2cf3483ca6
@ -41,6 +41,10 @@
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
// flags for data_source
|
||||
#define DS_FLAG_ACTIVE 1
|
||||
#define DS_FLAG_POLL 2
|
||||
|
||||
typedef enum {
|
||||
RUN_LOOP_POSIX = 1,
|
||||
RUN_LOOP_COCOA,
|
||||
@ -51,6 +55,7 @@ typedef struct data_source {
|
||||
linked_item_t item;
|
||||
int fd; // <-- file descriptors to watch or 0
|
||||
int (*process)(struct data_source *ds); // <-- do processing
|
||||
int flags; // <-- RL_FLAG
|
||||
} data_source_t;
|
||||
|
||||
typedef struct timer {
|
||||
|
Loading…
x
Reference in New Issue
Block a user