summaryrefslogtreecommitdiff
path: root/src/Segment.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-22 16:01:54 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-22 16:01:54 +0000
commit44beebd257b0fb265bea5387850b9beb33c0adc2 (patch)
tree0ec08e4aad18ccff2d578aca1c0b3799d2716c6c /src/Segment.h
parentd027ca8e7c383e9755d6fb997e8a880df99e88b9 (diff)
parent87a229cab18679042beb06076e5dec1dcfadaeae (diff)
Tagging release 0.2.0 of aria2release-0.2.0
Diffstat (limited to 'src/Segment.h')
-rw-r--r--src/Segment.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Segment.h b/src/Segment.h
index c6c2b36c..035282ae 100644
--- a/src/Segment.h
+++ b/src/Segment.h
@@ -22,6 +22,10 @@
#ifndef _D_SEGMENT_H_
#define _D_SEGMENT_H_
+#include <vector>
+
+using namespace std;
+
/**
* Segment represents a download segment.
* sp, ep is a offset from a begining of a file.
@@ -36,9 +40,12 @@ typedef struct {
long long int sp;
long long int ep;
long long int ds;
+ int speed;
bool finish;
} Segment;
+typedef vector<Segment> Segments;
+
#define SEGMENT_EQUAL(X, Y) (X.cuid == Y.cuid && X.sp == Y.sp && X.ep == Y.ep && X.ds == Y.ds && X.finish == Y.finish ? true : false)
#endif // _D_SEGMENT_H_