Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-static void example_header_done(struct uclient *cl)
+static void header_done_cb(struct uclient *cl)
-static void example_read_data(struct uclient *cl)
+static void read_data_cb(struct uclient *cl)
{
char buf[256];
int len;
{
char buf[256];
int len;
-static void example_eof(struct uclient *cl)
+static void eof_cb(struct uclient *cl)
}
static const struct uclient_cb cb = {
}
static const struct uclient_cb cb = {
- .header_done = example_header_done,
- .data_read = example_read_data,
- .data_eof = example_eof,
+ .header_done = header_done_cb,
+ .data_read = read_data_cb,
+ .data_eof = eof_cb,
.error = handle_uclient_error,
};
.error = handle_uclient_error,
};