si-adapter/simple-node-endpoint: propagate node.autoconnect as endpoint.autoconnect

This commit is contained in:
George Kiagiadakis 2020-06-16 16:41:01 +03:00
parent 66f2e535cf
commit d50e32fc47
2 changed files with 4 additions and 0 deletions

View file

@ -408,6 +408,8 @@ si_adapter_get_properties (WpSiEndpoint * item)
wp_properties_set (result, "endpoint.description",
wp_properties_get (node_props, PW_KEY_NODE_DESCRIPTION));
wp_properties_set (result, PW_KEY_ENDPOINT_AUTOCONNECT,
wp_properties_get (node_props, PW_KEY_NODE_AUTOCONNECT));
/* propagate the device icon, if this is a device */
const gchar *icon = wp_properties_get (node_props, PW_KEY_DEVICE_ICON_NAME);

View file

@ -273,6 +273,8 @@ si_simple_node_endpoint_get_properties (WpSiEndpoint * item)
wp_properties_set (result, "endpoint.description",
wp_properties_get (node_props, PW_KEY_NODE_DESCRIPTION));
wp_properties_set (result, PW_KEY_ENDPOINT_AUTOCONNECT,
wp_properties_get (node_props, PW_KEY_NODE_AUTOCONNECT));
/* propagate the device icon, if this is a device */
const gchar *icon = wp_properties_get (node_props, PW_KEY_DEVICE_ICON_NAME);