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.

92 lines
2.4KB

  1. /*
  2. * pamac-vala
  3. *
  4. * Copyright (C) 2017 Chris Cromer <cromer@cromnix.org>
  5. * Copyright (C) 2014-2017 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 AlpmPackage {
  22. public string name;
  23. public string version;
  24. public string installed_version;
  25. public string desc;
  26. public string repo;
  27. public uint64 size;
  28. public uint64 download_size;
  29. public uint origin;
  30. }
  31. public struct AlpmPackageDetails {
  32. public string name;
  33. public string version;
  34. public string desc;
  35. public string repo;
  36. public uint origin;
  37. public string url;
  38. public string packager;
  39. public string builddate;
  40. public string installdate;
  41. public string reason;
  42. public string has_signature;
  43. public string downloadsize;
  44. public string installsize;
  45. public string[] licenses;
  46. public string[] depends;
  47. public string[] optdepends;
  48. public string[] requiredby;
  49. public string[] optionalfor;
  50. public string[] provides;
  51. public string[] replaces;
  52. public string[] conflicts;
  53. public string[] groups;
  54. public string[] backups;
  55. }
  56. #if DISABLE_AUR
  57. #else
  58. public struct AURPackage {
  59. public string name;
  60. public string version;
  61. public string installed_version;
  62. public string desc;
  63. public double popularity;
  64. }
  65. public struct AURPackageDetails {
  66. public string name;
  67. public string version;
  68. public string desc;
  69. public double popularity;
  70. public string packagebase;
  71. public string url;
  72. public string maintainer;
  73. public int64 firstsubmitted;
  74. public int64 lastmodified;
  75. public int64 outofdate;
  76. public int64 numvotes;
  77. public string[] licenses;
  78. public string[] depends;
  79. public string[] makedepends;
  80. public string[] checkdepends;
  81. public string[] optdepends;
  82. public string[] provides;
  83. public string[] replaces;
  84. public string[] conflicts;
  85. }
  86. #endif
  87. }