summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eio.c10
-rw-r--r--eio.h2
2 files changed, 12 insertions, 0 deletions
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);