summaryrefslogtreecommitdiff
path: root/src/protocol-constants.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/protocol-constants.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/protocol-constants.h')
-rw-r--r--src/protocol-constants.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/protocol-constants.h b/src/protocol-constants.h
index 96a7376..3eb9d69 100644
--- a/src/protocol-constants.h
+++ b/src/protocol-constants.h
@@ -33,7 +33,7 @@
/* torrents */
#define FIELD_RECENTLY_ACTIVE "recently-active"
-#define FIELD_TORRENTS "torrents" /* parent node */
+#define FIELD_TORRENTS "torrents" /* parent node */
#define FIELD_REMOVED "removed"
#define FIELD_ANNOUNCE_URL "announceUrl"
#define FIELD_LEFT_UNTIL_DONE "leftUntilDone"
@@ -171,21 +171,19 @@ typedef enum {
OLD_STATUS_PAUSED = 16
} trg_old_status;
-typedef enum
-{
- TR_STATUS_STOPPED = 0, /* Torrent is stopped */
- TR_STATUS_CHECK_WAIT = 1, /* Queued to check files */
- TR_STATUS_CHECK = 2, /* Checking files */
- TR_STATUS_DOWNLOAD_WAIT = 3, /* Queued to download */
- TR_STATUS_DOWNLOAD = 4, /* Downloading */
- TR_STATUS_SEED_WAIT = 5, /* Queued to seed */
- TR_STATUS_SEED = 6 /* Seeding */
-}
-tr_torrent_activity;
+typedef enum {
+ TR_STATUS_STOPPED = 0, /* Torrent is stopped */
+ TR_STATUS_CHECK_WAIT = 1, /* Queued to check files */
+ TR_STATUS_CHECK = 2, /* Checking files */
+ TR_STATUS_DOWNLOAD_WAIT = 3, /* Queued to download */
+ TR_STATUS_DOWNLOAD = 4, /* Downloading */
+ TR_STATUS_SEED_WAIT = 5, /* Queued to seed */
+ TR_STATUS_SEED = 6 /* Seeding */
+} tr_torrent_activity;
enum {
TR_PRI_LOW = -1,
- TR_PRI_NORMAL = 0, /* since NORMAL is 0, memset initializes nicely */
+ TR_PRI_NORMAL = 0, /* since NORMAL is 0, memset initializes nicely */
TR_PRI_HIGH = 1
};
@@ -193,4 +191,4 @@ enum {
#define TFILE_BYTES_COMPLETED "bytesCompleted"
#define TFILE_NAME "name"
-#endif /* PROTOCOL_CONSTANTS_H_ */
+#endif /* PROTOCOL_CONSTANTS_H_ */