#include <fstream>
+
+#include <zypp/media/MediaManager.h>
+
#include "zypper.h"
using namespace zypp::detail;
// unless you translate the actual page :)
<< _("See http://en.opensuse.org/Zypper#Troubleshooting for instructions.") << endl;
}
+
+bool is_changeable_media(const zypp::Url & url)
+{
+ media::MediaManager mm; media::MediaAccessId id = mm.open(url);
+ bool is_cd = mm.isChangeable(id);
+ mm.close(id);
+ return is_cd;
+}
#include <string>
#include <zypp/Pathname.h>
+#include <zypp/Url.h>
std::string read_line_from_file( const zypp::Pathname &file );
void write_line_to_file( const zypp::Pathname &file, const std::string &line );
*/
std::ostream & report_a_bug (std::ostream& stm);
+bool is_changeable_media(const zypp::Url & url);
+
#endif /*ZYPPER_UTILS_H*/