util: Add functions to simplify bool->virTristate(Bool|Switch) assignment
virTristateBoolFromBool and virTristateSwitchFromBool convert a boolean to the correct enum value.
Showing
想要评论请 注册 或 登录
virTristateBoolFromBool and virTristateSwitchFromBool convert a boolean to the correct enum value.