wfd-mice-sink: use the hostname as device name
requested to merge tuomasn/gnome-network-displays:advertise-hostname-as-device-name-updated into master
Rebased & updated version of an earlier merge request by Antoine C. Compiles, but have not tested yet. Might contain errors, not overly confident yet with this. Will un-draft after testing. Ok, tested with a Windows 10 computer as a sink, seems to work. When setting an artificially long (>600 bytes) hostname, it is successfully shortened to 129 bytes - however, win10 displays only first 32 characters anyhow.
Instead of using "GNOME" as device name when publishing capability to MICE receiver, it will now try to use the device hostname.
Fixes: #278 (closed)
Edited by Tuomas Nurmi