[vala/0.48] libgsf-1: Fix a few binding errors
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] libgsf-1: Fix a few binding errors
- Date: Mon, 21 Mar 2022 08:17:08 +0000 (UTC)
commit 2c260f542db2c34058efe66c4b5ae778f259dbfb
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Feb 28 12:12:56 2022 +0100
libgsf-1: Fix a few binding errors
vapi/libgsf-1.vapi | 12 ++++++------
vapi/metadata/Gsf-1.metadata | 12 ++++++++++++
2 files changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/vapi/libgsf-1.vapi b/vapi/libgsf-1.vapi
index cc630983f..4bb26286a 100644
--- a/vapi/libgsf-1.vapi
+++ b/vapi/libgsf-1.vapi
@@ -16,7 +16,7 @@ namespace Gsf {
public Gsf.Blob get_data_blob ();
public Gsf.ClipFormat get_format ();
public Gsf.ClipFormatWindows get_windows_clipboard_format () throws GLib.Error;
- public void* peek_real_data (size_t ret_size) throws GLib.Error;
+ public void* peek_real_data (out size_t ret_size) throws GLib.Error;
}
[CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_doc_meta_data_get_type ()")]
public class DocMetaData : GLib.Object {
@@ -77,7 +77,7 @@ namespace Gsf {
public class InfileMSOle : Gsf.Infile {
[CCode (has_construct_function = false, type = "GsfInfile*")]
public InfileMSOle (Gsf.Input source) throws GLib.Error;
- public bool get_class_id (uint8 res);
+ public bool get_class_id (out uint8 res);
}
[CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_infile_msvba_get_type ()")]
public class InfileMSVBA : Gsf.Infile {
@@ -192,7 +192,7 @@ namespace Gsf {
public InputMemory.clone ([CCode (array_length_cname = "length", array_length_pos = 1.1)]
uint8[] buf);
[CCode (has_construct_function = false, type = "GsfInput*")]
public InputMemory.from_bzip (Gsf.Input source) throws GLib.Error;
- [CCode (has_construct_function = false, type = "GsfInput*")]
+ [CCode (cheader_filename = "gsf/gsf-input-iochannel.h", has_construct_function = false, type
= "GsfInput*")]
public InputMemory.from_iochannel (GLib.IOChannel channel) throws GLib.Error;
}
[CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_input_proxy_get_type ()")]
@@ -770,7 +770,7 @@ namespace Gsf {
[CCode (cheader_filename = "gsf/gsf.h")]
public static void le_set_float (void* p, float f);
[CCode (cheader_filename = "gsf/gsf.h")]
- public static void mem_dump (uint8 ptr, size_t len);
+ public static void mem_dump ([CCode (array_length_cname = "len", array_length_pos = 1.1,
array_length_type = "gsize", type = "const guint8*")] uint8[] ptr);
[CCode (cheader_filename = "gsf/gsf.h")]
public static uint msole_codepage_to_lid (int codepage);
[CCode (cheader_filename = "gsf/gsf.h")]
@@ -820,8 +820,8 @@ namespace Gsf {
public static GLib.ValueArray value_get_docprop_varray (GLib.Value value);
[CCode (cheader_filename = "gsf/gsf.h")]
public static unowned Gsf.DocPropVector value_get_docprop_vector (GLib.Value value);
- [CCode (cheader_filename = "gsf/gsf.h")]
- public static uint8 vba_inflate (Gsf.Input input, Gsf.off_t offset, int size, bool
add_null_terminator);
+ [CCode (array_length_pos = 2.5, cheader_filename = "gsf/gsf.h")]
+ public static uint8[] vba_inflate (Gsf.Input input, Gsf.off_t offset, bool add_null_terminator);
[CCode (cheader_filename = "gsf/gsf.h")]
public static int xmlDocFormatDump (Gsf.Output output, Xml.Doc cur, string? encoding, bool format);
[CCode (cheader_filename = "gsf/gsf.h")]
diff --git a/vapi/metadata/Gsf-1.metadata b/vapi/metadata/Gsf-1.metadata
index c5a2c8aef..63471d889 100644
--- a/vapi/metadata/Gsf-1.metadata
+++ b/vapi/metadata/Gsf-1.metadata
@@ -4,12 +4,21 @@ Gsf cheader_filename="gsf/gsf.h"
gsf_off_t name="off_t"
+mem_dump.ptr array array_length_idx=1
+vba_inflate array array_length_idx=2 unowned=false
+
+ClipData
+ .peek_real_data.ret_size out
+
DocMetaData
.foreach.func type="GLib.HFunc<string,Gsf.DocProp>"
Infile
.child_by_vaname skip=false
+InfileMSOle
+ .get_class_id.res out
+
InfileMSVBA
.get_modules type="unowned GLib.HashTable<string,void*>"
.steal_modules type="GLib.HashTable<string,void*>"
@@ -17,6 +26,9 @@ InfileMSVBA
Input
.* skip=false
+InputMemory
+ .new_from_iochannel cheader_filename="gsf/gsf-input-iochannel.h"
+
Outfile
.* skip=false
.new_child skip
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]