diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-05-01 11:58:25 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-05-01 11:58:25 +0900 |
| commit | 5e64d4c9a988b1016c9503f8e11836b562d0a4e1 (patch) | |
| tree | d026daafaf22a54af5ddff9edb77d8d357450bb3 /src/aria2api.cc | |
| parent | 8f659f49ec54a722498465f618bb2fda1a9e34b5 (diff) | |
Expose struct DownloadHandle interface to public API directly
Diffstat (limited to 'src/aria2api.cc')
| -rw-r--r-- | src/aria2api.cc | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/aria2api.cc b/src/aria2api.cc index 3c2be5ac..dc45a147 100644 --- a/src/aria2api.cc +++ b/src/aria2api.cc @@ -386,69 +386,4 @@ void deleteDownloadHandle(DownloadHandle* dh) delete dh; } -DOWNLOAD_STATUS downloadGetStatus(DownloadHandle* dh) -{ - return dh->getStatus(); -} - -int64_t downloadGetTotalLength(DownloadHandle* dh) -{ - return dh->getTotalLength(); -} - -int64_t downloadGetCompletedLength(DownloadHandle* dh) -{ - return dh->getCompletedLength(); -} - -int64_t downloadGetUploadLength(DownloadHandle* dh) -{ - return dh->getUploadLength(); -} - -std::string downloadGetBitfield(DownloadHandle* dh) -{ - return dh->getBitfield(); -} - -int downloadGetDownloadSpeed(DownloadHandle* dh) -{ - return dh->getDownloadSpeed(); -} - -int downloadGetUploadSpeed(DownloadHandle* dh) -{ - return dh->getUploadSpeed(); -} - -size_t downloadGetNumPieces(DownloadHandle* dh) -{ - return dh->getNumPieces(); -} - -int downloadGetConnections(DownloadHandle* dh) -{ - return dh->getConnections(); -} - -int downloadGetErrorCode(DownloadHandle* dh) -{ - return dh->getErrorCode(); -} - -const std::vector<A2Gid>& downloadGetFollowedBy(DownloadHandle* dh) -{ - return dh->getFollowedBy(); -} - -A2Gid downloadGetBelongsTo(DownloadHandle* dh) -{ - return dh->getBelongsTo(); -} - -const std::string& downloadGetDir(DownloadHandle* dh) -{ - return dh->getDir(); -} - } // namespace aria2 |
