From: Jan Kupec Date: Thu, 13 Mar 2008 15:31:21 +0000 (+0000) Subject: - new requestMedia callback signature X-Git-Tag: BASE-SuSE-Linux-11_0-Branch~326 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5539dc1c461fbd236e54a6b8895a0a1675effd62;p=platform%2Fupstream%2Fzypper.git - new requestMedia callback signature --- diff --git a/src/zypper-media-callbacks.h b/src/zypper-media-callbacks.h index 2877839..610c47f 100644 --- a/src/zypper-media-callbacks.h +++ b/src/zypper-media-callbacks.h @@ -33,11 +33,20 @@ namespace ZmartRecipients struct MediaChangeReportReceiver : public zypp::callback::ReceiveReport { - virtual MediaChangeReport::Action requestMedia( zypp::Url & url, - unsigned mediumNr, - MediaChangeReport::Error error, - const std::string & description ) + virtual MediaChangeReport::Action + requestMedia(zypp::Url & url, + unsigned mediumNr, + const std::string & label, + MediaChangeReport::Error error, + const std::string & description, + const std::vector & devices, + unsigned int & index) { + /*std::cout << "detected devices: "; + for (std::vector::const_iterator it = devices.begin(); + it != devices.end(); ++it) + std::cout << *it << " "; + cout << std::endl;*/ if (is_changeable_media(url)) { //cerr << endl; // may be in the middle of RepoReport or ProgressReport \todo check this