diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-04-30 22:51:05 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-04-30 22:51:05 +0900 |
| commit | 8f659f49ec54a722498465f618bb2fda1a9e34b5 (patch) | |
| tree | b07b7f0039358ab3802c49569dd32c7a5c5e0401 /src/includes | |
| parent | 1df4adefb58cf904caa1fea55ca35944b847a820 (diff) | |
Rename gidToString as gidToHex, add hexToGid and isNull
Diffstat (limited to 'src/includes')
| -rw-r--r-- | src/includes/aria2/aria2.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/includes/aria2/aria2.h b/src/includes/aria2/aria2.h index 63b952fd..d0a0c30f 100644 --- a/src/includes/aria2/aria2.h +++ b/src/includes/aria2/aria2.h @@ -107,7 +107,11 @@ enum RUN_MODE { int run(Session* session, RUN_MODE mode); // Returns textual representation of the |gid|. -std::string gidToString(const A2Gid& gid); +std::string gidToHex(const A2Gid& gid); +// Returns GID converted from the textual representation |hex|. +A2Gid hexToGid(const std::string& hex); +// Returns true if the |gid| is invalid. +bool isNull(const A2Gid& gid); // This method adds new HTTP(S)/FTP/BitTorrent Magnet URI. On // successful return, the |gid| includes the GID of newly added |
