update to work with libalpm 5.2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Vala bindings for libalpm
|
||||
*
|
||||
* Copyright (C) 2014-2016 Guillaume Benoit <guillaume@manjaro.org>
|
||||
* Copyright (C) 2014-2019 Guillaume Benoit <guillaume@manjaro.org>
|
||||
* Copyright (c) 2011 Rémy Oudompheng <remy@archlinux.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -162,11 +162,6 @@ namespace Alpm {
|
||||
[CCode (cname = "alpm_option_remove_assumeinstalled")]
|
||||
public int remove_assumeinstalled(Depend dep);
|
||||
|
||||
public double deltaratio {
|
||||
[CCode (cname = "alpm_option_get_deltaratio")] get;
|
||||
[CCode (cname = "alpm_option_set_deltaratio")] set;
|
||||
}
|
||||
|
||||
public int checkspace {
|
||||
[CCode (cname = "alpm_option_get_checkspace")] get;
|
||||
[CCode (cname = "alpm_option_set_checkspace")] set;
|
||||
@@ -476,18 +471,12 @@ namespace Alpm {
|
||||
public unowned Alpm.List<unowned Depend> provides {
|
||||
[CCode (cname = "alpm_pkg_get_provides")] get;
|
||||
}
|
||||
public unowned Alpm.List<unowned string> deltas {
|
||||
[CCode (cname = "alpm_pkg_get_deltas")] get;
|
||||
}
|
||||
public unowned Alpm.List<unowned Depend> replaces {
|
||||
[CCode (cname = "alpm_pkg_get_replaces")] get;
|
||||
}
|
||||
public unowned FileList files {
|
||||
[CCode (cname = "alpm_pkg_get_files")] get;
|
||||
}
|
||||
public unowned Alpm.List<unowned string> unused_deltas {
|
||||
[CCode (cname = "alpm_pkg_unused_deltas")] get;
|
||||
}
|
||||
public unowned Alpm.List<unowned Backup> backups {
|
||||
[CCode (cname = "alpm_pkg_get_backup")] get;
|
||||
}
|
||||
@@ -549,8 +538,8 @@ namespace Alpm {
|
||||
public Alpm.List<string> compute_requiredby();
|
||||
public Alpm.List<string> compute_optionalfor();
|
||||
|
||||
[CCode (cname = "alpm_sync_newversion")]
|
||||
public unowned Package? sync_newversion(Alpm.List<unowned DB> dbs);
|
||||
[CCode (cname = "alpm_sync_get_new_version")]
|
||||
public unowned Package? get_new_version(Alpm.List<unowned DB> dbs);
|
||||
|
||||
public int check_pgp_signature(out SigList siglist);
|
||||
}
|
||||
@@ -638,24 +627,6 @@ namespace Alpm {
|
||||
public unowned Alpm.List<unowned Package> packages;
|
||||
}
|
||||
|
||||
/** Package upgrade delta */
|
||||
[CCode (cname = "alpm_delta_t", has_type_id = false)]
|
||||
[Compact]
|
||||
public class Delta {
|
||||
/** filename of the delta patch */
|
||||
public string delta;
|
||||
/** md5sum of the delta file */
|
||||
public string delta_md5;
|
||||
/** filename of the 'before' file */
|
||||
public string from;
|
||||
/** filename of the 'after' file */
|
||||
public string to;
|
||||
/** filesize of the delta file */
|
||||
public uint64 delta_size;
|
||||
/** download filesize of the delta file */
|
||||
public uint64 download_size;
|
||||
}
|
||||
|
||||
/** File in a package */
|
||||
[CCode (cname = "alpm_file_t", has_type_id = false)]
|
||||
[Compact]
|
||||
@@ -828,21 +799,6 @@ namespace Alpm {
|
||||
LOAD_START,
|
||||
/** Target package is finished loading. */
|
||||
LOAD_DONE,
|
||||
/** Target delta's integrity will be checked. */
|
||||
DELTA_INTEGRITY_START,
|
||||
/** Target delta's integrity was checked. */
|
||||
DELTA_INTEGRITY_DONE,
|
||||
/** Deltas will be applied to packages. */
|
||||
DELTA_PATCHES_START,
|
||||
/** Deltas were applied to packages. */
|
||||
DELTA_PATCHES_DONE,
|
||||
/** Delta patch will be applied to target package; See
|
||||
* DeltaPatch for arguments. */
|
||||
DELTA_PATCH_START,
|
||||
/** Delta patch was applied to target package. */
|
||||
DELTA_PATCH_DONE,
|
||||
/** Delta patch failed to apply to target package. */
|
||||
DELTA_PATCH_FAILED,
|
||||
/** Scriptlet has printed information; See ScriptletInfo for
|
||||
* arguments. */
|
||||
SCRIPTLET_INFO,
|
||||
@@ -925,15 +881,6 @@ namespace Alpm {
|
||||
public unowned Depend optdep;
|
||||
}
|
||||
|
||||
[CCode (cname = "alpm_event_delta_patch_t", has_type_id = false)]
|
||||
[Compact]
|
||||
public class DeltaPatch {
|
||||
/** Type of event. */
|
||||
public Type type;
|
||||
/** Delta info */
|
||||
public Delta delta;
|
||||
}
|
||||
|
||||
[CCode (cname = "alpm_event_scriptlet_info_t", has_type_id = false)]
|
||||
[Compact]
|
||||
public class ScriptletInfo {
|
||||
@@ -1032,9 +979,6 @@ namespace Alpm {
|
||||
public unowned Package optdep_removal_pkg;
|
||||
[CCode (cname = "optdep_removal.optdep")]
|
||||
public unowned Depend optdep_removal_optdep;
|
||||
// DeltaPatch delta_patch;
|
||||
[CCode (cname = "delta_patch.delta")]
|
||||
public Delta delta_patch_delta;
|
||||
// ScriptletInfo scriptlet_info;
|
||||
[CCode (cname = "scriptlet_info.line")]
|
||||
public unowned string scriptlet_info_line;
|
||||
@@ -1295,8 +1239,7 @@ namespace Alpm {
|
||||
public enum TransFlag {
|
||||
/** Ignore dependency checks. */
|
||||
NODEPS = 1,
|
||||
/** Ignore file conflicts and overwrite files. */
|
||||
FORCE = (1 << 1),
|
||||
/* (1 << 1) flag can go here */
|
||||
/** Delete files even if they are tagged as backup. */
|
||||
NOSAVE = (1 << 2),
|
||||
/** Ignore version numbers when checking dependencies. */
|
||||
@@ -1383,9 +1326,6 @@ namespace Alpm {
|
||||
/* Signatures */
|
||||
SIG_MISSING,
|
||||
SIG_INVALID,
|
||||
/* Deltas */
|
||||
DLT_INVALID,
|
||||
DLT_PATCHFAILED,
|
||||
/* Dependencies */
|
||||
UNSATISFIED_DEPS,
|
||||
CONFLICTING_DEPS,
|
||||
@@ -1397,7 +1337,9 @@ namespace Alpm {
|
||||
LIBARCHIVE,
|
||||
LIBCURL,
|
||||
EXTERNAL_DOWNLOAD,
|
||||
GPGME
|
||||
GPGME,
|
||||
/* Missing compile-time features */
|
||||
MISSING_CAPABILITY_SIGNATURES
|
||||
}
|
||||
|
||||
[CCode (cname = "alpm_list_t", cprefix = "alpm_list_", cheader_filename = "alpm_list.h",
|
||||
|
Reference in New Issue
Block a user