extern struct avl_tree services;
int cache_init(void);
-void cache_scan(void);
+void cache_update(void);
void cache_cleanup(struct interface *iface);
void cache_answer(struct interface *iface, uint8_t *base, int blen,
char *name, struct dns_answer *a, uint8_t *rdata, int flush);
}
static int
-umdns_scan(struct ubus_context *ctx, struct ubus_object *obj,
+umdns_update(struct ubus_context *ctx, struct ubus_object *obj,
struct ubus_request_data *req, const char *method,
struct blob_attr *msg)
{
- cache_scan();
+ cache_update();
return 0;
}
UBUS_METHOD("set_config", umdns_set_config, config_policy),
UBUS_METHOD("query", umdns_query, query_policy),
UBUS_METHOD("fetch", umdns_query, query_policy),
- UBUS_METHOD_NOARG("scan", umdns_scan),
+ UBUS_METHOD_NOARG("update", umdns_update),
UBUS_METHOD_NOARG("browse", umdns_browse),
UBUS_METHOD_NOARG("hosts", umdns_hosts),
UBUS_METHOD_NOARG("reload", umdns_reload),