From 8f659f49ec54a722498465f618bb2fda1a9e34b5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 30 Apr 2013 22:51:05 +0900 Subject: Rename gidToString as gidToHex, add hexToGid and isNull --- src/includes/aria2/aria2.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/includes') 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 -- cgit