Do not use bool in C library
parent
b963f2fd93
commit
4a4627dcab
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue