static void saveRatioLimits (tr_variant * dict, tr_torrent * tor) { tr_variant * d = tr_variantDictAddDict (dict, TR_KEY_ratio_limit, 2); tr_variantDictAddReal (d, TR_KEY_ratio_limit, tr_torrentGetRatioLimit (tor)); tr_variantDictAddInt (d, TR_KEY_ratio_mode, tr_torrentGetRatioMode (tor)); }
void gtr_pref_double_set (const tr_quark key, double value) { tr_variantDictAddReal (getPrefs (), key, value); }