free(cl);
}
-static void
-client_notify_write(struct ustream *s, int bytes)
-{
-}
-
static void client_notify_state(struct ustream *s)
{
client_close(s);
}
ubus_request_set_fd(ctx, req, fds[0]);
cl = calloc(1, sizeof(*cl));
- cl->s.stream.notify_write = client_notify_write;
cl->s.stream.notify_state = client_notify_state;
cl->fd = fds[1];
ustream_fd_init(&cl->s, cl->fd);
ustream_fd_init(&test_fd, fd);
}
-static void logread_complete_cb(struct ubus_request *req, int ret)
-{
-}
-
int main(int argc, char **argv)
{
static struct ubus_request req;
ubus_invoke_async(ctx, id, "read", b.head, &req);
req.fd_cb = logread_fd_cb;
- req.complete_cb = logread_complete_cb;
ubus_complete_request_async(ctx, &req);
uloop_run();