[vala/staging] libarchive: Fix a few binding errors
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] libarchive: Fix a few binding errors
- Date: Mon, 28 Feb 2022 11:15:27 +0000 (UTC)
commit fcb3496ab6a95ccb7f87f923cd28863069e6122f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Feb 28 12:12:56 2022 +0100
libarchive: Fix a few binding errors
vapi/libarchive.vapi | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/vapi/libarchive.vapi b/vapi/libarchive.vapi
index eefd32c3d..c3cccd3fc 100644
--- a/vapi/libarchive.vapi
+++ b/vapi/libarchive.vapi
@@ -225,7 +225,7 @@ namespace Archive {
[CCode (cname="archive_read_data_into_fd")]
public Result read_data_into_fd (int fd);
- public Result extract (Entry entry, ExtractFlags? flags=0);
+ public Result extract (Entry entry, ExtractFlags flags = 0);
public Result extract2 (Entry entry, Write dest);
public void extract_set_progress_callback (ExtractProgressCallback cb);
public void extract_set_skip_file (int64_t dev, int64_t ino);
@@ -245,21 +245,21 @@ namespace Archive {
public Result set_standard_lookup ();
// HACK, they have no name in C. May not work correctly.
- [CCode (instance_pos = 0, cname="void")]
+ [CCode (has_type_def = false, instance_pos = 0)]
public delegate unowned string GNameLookup (int64_t gid);
- [CCode (instance_pos = 0, cname="void")]
+ [CCode (has_type_def = false, instance_pos = 0)]
public delegate unowned string UNameLookup (int64_t uid);
- [CCode (instance_pos = 0, cname="void")]
+ [CCode (has_type_def = false, instance_pos = 0)]
public delegate void Cleanup ();
public Result set_gname_lookup (
- GNameLookup lookup,
- Cleanup? cleanup = null
+ [CCode (delegate_target_pos = 0.9)] GNameLookup lookup,
+ [CCode (delegate_target_pos = 0.9)] Cleanup? cleanup = null
);
public Result set_uname_lookup (
- UNameLookup lookup,
- Cleanup? cleanup = null
+ [CCode (delegate_target_pos = 0.9)] UNameLookup lookup,
+ [CCode (delegate_target_pos = 0.9)] Cleanup? cleanup = null
);
}
@@ -471,9 +471,11 @@ namespace Archive {
public Result xattr_next(out unowned string name, out void* value, out size_t size);
[Compact]
+ [CCode (lower_case_cprefix = "archive_entry_linkresolver_")]
public class LinkResolver {
public LinkResolver ();
public void set_strategy (Format format_code);
+ [CCode (cname = "archive_entry_linkify")]
public void linkify (Entry a, Entry b);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]