Revision f2e5dca4 include/block/aio.h

b/include/block/aio.h
74 74
    struct ThreadPool *thread_pool;
75 75
} AioContext;
76 76

  
77
/* Returns 1 if there are still outstanding AIO requests; 0 otherwise */
78
typedef int (AioFlushEventNotifierHandler)(EventNotifier *e);
79

  
80 77
/**
81 78
 * aio_context_new: Allocate a new AioContext.
82 79
 *
......
198 195
bool aio_poll(AioContext *ctx, bool blocking);
199 196

  
200 197
#ifdef CONFIG_POSIX
201
/* Returns 1 if there are still outstanding AIO requests; 0 otherwise */
202
typedef int (AioFlushHandler)(void *opaque);
203

  
204 198
/* Register a file descriptor and associated callbacks.  Behaves very similarly
205 199
 * to qemu_set_fd_handler2.  Unlike qemu_set_fd_handler2, these callbacks will
206 200
 * be invoked when using qemu_aio_wait().
......
212 206
                        int fd,
213 207
                        IOHandler *io_read,
214 208
                        IOHandler *io_write,
215
                        AioFlushHandler *io_flush,
216 209
                        void *opaque);
217 210
#endif
218 211

  
......
225 218
 */
226 219
void aio_set_event_notifier(AioContext *ctx,
227 220
                            EventNotifier *notifier,
228
                            EventNotifierHandler *io_read,
229
                            AioFlushEventNotifierHandler *io_flush);
221
                            EventNotifierHandler *io_read);
230 222

  
231 223
/* Return a GSource that lets the main loop poll the file descriptors attached
232 224
 * to this AioContext.
......
240 232

  
241 233
bool qemu_aio_wait(void);
242 234
void qemu_aio_set_event_notifier(EventNotifier *notifier,
243
                                 EventNotifierHandler *io_read,
244
                                 AioFlushEventNotifierHandler *io_flush);
235
                                 EventNotifierHandler *io_read);
245 236

  
246 237
#ifdef CONFIG_POSIX
247 238
void qemu_aio_set_fd_handler(int fd,
248 239
                             IOHandler *io_read,
249 240
                             IOHandler *io_write,
250
                             AioFlushHandler *io_flush,
251 241
                             void *opaque);
252 242
#endif
253 243

  

Also available in: Unified diff