summaryrefslogtreecommitdiff
path: root/src/RequestGroup.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-03-17 12:17:46 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-03-17 12:17:46 +0900
commit6e818a06dc9d716a7d925349c85dda2a3c07b429 (patch)
tree3dbbd03e4ee13e61a72102fc67c1733fe8bb7092 /src/RequestGroup.h
parent09c120da9b50cd5355336966eaeafc7296efecd8 (diff)
Replaced gid_t with a2_gid_t cause gid_t is commonly used as group ID.
Diffstat (limited to 'src/RequestGroup.h')
-rw-r--r--src/RequestGroup.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/RequestGroup.h b/src/RequestGroup.h
index b831508b..44a283d9 100644
--- a/src/RequestGroup.h
+++ b/src/RequestGroup.h
@@ -73,7 +73,7 @@ class BtRuntime;
class PeerStorage;
#endif // ENABLE_BITTORRENT
-typedef int64_t gid_t;
+typedef int64_t a2_gid_t;
class RequestGroup {
public:
@@ -83,9 +83,9 @@ public:
USER_REQUEST
};
private:
- static gid_t gidCounter_;
+ static a2_gid_t gidCounter_;
- gid_t gid_;
+ a2_gid_t gid_;
SharedHandle<Option> option_;
@@ -161,13 +161,13 @@ private:
// example, downloads generated by PostDownloadHandler), this field
// has the GID of generated RequestGroups. empty list means there is
// no such RequestGroup.
- std::vector<gid_t> followedByGIDs_;
+ std::vector<a2_gid_t> followedByGIDs_;
// If this download is a part of another download(for example,
// downloading torrent file described in Metalink file), this field
// has the GID of parent RequestGroup. 0 means this is a parent
// RequestGroup.
- gid_t belongsToGID_;
+ a2_gid_t belongsToGID_;
SharedHandle<MetadataInfo> metadataInfo_;
@@ -256,7 +256,7 @@ public:
return numConcurrentCommand_;
}
- gid_t getGID() const
+ a2_gid_t getGID() const
{
return gid_;
}
@@ -503,17 +503,17 @@ public:
}
}
- const std::vector<gid_t>& followedBy() const
+ const std::vector<a2_gid_t>& followedBy() const
{
return followedByGIDs_;
}
- void belongsTo(gid_t gid)
+ void belongsTo(a2_gid_t gid)
{
belongsToGID_ = gid;
}
- gid_t belongsTo() const
+ a2_gid_t belongsTo() const
{
return belongsToGID_;
}
@@ -547,7 +547,7 @@ public:
static void resetGIDCounter() { gidCounter_ = 0; }
- static gid_t newGID();
+ static a2_gid_t newGID();
};
} // namespace aria2