Graphical package manager for pacman based on pamac 5.x.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common.vala 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * pamac-vala
  3. *
  4. * Copyright (C) 2017 Chris Cromer <cromer@cromnix.org>
  5. * Copyright (C) 2014-2015 Guillaume Benoit <guillaume@manjaro.org>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a get of the GNU General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. namespace Pamac {
  21. public struct UpdateInfos {
  22. public string name;
  23. public string old_version;
  24. public string new_version;
  25. public string repo;
  26. public uint64 download_size;
  27. }
  28. public struct TransactionSummary {
  29. public UpdateInfos[] to_install;
  30. public UpdateInfos[] to_upgrade;
  31. public UpdateInfos[] to_downgrade;
  32. public UpdateInfos[] to_reinstall;
  33. public UpdateInfos[] to_remove;
  34. public UpdateInfos[] to_build;
  35. #if DISABLE_AUR
  36. #else
  37. public UpdateInfos[] aur_conflicts_to_remove;
  38. public string[] aur_pkgbases_to_build;
  39. #endif
  40. }
  41. public struct Updates {
  42. public bool is_syncfirst;
  43. public AlpmPackage[] repos_updates;
  44. #if DISABLE_AUR
  45. #else
  46. public AURPackage[] aur_updates;
  47. #endif
  48. }
  49. public struct ErrorInfos {
  50. public uint errno;
  51. public string message;
  52. public string[] details;
  53. public ErrorInfos () {
  54. message = "";
  55. }
  56. }
  57. }