예제 #1
0
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));
}
예제 #2
0
파일: conf.c 프로젝트: AllardJ/Tomato
void
gtr_pref_double_set (const tr_quark key, double value)
{
  tr_variantDictAddReal (getPrefs (), key, value);
}