]> granicus.if.org Git - transmission/commitdiff
(trunk libT) this is so minor I hesitate to commit it, but... save 16 bytes per torre...
authorCharles Kerr <charles@transmissionbt.com>
Wed, 24 Jun 2009 04:36:18 +0000 (04:36 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Wed, 24 Jun 2009 04:36:18 +0000 (04:36 +0000)
libtransmission/transmission.h

index 45551e12bd94db2a817bfe81427b79d4a2b5ed07..2a388cb2a2eb7093b876e737fa7b24a819bf286b 100644 (file)
@@ -1284,41 +1284,41 @@ tr_piece;
 /** @brief information about a torrent that comes from its metainfo file */
 struct tr_info
 {
-    /* Flags */
-    tr_bool            isPrivate;
-    tr_bool            isMultifile;
-
-    /* General info */
-    uint8_t            hash[SHA_DIGEST_LENGTH];
-    char               hashString[2 * SHA_DIGEST_LENGTH + 1];
-    char            *  name;
+    /* total size of the torrent, in bytes */
+    uint64_t           totalSize;
 
-    /* Path to torrent Transmission's internal copy of the .torrent file.
-       This field exists for compatability reasons in the Mac OS X client
-       and should not be used in new code. */
-    char            *  torrent;
+    /* the torrent's name */
+    char             * name;
 
-    /* these trackers are sorted by tier */
-    tr_tracker_info *  trackers;
-    int                trackerCount;
+    /* Path to torrent Transmission's internal copy of the .torrent file. */
+    char             * torrent;
 
-    char           **  webseeds;
-    int                webseedCount;
+    char            ** webseeds;
 
-    /* Torrent info */
     char             * comment;
     char             * creator;
+    tr_file          * files;
+    tr_piece         * pieces;
+
+    /* these trackers are sorted by tier */
+    tr_tracker_info  * trackers;
+
+    /* Torrent info */
     time_t             dateCreated;
 
-    /* Pieces info */
+    int                trackerCount;
+    int                webseedCount;
+    tr_file_index_t    fileCount;
     uint32_t           pieceSize;
     tr_piece_index_t   pieceCount;
-    uint64_t           totalSize;
-    tr_piece *         pieces;
 
-    /* Files info */
-    tr_file_index_t    fileCount;
-    tr_file *          files;
+    /* General info */
+    uint8_t            hash[SHA_DIGEST_LENGTH];
+    char               hashString[2 * SHA_DIGEST_LENGTH + 1];
+
+    /* Flags */
+    tr_bool            isPrivate;
+    tr_bool            isMultifile;
 };
 
 /**