From 8388c0410a5d86b20a2c892ee875c0230c355cb1 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 27 Sep 2011 12:36:19 +0000 Subject: *** empty log message *** --- eio.c | 10 ++++++++++ eio.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/eio.c b/eio.c index ff7301a..0a7115c 100644 --- a/eio.c +++ b/eio.c @@ -2476,6 +2476,16 @@ eio_execute (etp_worker *self, eio_req *req) #ifndef EIO_NO_WRAPPERS +eio_req *eio_wd_open (const char *path, int pri, eio_cb cb, void *data) +{ + REQ (EIO_WD_OPEN); PATH; SEND; +} + +eio_req *eio_wd_close (eio_wd wd, int pri, eio_cb cb, void *data) +{ + REQ (EIO_WD_CLOSE); req->wd = wd; SEND; +} + eio_req *eio_nop (int pri, eio_cb cb, void *data) { REQ (EIO_NOP); SEND; diff --git a/eio.h b/eio.h index 812a941..b2bf160 100644 --- a/eio.h +++ b/eio.h @@ -312,6 +312,8 @@ unsigned int eio_nthreads (void); /* number of worker threads in use currently * /* convenience wrappers */ #ifndef EIO_NO_WRAPPERS +eio_req *eio_wd_open (const char *path, int pri, eio_cb cb, void *data); /* result=wd */ +eio_req *eio_wd_close (eio_wd wd, int pri, eio_cb cb, void *data); eio_req *eio_nop (int pri, eio_cb cb, void *data); /* does nothing except go through the whole process */ eio_req *eio_busy (eio_tstamp delay, int pri, eio_cb cb, void *data); /* ties a thread for this long, simulating busyness */ eio_req *eio_sync (int pri, eio_cb cb, void *data); -- cgit v1.2.3