diff --git a/src/vitastor_c.cpp b/src/vitastor_c.cpp index 0836190c..9f967b80 100644 --- a/src/vitastor_c.cpp +++ b/src/vitastor_c.cpp @@ -215,7 +215,7 @@ void vitastor_c_uring_wait_events(vitastor_c *client) client->ringloop->wait(); } -bool vitastor_c_uring_has_work(vitastor_c *client) +int vitastor_c_uring_has_work(vitastor_c *client) { return client->ringloop->has_work(); } diff --git a/src/vitastor_c.h b/src/vitastor_c.h index 0eccdca1..5cd8e8a4 100644 --- a/src/vitastor_c.h +++ b/src/vitastor_c.h @@ -46,7 +46,7 @@ int vitastor_c_uring_register_eventfd(vitastor_c *client); void vitastor_c_uring_wait_ready(vitastor_c *client); void vitastor_c_uring_handle_events(vitastor_c *client); void vitastor_c_uring_wait_events(vitastor_c *client); -bool vitastor_c_uring_has_work(vitastor_c *client); +int vitastor_c_uring_has_work(vitastor_c *client); void vitastor_c_read(vitastor_c *client, uint64_t inode, uint64_t offset, uint64_t len, struct iovec *iov, int iovcnt, VitastorReadHandler cb, void *opaque); void vitastor_c_write(vitastor_c *client, uint64_t inode, uint64_t offset, uint64_t len, uint64_t check_version,