aio: make aio_set_fd_poll() static to aio-posix.c

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Message-Id: <20230221124802.4103554-9-marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2023-02-21 16:47:53 +04:00
parent a4aafea261
commit 6eeef4477a
3 changed files with 3 additions and 18 deletions

View File

@ -482,14 +482,6 @@ void aio_set_fd_handler(AioContext *ctx,
IOHandler *io_poll_ready, IOHandler *io_poll_ready,
void *opaque); void *opaque);
/* Set polling begin/end callbacks for a file descriptor that has already been
* registered with aio_set_fd_handler. Do nothing if the file descriptor is
* not registered.
*/
void aio_set_fd_poll(AioContext *ctx, int fd,
IOHandler *io_poll_begin,
IOHandler *io_poll_end);
/* Register an event notifier and associated callbacks. Behaves very similarly /* Register an event notifier and associated callbacks. Behaves very similarly
* to event_notifier_set_handler. Unlike event_notifier_set_handler, these callbacks * to event_notifier_set_handler. Unlike event_notifier_set_handler, these callbacks
* will be invoked when using aio_poll(). * will be invoked when using aio_poll().

View File

@ -180,9 +180,9 @@ void aio_set_fd_handler(AioContext *ctx,
} }
} }
void aio_set_fd_poll(AioContext *ctx, int fd, static void aio_set_fd_poll(AioContext *ctx, int fd,
IOHandler *io_poll_begin, IOHandler *io_poll_begin,
IOHandler *io_poll_end) IOHandler *io_poll_end)
{ {
AioHandler *node = find_aio_handler(ctx, fd); AioHandler *node = find_aio_handler(ctx, fd);

View File

@ -125,13 +125,6 @@ void aio_set_fd_handler(AioContext *ctx,
aio_notify(ctx); aio_notify(ctx);
} }
void aio_set_fd_poll(AioContext *ctx, int fd,
IOHandler *io_poll_begin,
IOHandler *io_poll_end)
{
/* Not implemented */
}
void aio_set_event_notifier(AioContext *ctx, void aio_set_event_notifier(AioContext *ctx,
EventNotifier *e, EventNotifier *e,
bool is_external, bool is_external,