module-avb: milan: adding mode selection

This commit is contained in:
hackerman-kl 2025-11-28 09:41:56 +01:00 committed by Wim Taymans
parent 76f8ebb1f2
commit f30a0c1864
2 changed files with 8 additions and 0 deletions

View file

@ -252,6 +252,12 @@ struct server *avdecc_server_new(struct impl *impl, struct spa_dict *props)
spa_list_append(&impl->servers, &server->link);
str = spa_dict_lookup(props, "ifname");
server->ifname = str ? strdup(str) : NULL;
if ((str = spa_dict_lookup(props, "milan")) != NULL)
server->milan = spa_atob(str);
else
server->milan = false;
spa_hook_list_init(&server->listener_list);
spa_list_init(&server->descriptors);

View file

@ -57,6 +57,8 @@ struct server {
struct impl *impl;
char *ifname;
/** Parsed from the configuration pipewire-avb.conf */
bool milan;
uint8_t mac_addr[6];
uint64_t entity_id;
int ifindex;