windows: add void * handle to data _source

This commit is contained in:
Matthias Ringwald 2016-11-27 21:52:42 +01:00
parent 4e630824c7
commit 3aad862366

View File

@ -65,14 +65,23 @@ typedef enum {
} btstack_data_source_callback_type_t;
typedef struct btstack_data_source {
//
// linked item
btstack_linked_item_t item;
// file descriptor to watch for run loops that support file descriptors
int fd;
// item to watch in run loop
union {
// file descriptor for posix systems
int fd;
// handle on windows
void * handle;
};
// callback to call for enabled callback types
void (*process)(struct btstack_data_source *ds, btstack_data_source_callback_type_t callback_type);
// flags storing enabled callback types
uint16_t flags;
} btstack_data_source_t;
typedef struct btstack_timer_source {