pamac-classic/src/common.vala

62 lines
1.6 KiB
Vala
Raw Normal View History

2014-10-22 13:44:02 -03:00
/*
* pamac-vala
*
2017-10-10 16:29:22 -03:00
* Copyright (C) 2017 Chris Cromer <cromer@cromnix.org>
2015-03-04 11:55:36 -03:00
* Copyright (C) 2014-2015 Guillaume Benoit <guillaume@manjaro.org>
2014-10-22 13:44:02 -03:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a get of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Pamac {
2016-04-14 13:19:20 -03:00
public struct UpdateInfos {
2014-10-22 13:44:02 -03:00
public string name;
2016-04-14 13:19:20 -03:00
public string old_version;
public string new_version;
public string repo;
2014-10-22 13:44:02 -03:00
public uint64 download_size;
}
2016-04-14 13:19:20 -03:00
public struct TransactionSummary {
public UpdateInfos[] to_install;
public UpdateInfos[] to_upgrade;
public UpdateInfos[] to_downgrade;
public UpdateInfos[] to_reinstall;
public UpdateInfos[] to_remove;
2017-02-18 13:10:26 -03:00
public UpdateInfos[] to_build;
2017-10-10 16:29:22 -03:00
#if DISABLE_AUR
#else
2017-02-18 13:10:26 -03:00
public UpdateInfos[] aur_conflicts_to_remove;
public string[] aur_pkgbases_to_build;
2017-10-10 16:29:22 -03:00
#endif
2016-04-14 13:19:20 -03:00
}
2015-03-04 11:55:36 -03:00
public struct Updates {
public bool is_syncfirst;
2017-07-29 10:35:04 -04:00
public AlpmPackage[] repos_updates;
2017-10-10 16:29:22 -03:00
#if DISABLE_AUR
#else
2017-07-29 10:35:04 -04:00
public AURPackage[] aur_updates;
2017-10-10 16:29:22 -03:00
#endif
2015-03-04 11:55:36 -03:00
}
2014-10-22 13:44:02 -03:00
public struct ErrorInfos {
2016-03-01 11:43:51 -03:00
public uint errno;
2015-03-07 06:43:44 -03:00
public string message;
2014-10-22 13:44:02 -03:00
public string[] details;
public ErrorInfos () {
2015-03-07 06:43:44 -03:00
message = "";
2014-10-22 13:44:02 -03:00
}
}
}