[libvirt] [RFC 5/7] Deprecate virConnectNumOfDomains()

Peter Krempa pkrempa at redhat.com
Tue Oct 2 15:28:18 UTC 2018


On Tue, Oct 02, 2018 at 17:25:34 +0200, Andrea Bolognani wrote:
> On Tue, 2018-10-02 at 16:43 +0200, Peter Krempa wrote:
> > On Tue, Oct 02, 2018 at 16:14:44 +0200, Andrea Bolognani wrote:
> [...]

> > I don't think our API contract allows for reporting an error AND
> > returning success. And even if we didn't specify it it's pretty much
> > assumed right now, so I'm not in support of this.
> 
> I'm afraid I don't have a very good answer for this concern, as
> for the most part I share it.
> 
> This is the best I could come up with on my own; hopefully other
> developers such as yourself will contribute to the discussion and
> we'll collectively come up with something much better :)

Well, my suggestion is not to do it. That won't contribute much towards
the discussion but will greatly contribute to not breaking of the code.




More information about the libvir-list mailing list