diff options
Diffstat (limited to 'mesh/mesh-io.c')
-rw-r--r-- | mesh/mesh-io.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesh/mesh-io.c b/mesh/mesh-io.c index 94a92e885..95a99b6a5 100644 --- a/mesh/mesh-io.c +++ b/mesh/mesh-io.c @@ -52,7 +52,8 @@ static bool match_by_type(const void *a, const void *b) return io->type == type; } -struct mesh_io *mesh_io_new(enum mesh_io_type type, void *opts) +struct mesh_io *mesh_io_new(enum mesh_io_type type, void *opts, + mesh_io_ready_func_t cb, void *user_data) { const struct mesh_io_api *api = NULL; struct mesh_io *io; @@ -78,7 +79,7 @@ struct mesh_io *mesh_io_new(enum mesh_io_type type, void *opts) io->type = type; io->api = api; - if (!api->init(io, opts)) + if (!api->init(io, opts, cb, user_data)) goto fail; if (!io_list) |