struct io_cbdata {
gint fd;
rspamd_aio_cb cb;
- gsize len;
+ guint64 len;
gpointer buf;
gpointer io_buf;
gpointer ud;
* Asynchronous read of file
*/
gint
-rspamd_aio_read (gint fd, gpointer buf, gsize len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
+rspamd_aio_read (gint fd, gpointer buf, guint64 len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
{
struct io_cbdata *cbdata;
gint r = -1;
* Asynchronous write of file
*/
gint
-rspamd_aio_write (gint fd, gpointer buf, gsize len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
+rspamd_aio_write (gint fd, gpointer buf, guint64 len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
{
struct io_cbdata *cbdata;
gint r = -1;
/**
* Callback for notifying
*/
-typedef void (*rspamd_aio_cb) (gint fd, gint res, gsize len, gpointer data, gpointer ud);
+typedef void (*rspamd_aio_cb) (gint fd, gint res, guint64 len, gpointer data, gpointer ud);
/**
* Initialize aio with specified event base
/**
* Asynchronous read of file
*/
-gint rspamd_aio_read (gint fd, gpointer buf, gsize len, guint64 offset,
+gint rspamd_aio_read (gint fd, gpointer buf, guint64 len, guint64 offset,
struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud);
/**
* Asynchronous write of file
*/
-gint rspamd_aio_write (gint fd, gpointer buf, gsize len, guint64 offset,
+gint rspamd_aio_write (gint fd, gpointer buf, guint64 len, guint64 offset,
struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud);
/**