bbfdmd: Show only usp schema when registering the services

This commit is contained in:
Amin Ben Romdhane 2025-05-22 10:55:41 +02:00
parent a20a15888b
commit 08cf6a9725

View file

@ -96,6 +96,10 @@ void fill_service_schema(struct ubus_context *ubus_ctx, int ubus_timeout, const
blobmsg_add_string(&bb, "path", BBFDM_ROOT_OBJECT);
void *table = blobmsg_open_table(&bb, "optional");
blobmsg_add_string(&bb, "proto", "usp");
blobmsg_close_table(&bb, table);
int err = ubus_invoke(ubus_ctx, ubus_id, "schema", bb.head, receive_schema_result, (void *)*service_schema, ubus_timeout);
if (err != 0) {