[vala/staging: 2/2] libarchive: Fix 'buffer' ownership in read_data_block() and ReadCallback()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 2/2] libarchive: Fix 'buffer' ownership in read_data_block() and ReadCallback()
- Date: Wed, 25 Apr 2018 06:43:24 +0000 (UTC)
commit ee0d5a24f22e1a6398b1fb16d07ca51425582df3
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Apr 25 08:19:23 2018 +0200
libarchive: Fix 'buffer' ownership in read_data_block() and ReadCallback()
https://bugzilla.gnome.org/show_bug.cgi?id=795079
vapi/libarchive.vapi | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapi/libarchive.vapi b/vapi/libarchive.vapi
index 97d0885..72a0048 100644
--- a/vapi/libarchive.vapi
+++ b/vapi/libarchive.vapi
@@ -30,7 +30,7 @@ namespace Archive {
public unowned string version_string ();
[CCode (instance_pos = 1.9, cname="archive_read_callback")]
- public delegate ssize_t ReadCallback (Archive archive,[CCode (array_length = false)] out uint8[]
buffer);
+ public delegate ssize_t ReadCallback (Archive archive,[CCode (array_length = false)] out unowned
uint8[] buffer);
[CCode (instance_pos = 1.9, cname="archive_skip_callback")]
public delegate int64_t SkipCallback (Archive archive, int64_t request);
[CCode (instance_pos = 1.9, cname="archive_write_callback")]
@@ -215,7 +215,7 @@ namespace Archive {
[CCode (cname="archive_read_data")]
public ssize_t read_data ([CCode (array_length_type = "size_t")] uint8[] buffer);
[CCode (cname="archive_read_data_block")]
- public Result read_data_block ([CCode (array_length_type = "size_t")] out uint8[] buffer, out
int64_t offset);
+ public Result read_data_block ([CCode (array_length_type = "size_t")] out unowned uint8[]
buffer, out int64_t offset);
[CCode (cname="archive_read_data_skip")]
public Result read_data_skip ();
[CCode (cname="archive_read_data_into_fd")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]