[vala/0.42] sqlite3: Correct return C type of Statement.column_text & Value.to_text



commit 27dea2a4453fbda06dfece7e159578f0fb9c2ff9
Author: Jiří Janoušek <janousek jiri gmail com>
Date:   Sat Jan 5 17:46:42 2019 +0100

    sqlite3: Correct return C type of Statement.column_text & Value.to_text

 vapi/sqlite3.vapi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/vapi/sqlite3.vapi b/vapi/sqlite3.vapi
index d6620dbbb..07a16102f 100644
--- a/vapi/sqlite3.vapi
+++ b/vapi/sqlite3.vapi
@@ -149,7 +149,7 @@ namespace Sqlite {
                public int to_int ();
                [CCode (cname = "sqlite3_value_int64")]
                public int64 to_int64 ();
-               [CCode (cname = "sqlite3_value_text")]
+               [CCode (cname = "sqlite3_value_text", type = "const unsigned char*")]
                public unowned string to_text ();
                [CCode (cname = "sqlite3_value_type")]
                public int to_type ();
@@ -388,6 +388,7 @@ namespace Sqlite {
                public double column_double (int col);
                public int column_int (int col);
                public int64 column_int64 (int col);
+               [CCode (type = "const unsigned char*")]
                public unowned string? column_text (int col);
                public int column_type (int col);
                public unowned Value column_value (int col);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]