summaryrefslogtreecommitdiff
path: root/uring.h
diff options
context:
space:
mode:
Diffstat (limited to 'uring.h')
-rw-r--r--uring.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/uring.h b/uring.h
index 83119a1..935720d 100644
--- a/uring.h
+++ b/uring.h
@@ -7,6 +7,8 @@ void uring_task_put(struct cfg *cfg, struct uring_task *task);
void uring_task_get(struct cfg *cfg, struct uring_task *task);
+void uring_task_set_buf(struct uring_task *task, struct uring_task_buf *tbuf);
+
void uring_task_set_fd(struct uring_task *task, int fd);
void uring_task_close_fd(struct cfg *cfg, struct uring_task *task);
@@ -20,9 +22,17 @@ void uring_task_init(struct uring_task *task, const char *name,
void uring_close(struct cfg *cfg, struct uring_task *task, int fd,
callback_t callback);
+void uring_tbuf_write(struct cfg *cfg, struct uring_task *task, callback_t callback);
+
void uring_write(struct cfg *cfg, struct uring_task *task, void *buf,
size_t len, callback_t callback);
+void uring_tbuf_read_until(struct cfg *cfg, struct uring_task *task,
+ rcallback_t complete, callback_t callback);
+
+void uring_tbuf_read_until_eof(struct cfg *cfg, struct uring_task *task,
+ callback_t callback);
+
void uring_read(struct cfg *cfg, struct uring_task *task, void *buf,
size_t len, off_t offset, callback_t callback);