On Wed, Nov 19, 2014 at 4:31 PM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote: > On Wed, Nov 19, 2014 at 02:10:11PM +0000, Zeeshan Ali (Khattak) wrote: >> However, there is still the issue of this API not being convenient for >> app if it takes a GVirConfigDomainGraphics *. They'll have to get the >> GVirConfigDomain pointer and get list of devices and and find the >> graphics device themselves while most domains have just one graphics >> device typically. > > We could abuse the meaning of a NULL VirConfigDomainGraphics to mean > index 0. Note that I did not suggest not having the 'index' API at all > as we probably want to have it for consistency, but that my question was > about having an additional API which is probably nicer when you have > multiple graphics nodes in your libvirt domain definition. Hmm.. sure. -- Regards, Zeeshan Ali (Khattak) ________________________________________ Befriend GNOME: http://www.gnome.org/friends/ -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list