[shotwell] vapi: Fix array_length annotations
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] vapi: Fix array_length annotations
- Date: Sun, 14 Mar 2021 21:46:46 +0000 (UTC)
commit f0d1430697c49889d7dfb9c3ad48fae3a8eb4c78
Author: Jens Georg <mail jensge org>
Date: Sun Mar 14 22:46:26 2021 +0100
vapi: Fix array_length annotations
vapi/libexif.vapi | 2 +-
vapi/libgphoto2.vapi | 4 ++--
vapi/libwebp.vapi | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vapi/libexif.vapi b/vapi/libexif.vapi
index b2d01908..25e1a6b1 100644
--- a/vapi/libexif.vapi
+++ b/vapi/libexif.vapi
@@ -83,7 +83,7 @@ namespace Exif {
[CCode (cname="exif_data_new")]
public Data();
public static Data? new_from_file(string path);
- public static Data? new_from_data([CCode (array_length_pos=1)]uint8[] data);
+ public static Data? new_from_data([CCode (array_length_pos=1.1)]uint8[] data);
public void dump();
public void fix();
public void foreach_content(ForeachContentFunc cb, void *user = null);
diff --git a/vapi/libgphoto2.vapi b/vapi/libgphoto2.vapi
index f4fca0db..e9387b29 100644
--- a/vapi/libgphoto2.vapi
+++ b/vapi/libgphoto2.vapi
@@ -64,7 +64,7 @@ namespace GPhoto {
public Result set_port_info(PortInfo info);
public Result get_abilities(out CameraAbilities abilities);
public Result set_abilities(CameraAbilities abilities);
- public Result get_storageinfo([CCode (array_length_pos=1)]out CameraStorageInformation[] sifs,
Context context);
+ public Result get_storageinfo([CCode (array_length_pos=1.1)]out CameraStorageInformation[] sifs,
Context context);
// Folders
[CCode (cname="gp_camera_folder_list_folders")]
@@ -107,7 +107,7 @@ namespace GPhoto {
[CCode (cname="gp_file_new_from_fd")]
public static Result create_from_fd(out CameraFile file, int fd);
[CCode (cname="gp_file_get_data_and_size")]
- public Result get_data([CCode (array_length_pos=1)]out unowned uint8[] data);
+ public Result get_data([CCode (array_length_pos=1.1, array_length_type="gulong")]out unowned uint8[]
data);
public Result save(string filename);
public Result slurp(uint8[] data, out size_t readlen);
}
diff --git a/vapi/libwebp.vapi b/vapi/libwebp.vapi
index a19fbcf2..534dd2c1 100644
--- a/vapi/libwebp.vapi
+++ b/vapi/libwebp.vapi
@@ -1,5 +1,5 @@
[CCode (cheader_filename = "webp/decode.h")]
namespace WebP {
[CCode (array_length = false, cname="WebPDecodeRGBA")]
- public static uint8[] DecodeRGBA([CCode (array_length_pos=1)]uint8[] data, out int width, out int
height);
+ public static uint8[] DecodeRGBA([CCode (array_length_pos=1.1)]uint8[] data, out int width, out int
height);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]