summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2011-09-27 12:36:19 +0000
committerroot <root>2011-09-27 12:36:19 +0000
commit8388c0410a5d86b20a2c892ee875c0230c355cb1 (patch)
tree667c81c6103889e604418ad29c15bcfd52625f42
parent49ed69f1c68dcaf470bdbbe15f2e2b1ba025d166 (diff)
*** empty log message ***
-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);