mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
a250690f30
* fix: break will never be executed * fix: rewrite rimraf() to be non-throwing * fix: conditional operation returns same value whether condition is true or false * fix: use std::array instead of a C-style array * fix: remove redundant access specifier * fix: replace switch with if for readability * fix: convert integer literal to a bool literal * fix: replace const std::string reference to std::string_view * fix: remove redundant access specifier * fix: replace const std::string reference to std::string_view * fix: remove unused parameter * fix: remove redundant access specifier * fix: use std::array instead of C-style array * fix: remove redundant access specifier * fix: replace const std::string reference with std::string_view * fix: remove redundant access specifier * fix: use std::array instead of C-style array * fix: remove redundant access specifier * fix: replace const std::string reference to std::string_view * fix: remove redundant access specifier * fix: merge if statement with enclosing one * chore: clang-format * chore: clang-format * Revert "fix: remove redundant access specifier" This reverts commit054e4e7eec
. * Revert "fix: remove redundant access specifier" This reverts commit2c92f227e8
. * Revert "fix: remove redundant access specifier" This reverts commita0710202a8
. * Revert "fix: remove redundant access specifier" This reverts commit54da1d9397
. * Revert "fix: remove redundant access specifier" This reverts commitf7b1777578
. * Revert "fix: remove redundant access specifier" This reverts commitad8e3dfff4
. * chore: revert access specifier change
32 lines
1,006 B
C++
32 lines
1,006 B
C++
// This file copyright (C) 2005-2022 Transmission authors and contributors.
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
// License text can be found in the licenses/ folder.
|
|
|
|
#pragma once
|
|
|
|
#include <inttypes.h>
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <vector>
|
|
|
|
#include <libtransmission/transmission.h> /* tr_variant, tr_session */
|
|
#include <libtransmission/quark.h>
|
|
|
|
void gtr_pref_init(std::string_view config_dir);
|
|
|
|
int64_t gtr_pref_int_get(tr_quark const key);
|
|
void gtr_pref_int_set(tr_quark const key, int64_t value);
|
|
|
|
double gtr_pref_double_get(tr_quark const key);
|
|
void gtr_pref_double_set(tr_quark const key, double value);
|
|
|
|
bool gtr_pref_flag_get(tr_quark const key);
|
|
void gtr_pref_flag_set(tr_quark const key, bool value);
|
|
|
|
std::vector<std::string> gtr_pref_strv_get(tr_quark const key);
|
|
|
|
std::string gtr_pref_string_get(tr_quark const key);
|
|
void gtr_pref_string_set(tr_quark const key, std::string_view value);
|
|
|
|
void gtr_pref_save(tr_session*);
|
|
tr_variant* gtr_pref_get_all();
|