You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some methods, e.g. NetworkGetDhcpLeases have a NeedResults parameter of type int32. What is the meaning of this parameter, is this a flag indicating that we need a result list, so I should pass in 1 or is this the number (max?) of results to be expected?
The text was updated successfully, but these errors were encountered:
@CarstenLeue we stumbled over the same question. NeedResults specifies whether the method should return the actual result list or not and is used as a boolean flag.
Pointer to a variable to store the array containing domain objects or NULL if the list is not required (just returns number of guests).
Go-libvirt emulates this behavior and returns an empty list if NeedResults is set to 0, while returning the actual objects if it is set to 1.
This could have been mentioned in the docs here somewhere though.
Some methods, e.g.
NetworkGetDhcpLeases
have aNeedResults
parameter of typeint32
. What is the meaning of this parameter, is this a flag indicating that we need a result list, so I should pass in1
or is this the number (max?) of results to be expected?The text was updated successfully, but these errors were encountered: