From eca35c468094fc6b7177f33ef51fa873eb88e79c Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Sun, 30 Jan 2011 10:57:07 +0000 Subject: hello world! --- src/session-get.h | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 src/session-get.h (limited to 'src/session-get.h') diff --git a/src/session-get.h b/src/session-get.h new file mode 100644 index 0000000..26e15e6 --- /dev/null +++ b/src/session-get.h @@ -0,0 +1,89 @@ +/* + * transmission-remote-gtk - A GTK RPC client to Transmission + * Copyright (C) 2010 Alan Fitton + + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef SESSION_GET_H_ +#define SESSION_GET_H_ + +#include + +#define SGET_ALT_SPEED_DOWN "alt-speed-down" +#define SGET_ALT_SPEED_ENABLED "alt-speed-enabled" +#define SGET_ALT_SPEED_TIME_BEGIN "alt-speed-time-begin" +#define SGET_ALT_SPEED_TIME_DAY "alt-speed-time-day" +#define SGET_ALT_SPEED_TIME_END "alt-speed-time-end" +#define SGET_ALT_SPEED_UP "alt-speed-up" +#define SGET_BLOCKLIST_ENABLED "blocklist-enabled" +#define SGET_BLOCKLIST_URL "blocklist-url" +#define SGET_BLOCKLIST_SIZE "blocklist-size" +#define SGET_DHT_ENABLED "dht-enabled" +#define SGET_LPD_ENABLED "lpd-enabled" +#define SGET_DOWNLOAD_DIR "download-dir" +#define SGET_INCOMPLETE_DIR "incomplete-dir" +#define SGET_INCOMPLETE_DIR_ENABLED "incomplete-dir-enabled" +#define SGET_ENCRYPTION "encryption" +#define SGET_PEER_LIMIT_GLOBAL "peer-limit-global" +#define SGET_PEER_LIMIT_PER_TORRENT "peer-limit-per-torrent" +#define SGET_PEER_PORT "peer-port" +#define SGET_PEER_PORT_RANDOM_ON_START "peer-port-random-on-start" +#define SGET_PEX_ENABLED "pex-enabled" +#define SGET_PORT_FORWARDING_ENABLED "port-forwarding-enabled" +#define SGET_RPC_VERSION "rpc-version" +#define SGET_RPC_VERSION_MINIMUM "rpc-version-minimum" +#define SGET_SEED_RATIO_LIMIT "seedRatioLimit" +#define SGET_SEED_RATIO_LIMITED "seedRatioLimited" +#define SGET_SPEED_LIMIT_DOWN "speed-limit-down" +#define SGET_SPEED_LIMIT_DOWN_ENABLED "speed-limit-down-enabled" +#define SGET_SPEED_LIMIT_UP "speed-limit-up" +#define SGET_SPEED_LIMIT_UP_ENABLED "speed-limit-up-enabled" +#define SGET_VERSION "version" +#define SGET_TRASH_ORIGINAL_TORRENT_FILES "trash-original-torrent-files" +#define SGET_START_ADDED_TORRENTS "start-added-torrents" +#define SGET_RENAME_PARTIAL_FILES "rename-partial-files" +#define SGET_CACHE_SIZE_MB "cache-size-mb" +#define SGET_SCRIPT_TORRENT_DONE_FILENAME "script-torrent-done-filename" +#define SGET_SCRIPT_TORRENT_DONE_ENABLED "script-torrent-done-enabled" + +const gchar *session_get_torrent_done_filename(JsonObject * s); +gboolean session_get_torrent_done_enabled(JsonObject * s); +gint64 session_get_cache_size_mb(JsonObject * s); +int session_get_version(JsonObject * s, float *version, int *revision); +gboolean session_get_pex_enabled(JsonObject * s); +gboolean session_get_lpd_enabled(JsonObject * s); +const gchar *session_get_download_dir(JsonObject * s); +gboolean session_get_peer_port_random(JsonObject * s); +gint64 session_get_peer_port(JsonObject * s); +gint64 session_get_peer_limit_global(JsonObject * s); +gint64 session_get_peer_limit_per_torrent(JsonObject * s); +gboolean session_get_port_forwarding_enabled(JsonObject * s); +const gchar *session_get_blocklist_url(JsonObject * s); +gboolean session_get_blocklist_enabled(JsonObject * s); +gboolean session_get_rename_partial_files(JsonObject * s); +const gchar *session_get_encryption(JsonObject * s); +const gchar *session_get_incomplete_dir(JsonObject * s); +gboolean session_get_incomplete_dir_enabled(JsonObject * s); +gboolean session_get_seed_ratio_limited(JsonObject * s); +gdouble session_get_seed_ratio_limit(JsonObject * s); +gboolean session_get_start_added_torrents(JsonObject * s); +gboolean session_get_trash_original_torrent_files(JsonObject * s); +gboolean session_get_speed_limit_up_enabled(JsonObject * s); +gint64 session_get_speed_limit_up(JsonObject * s); +gboolean session_get_speed_limit_down_enabled(JsonObject * s); +gint64 session_get_speed_limit_down(JsonObject * s); + +#endif /* SESSION_GET_H_ */ -- cgit v1.2.3