Przeglądaj źródła

2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Added 'errorCode' to the reponse of tellStatus xml-rpc method.
	This key is only available for stopped/completed downloads and its
	value is the error code defined in EXIT STATUS in man page.
	* src/XmlRpcMethodImpl.cc
Tatsuhiro Tsujikawa 16 lat temu
rodzic
commit
d17d7631e1
2 zmienionych plików z 8 dodań i 0 usunięć
  1. 7 0
      ChangeLog
  2. 1 0
      src/XmlRpcMethodImpl.cc

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+2009-07-15  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Added 'errorCode' to the reponse of tellStatus xml-rpc method.
+	This key is only available for stopped/completed downloads and its
+	value is the error code defined in EXIT STATUS in man page.
+	* src/XmlRpcMethodImpl.cc
+
 2009-07-15  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Fixed the bug that session download length is not updated when

+ 1 - 0
src/XmlRpcMethodImpl.cc

@@ -345,6 +345,7 @@ static void gatherStoppedDownload
 (BDE& entryDict, const SharedHandle<DownloadResult>& ds)
 {
   entryDict["gid"] = Util::itos(ds->gid);
+  entryDict["errorCode"] = Util::itos(static_cast<int>(ds->result));
   if(ds->result == downloadresultcode::IN_PROGRESS) {
     entryDict["status"] = BDE_REMOVED;
   } else if(ds->result == downloadresultcode::FINISHED) {