Lines Matching refs:db
316 void libxl_defbool_set(libxl_defbool *db, bool b) in libxl_defbool_set() argument
318 db->val = b ? LIBXL__DEFBOOL_TRUE : LIBXL__DEFBOOL_FALSE; in libxl_defbool_set()
321 void libxl_defbool_unset(libxl_defbool *db) in libxl_defbool_unset() argument
323 db->val = LIBXL__DEFBOOL_DEFAULT; in libxl_defbool_unset()
326 bool libxl_defbool_is_default(libxl_defbool db) in libxl_defbool_is_default() argument
328 return !db.val; in libxl_defbool_is_default()
331 void libxl_defbool_setdefault(libxl_defbool *db, bool b) in libxl_defbool_setdefault() argument
333 if (libxl_defbool_is_default(*db)) in libxl_defbool_setdefault()
334 libxl_defbool_set(db, b); in libxl_defbool_setdefault()
337 bool libxl_defbool_val(libxl_defbool db) in libxl_defbool_val() argument
339 assert(!libxl_defbool_is_default(db)); in libxl_defbool_val()
340 return db.val > 0; in libxl_defbool_val()