update deprecated code

This commit is contained in:
2019-07-06 20:28:51 -04:00
parent d7cf388ece
commit 3b66f68b2c
38 changed files with 592 additions and 361 deletions

View File

@@ -38,9 +38,9 @@ namespace Alpm {
}
public int capabilities();
public unowned Package? find_satisfier(Alpm.List<weak Package> pkgs, string depstring);
public unowned Package? find_satisfier(Alpm.List<unowned Package> pkgs, string depstring);
public unowned Package? pkg_find(Alpm.List<weak Package> haystack, string needle);
public unowned Package? pkg_find(Alpm.List<unowned Package> haystack, string needle);
public int pkg_vercmp(string a, string b);
@@ -48,7 +48,7 @@ namespace Alpm {
* If a member exists in several databases, only the first database is used.
* IgnorePkg is also handled.
*/
public Alpm.List<unowned Package?> find_group_pkgs(Alpm.List<DB> dbs, string name);
public Alpm.List<unowned Package?> find_group_pkgs(Alpm.List<unowned DB> dbs, string name);
/** Returns the string corresponding to an error number. */
public unowned string strerror(Errno err);
@@ -193,7 +193,7 @@ namespace Alpm {
public unowned DB localdb {
[CCode (cname = "alpm_get_localdb")] get;
}
public unowned Alpm.List<weak DB> syncdbs {
public unowned Alpm.List<unowned DB> syncdbs {
[CCode (cname = "alpm_get_syncdbs")] get;
}
@@ -252,7 +252,7 @@ namespace Alpm {
public string? fetch_pkgurl(string url);
[CCode (cname = "alpm_find_dbs_satisfier")]
public unowned Package? find_dbs_satisfier(Alpm.List<DB> dbs, string depstring);
public unowned Package? find_dbs_satisfier(Alpm.List<unowned DB> dbs, string depstring);
/** Returns the current error code from the handle. */
[CCode (cname = "alpm_errno")]
@@ -380,7 +380,7 @@ namespace Alpm {
public unowned Package? get_pkg(string name);
public unowned Group? get_group(string name);
public Alpm.List<weak Package> search(Alpm.List<weak string> needles);
public Alpm.List<unowned Package> search(Alpm.List<unowned string> needles);
public int check_pgp_signature(out SigList siglist);
}
@@ -550,7 +550,7 @@ namespace Alpm {
public Alpm.List<string> compute_optionalfor();
[CCode (cname = "alpm_sync_newversion")]
public unowned Package? sync_newversion(Alpm.List<weak DB> dbs);
public unowned Package? sync_newversion(Alpm.List<unowned DB> dbs);
public int check_pgp_signature(out SigList siglist);
}