ops->request_done(cl);
}
-static void uh_ubus_send_request(struct client *cl, json_object *obj, const char *sid, struct blob_attr *args)
+static void uh_ubus_send_request(struct client *cl, const char *sid, struct blob_attr *args)
{
struct dispatch *d = &cl->dispatch;
struct dispatch_ubus *du = &d->ubus;
blobmsg_close_table(data->buf, o);
}
-static void uh_ubus_send_list(struct client *cl, json_object *obj, struct blob_attr *params)
+static void uh_ubus_send_list(struct client *cl, struct blob_attr *params)
{
struct blob_attr *cur, *dup;
struct list_data data = { .buf = &cl->dispatch.ubus.buf, .verbose = false };
goto error;
}
- uh_ubus_send_request(cl, obj, data.sid, data.data);
+ uh_ubus_send_request(cl, data.sid, data.data);
goto out;
}
else if (!strcmp(data.method, "list")) {
- uh_ubus_send_list(cl, obj, data.params);
+ uh_ubus_send_list(cl, data.params);
goto out;
}
else {