~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to tests/test-aio.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
static void set_event_notifier(AioContext *ctx, EventNotifier *notifier,
129
129
                               EventNotifierHandler *handler)
130
130
{
131
 
    aio_set_event_notifier(ctx, notifier, false, handler);
 
131
    aio_set_event_notifier(ctx, notifier, false, handler, NULL);
132
132
}
133
133
 
134
134
static void dummy_notifier_read(EventNotifier *n)
388
388
    for (i = 1; i < 3; i++) {
389
389
        EventNotifierTestData data = { .n = 0, .active = 10, .auto_set = true };
390
390
        event_notifier_init(&data.e, false);
391
 
        aio_set_event_notifier(ctx, &data.e, true, event_ready_cb);
 
391
        aio_set_event_notifier(ctx, &data.e, true, event_ready_cb, NULL);
392
392
        event_notifier_set(&data.e);
393
393
        for (j = 0; j < i; j++) {
394
394
            aio_disable_external(ctx);
835
835
    Error *local_error = NULL;
836
836
    GSource *src;
837
837
 
838
 
    init_clocks();
 
838
    init_clocks(NULL);
839
839
 
840
840
    ctx = aio_context_new(&local_error);
841
841
    if (!ctx) {