X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=uloop.h;h=b5cd0d4ddf9575c1eaf5eb4d1d621d6cffd6ed0a;hp=4be2913e3e35129de712643e9e99b811580c7601;hb=17f4e41ecb80f70c14493b4518e6eabec9faff7b;hpb=c2916d7bcca129152fbbbbedcd9990706df8760a diff --git a/uloop.h b/uloop.h index 4be2913..b5cd0d4 100644 --- a/uloop.h +++ b/uloop.h @@ -46,6 +46,9 @@ typedef void (*uloop_process_handler)(struct uloop_process *c, int ret); #define ULOOP_WRITE (1 << 1) #define ULOOP_EDGE_TRIGGER (1 << 2) #define ULOOP_BLOCKING (1 << 3) +#ifdef USE_KQUEUE +#define ULOOP_EDGE_DEFER (1 << 4) +#endif struct uloop_fd { @@ -54,6 +57,9 @@ struct uloop_fd bool eof; bool error; bool registered; +#ifdef USE_KQUEUE + bool flags; +#endif }; struct uloop_timeout