diff options
author | root <root> | 2008-05-13 18:54:52 +0000 |
---|---|---|
committer | root <root> | 2008-05-13 18:54:52 +0000 |
commit | 760ff454608d7b39f8667f03ad9c89e729a06815 (patch) | |
tree | e987d695979ce6edc650321939181f23b2761b71 | |
parent | b75e590990962d7d68829a222860b146dc1f3a7f (diff) |
*** empty log message ***
-rw-r--r-- | eio.c | 4 | ||||
-rw-r--r-- | eio.h | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -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; @@ -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); |