summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eio.c4
-rw-r--r--eio.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/eio.c b/eio.c
index a65b617..ca7d27a 100644
--- a/eio.c
+++ b/eio.c
@@ -1073,6 +1073,8 @@ static void eio_api_destroy (eio_req *req)
return 0; \
}
+#ifndef EIO_NO_WRAPPERS
+
eio_req *eio_nop (int pri, eio_cb cb, void *data)
{
REQ (EIO_NOP); SEND;
@@ -1255,6 +1257,8 @@ eio_req *eio_rename (const char *path, const char *new_path, int pri, eio_cb cb,
return eio__2path (EIO_RENAME, path, new_path, pri, cb, data);
}
+#endif
+
eio_req *eio_grp (eio_cb cb, void *data)
{
const int pri = EIO_PRI_MAX;
diff --git a/eio.h b/eio.h
index 2da2557..efc4c8f 100644
--- a/eio.h
+++ b/eio.h
@@ -115,6 +115,7 @@ unsigned int eio_nthreads (void); /* number of worker threads in use currently *
/*****************************************************************************/
/* high-level request API */
+#ifndef EIO_NO_WRAPPERS
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);
@@ -147,6 +148,7 @@ eio_req *eio_mknod (const char *path, mode_t mode, dev_t dev, int pri, eio_c
eio_req *eio_link (const char *path, const char *new_path, int pri, eio_cb cb, void *data);
eio_req *eio_symlink (const char *path, const char *new_path, int pri, eio_cb cb, void *data);
eio_req *eio_rename (const char *path, const char *new_path, int pri, eio_cb cb, void *data);
+#endif
/* for groups */
eio_req *eio_grp (eio_cb cb, void *data);