summaryrefslogtreecommitdiff
path: root/src/torrent.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-11 15:06:01 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-11 15:06:01 +0000
commit0d08a471f9ebfdfadded6c92abc700c706475644 (patch)
tree2c49e445ccca81f5af70244e89a15585757798d6 /src/torrent.h
parent24195d0013f81933578afa14a44a10e4b75817dd (diff)
run GNU indent everything. not done this for a while because it was producing weird results. seems ok now.
Diffstat (limited to 'src/torrent.h')
-rw-r--r--src/torrent.h53
1 files changed, 27 insertions, 26 deletions
diff --git a/src/torrent.h b/src/torrent.h
index 8543f89..93bb920 100644
--- a/src/torrent.h
+++ b/src/torrent.h
@@ -41,8 +41,8 @@
#define FILTER_FLAG_TRACKER (1 << 14)
#define FILTER_FLAG_DIR (1 << 15)
-#define TORRENT_ADD_FLAG_PAUSED (1 << 0) /* 0x01 */
-#define TORRENT_ADD_FLAG_DELETE (1 << 1) /* 0x02 */
+#define TORRENT_ADD_FLAG_PAUSED (1 << 0) /* 0x01 */
+#define TORRENT_ADD_FLAG_DELETE (1 << 1) /* 0x02 */
gint64 torrent_get_size(JsonObject * t);
const gchar *torrent_get_name(JsonObject * t);
@@ -58,7 +58,8 @@ gint64 torrent_get_have_valid(JsonObject * t);
gint64 torrent_get_status(JsonObject * t);
gchar *torrent_get_status_string(gint64 rpcv, gint64 value, guint flags);
gchar *torrent_get_status_icon(gint64 rpcv, guint flags);
-guint32 torrent_get_flags(JsonObject * t, gint64 rpcv, gint64 status, gint64 downRate, gint64 upRate);
+guint32 torrent_get_flags(JsonObject * t, gint64 rpcv, gint64 status,
+ gint64 downRate, gint64 upRate);
JsonArray *torrent_get_peers(JsonObject * t);
JsonObject *torrent_get_peersfrom(JsonObject * t);
JsonArray *torrent_get_tracker_stats(JsonObject * t);
@@ -66,9 +67,9 @@ JsonArray *torrent_get_wanted(JsonObject * t);
JsonArray *torrent_get_priorities(JsonObject * t);
gint64 torrent_get_id(JsonObject * t);
JsonArray *torrent_get_files(JsonObject * args);
-gint64 torrent_get_peers_getting_from_us(JsonObject *args);
-gint64 torrent_get_peers_sending_to_us(JsonObject *args);
-gint64 torrent_get_peers_connected(JsonObject *args);
+gint64 torrent_get_peers_getting_from_us(JsonObject * args);
+gint64 torrent_get_peers_sending_to_us(JsonObject * args);
+gint64 torrent_get_peers_connected(JsonObject * args);
gdouble torrent_get_percent_done(JsonObject * t);
gdouble torrent_get_recheck_progress(JsonObject * t);
gint64 torrent_get_left_until_done(JsonObject * t);
@@ -86,11 +87,11 @@ gdouble torrent_get_seed_ratio_limit(JsonObject * t);
gint64 torrent_get_seed_ratio_mode(JsonObject * t);
gint64 torrent_get_peer_limit(JsonObject * t);
gboolean torrent_has_tracker(JsonObject * t, GRegex * rx, gchar * search);
-gint64 torrent_get_queue_position(JsonObject *args);
-gint64 torrent_get_activity_date(JsonObject *t);
+gint64 torrent_get_queue_position(JsonObject * args);
+gint64 torrent_get_activity_date(JsonObject * t);
gchar *torrent_get_full_dir(JsonObject * obj);
-gchar *torrent_get_full_path(JsonObject *obj);
-gdouble torrent_get_metadata_percent_complete(JsonObject *t);
+gchar *torrent_get_full_path(JsonObject * obj);
+gdouble torrent_get_metadata_percent_complete(JsonObject * t);
/* outer response object */
@@ -103,14 +104,14 @@ const gchar *tracker_stats_get_announce(JsonObject * t);
const gchar *tracker_stats_get_scrape(JsonObject * t);
gint64 tracker_stats_get_tier(JsonObject * t);
gint64 tracker_stats_get_id(JsonObject * t);
-gint64 tracker_stats_get_last_announce_peer_count(JsonObject *t);
-gint64 tracker_stats_get_last_announce_time(JsonObject *t);
-gint64 tracker_stats_get_seeder_count(JsonObject *t);
-gint64 tracker_stats_get_leecher_count(JsonObject *t);
-gint64 tracker_stats_get_download_count(JsonObject *t);
-const gchar *tracker_stats_get_announce_result(JsonObject *t);
-const gchar *tracker_stats_get_host(JsonObject *t);
-gint64 tracker_stats_get_last_scrape_time(JsonObject *t);
+gint64 tracker_stats_get_last_announce_peer_count(JsonObject * t);
+gint64 tracker_stats_get_last_announce_time(JsonObject * t);
+gint64 tracker_stats_get_seeder_count(JsonObject * t);
+gint64 tracker_stats_get_leecher_count(JsonObject * t);
+gint64 tracker_stats_get_download_count(JsonObject * t);
+const gchar *tracker_stats_get_announce_result(JsonObject * t);
+const gchar *tracker_stats_get_host(JsonObject * t);
+gint64 tracker_stats_get_last_scrape_time(JsonObject * t);
/* files */
@@ -131,11 +132,11 @@ gint64 peer_get_rate_to_peer(JsonObject * p);
gboolean peer_get_is_uploading_to(JsonObject * p);
gboolean peer_get_is_downloading_from(JsonObject * p);
-gint64 peerfrom_get_pex(JsonObject *pf);
-gint64 peerfrom_get_dht(JsonObject *pf);
-gint64 peerfrom_get_trackers(JsonObject *pf);
-gint64 peerfrom_get_ltep(JsonObject *pf);
-gint64 peerfrom_get_resume(JsonObject *pf);
-gint64 peerfrom_get_incoming(JsonObject *pf);
-gint64 peerfrom_get_lpd(JsonObject *pf);
-#endif /* TORRENT_H_ */
+gint64 peerfrom_get_pex(JsonObject * pf);
+gint64 peerfrom_get_dht(JsonObject * pf);
+gint64 peerfrom_get_trackers(JsonObject * pf);
+gint64 peerfrom_get_ltep(JsonObject * pf);
+gint64 peerfrom_get_resume(JsonObject * pf);
+gint64 peerfrom_get_incoming(JsonObject * pf);
+gint64 peerfrom_get_lpd(JsonObject * pf);
+#endif /* TORRENT_H_ */