mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-22 01:40:33 -05:00
module-avb: milan: adding mode selection
This commit is contained in:
parent
76f8ebb1f2
commit
f30a0c1864
2 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue