On 4/27/22 15:41, Mark Cave-Ayland wrote:
+                select_soundhw(model, dev->id);
+                g_free(model);
                  break;
+            }
              case QEMU_OPTION_h:
                  help(0);
                  break;

Is it possible to change select_soundhw() to take an AudioDev pointer rather than a string, and then add a new qdev_prop_set_audiodev() function similar to qdev_prop_set_chr() and qdev_prop_set_netdev()?

In reality the underlying QOM property is still a string, but I think having the stronger typing for AudioDev properties is useful and potentially allows for the various *dev backend properties to become QOM links in future.

I didn't consider that because there are just two uses and I don't expect them to grow much, but yes it's possible.

Paolo

Reply via email to