added data_source flags

This commit is contained in:
matthias.ringwald 2010-06-29 21:06:14 +00:00
parent 88bc6ea8e4
commit 2cf3483ca6

View File

@ -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 {