[vala-extra-vapis] Fix a couple of SimpleType struct errors
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala-extra-vapis] Fix a couple of SimpleType struct errors
- Date: Fri, 12 Mar 2021 08:50:49 +0000 (UTC)
commit 539ce9c11d249f1265dc35dda7f8eb49d7699fc6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Mar 12 09:50:07 2021 +0100
Fix a couple of SimpleType struct errors
hiredis.vapi | 7 +++----
libqpid-proton.vapi | 2 +-
msgpack.vapi | 12 ++++++------
opencv.vapi | 2 +-
4 files changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/hiredis.vapi b/hiredis.vapi
index e0854ad..c71dd62 100644
--- a/hiredis.vapi
+++ b/hiredis.vapi
@@ -205,8 +205,7 @@ namespace Redis {
FreeFunc f;
}
- [SimpleType]
- [CCode (cheader_filename = "hiredis/read.h", cname = "redisReader", free_function = "redisReaderFree",
unref_function = "")]
+ [CCode (cheader_filename = "hiredis/read.h", cname = "redisReader", free_function = "redisReaderFree",
has_type_id = false)]
public struct Reader {
int err;
char errstr[128];
@@ -240,7 +239,7 @@ namespace Redis {
[CCode (cname = "redisCallback", free_function = "", unref_function = "")]
public struct RedisCallback {
public void* next;
- RedisCallbackFunction fn;
+ unowned RedisCallbackFunction fn;
void* privdata;
}
@@ -392,4 +391,4 @@ namespace Redis {
ERROR
}
-}
\ No newline at end of file
+}
diff --git a/libqpid-proton.vapi b/libqpid-proton.vapi
index b72b9a6..5a00c01 100644
--- a/libqpid-proton.vapi
+++ b/libqpid-proton.vapi
@@ -113,7 +113,7 @@ namespace Proton {
[SimpleType, CCode (cname = "pn_bytes_t", cheader_filename = "proton/types.h")]
public struct Bytes {
[CCode (cname = "start", array_length_cname = "size", array_length_type = "size_t")]
- public uint8[] data;
+ public unowned uint8[] data;
[CCode (cname = "pn_bytes")]
public Bytes ([CCode (type = "char*", array_length_pos = 0.9, array_length_type = "size_t")]
uint8[] data);
[CCode (cname = "pn_bytes_dup")]
diff --git a/msgpack.vapi b/msgpack.vapi
index c468de9..165cb28 100644
--- a/msgpack.vapi
+++ b/msgpack.vapi
@@ -57,7 +57,7 @@ namespace MessagePack
public struct Array
{
[CCode (cname = "ptr", array_length_cname = "size", array_length_type = "uint32_t")]
- MessagePack.Object[] objects;
+ unowned MessagePack.Object[] objects;
}
[SimpleType]
@@ -65,7 +65,7 @@ namespace MessagePack
public struct Map
{
[CCode (cname = "ptr", array_length_cname = "size", array_length_type = "uint32_t")]
- MessagePack.MapEntry[] entries;
+ unowned MessagePack.MapEntry[] entries;
}
[Version (deprecated = true, deprecated_since = "1.0")]
@@ -74,7 +74,7 @@ namespace MessagePack
public struct Raw
{
[CCode (cname = "ptr", array_length_cname = "size", array_length_type = "uint32_t")]
- uint8[] raw;
+ unowned uint8[] raw;
}
[SimpleType]
@@ -82,7 +82,7 @@ namespace MessagePack
public struct String
{
[CCode (cname = "ptr", array_length_cname = "size", array_length_type = "uint32_t")]
- uint8[] str;
+ unowned uint8[] str;
}
[SimpleType]
@@ -91,7 +91,7 @@ namespace MessagePack
{
uint8 type;
[CCode (cname = "ptr", array_length_cname = "size", array_length_type = "uint32_t")]
- uint8[] ext;
+ unowned uint8[] ext;
}
[SimpleType]
@@ -100,7 +100,7 @@ namespace MessagePack
{
uint8 type;
[CCode (cname = "ptr", array_length_cname = "size", array_length_type = "uint32_t")]
- uint8[] ext;
+ unowned uint8[] ext;
}
[SimpleType]
diff --git a/opencv.vapi b/opencv.vapi
index 93205b5..5dc22c3 100644
--- a/opencv.vapi
+++ b/opencv.vapi
@@ -450,7 +450,7 @@ namespace OpenCV {
[SimpleType, CCode (cname = "CvInput")]
public struct Input {
- public OpenCV.Callback @callback;
+ public unowned OpenCV.Callback @callback;
public void* data;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]